Skip to navigation

Customers

View as Markdown

List customers

Retrieve the customers the authenticated user can access. Select the customer for the intended division or plant before making customer-scoped requests.

Request: GET https://one.mtxsci.com/api/1.1/wf/customers-v2

Authentication: Authorization: Bearer <token>, using response.token from authenticate-v2.

Success: 200 OK with a JSON body recorded as text/plain;charset=utf-8.

Request body: None.

Query parameters

ParameterFormatRequirement and usage
pageInteger in query stringPage to retrieve; start at 1.

This discovery request does not take customer_id. Use each returned customer_id in subsequent catalog, sample, results, and submission requests. Keep the mapping to your own division or plant identifiers in your system.

Response envelope

FieldTypeDescription
pageStringReturned page number, for example "1".
hasNextPageBooleanWhether another page is available.
customersArray of objectsRecords in this page.

Keep the customer and filters unchanged while paging. Increment page while hasNextPage is true; stop when it is false.

Customer fields

FieldTypeDescription
company_nameStringCompany name.
divisionStringDivision or plant associated with this customer.
customer_idStringAuthorized Matrix customer identifier.
labStringLaboratory associated with this customer.

Saved example

The attached 200 OK example preserves the documented field names, nesting, and types using generic placeholders. Use the actual hasNextPage flag to determine whether another page is available.

Authentication

AuthorizationBearer

Use response.token from authenticate-v2. response.expires is the lifetime in seconds (86400 = 24 hours).

Query parameters

pageintegerOptional>=1Defaults to 1

Returned page number, for example "1".

Response

OK