Query Customers
Query all customers
Request
- Base URLhttps://scx-sbx.api.jtl-software.com
- Auth
- OAuth 2Authorization codehttps://auth.jtl-cloud.com/oauth2/authToken URLhttps://auth.jtl-cloud.com/oauth2/tokenScopesall.read, cusomters.read, customers.read
- or OAuth 2Client credentialsToken URLhttps://auth.jtl-cloud.com/oauth2/tokenScopesall.read, cusomters.read, customers.read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
All Search Keywords for the customer, like the number and the most important fields from the billing address.
Search for a specific customer number.
All customers where the last change happened after or equal the given time
All customers where the last change happened before or equal the given time
Number of the page of items to fetch.
Size of the page that is specified by pageNumber.
Headers
The tenant ID for the target ERP instance.
The User-Id (int or uuid) on whose behalf the request is executed. Requires scope 'Application.RunAs'.
The Company-Id (int or uuid) of the company on whose behalf the request is executed.
Response
Returns all customer, can be filtered by searchKeyWord or categoryId.
Example response
{
"items": [
{
"id": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"billingAddress": {
"id": "b45f6432-2462-4c6f-b00f-1d9d01000000"
},
"shipmentaddress": {
"id": "b45f6432-2462-4c6f-b00f-1d9d01000000"
},
"customAddress": {
"id": "b45f6432-2462-4c6f-b00f-1d9d01000000"
},
"otherAddresses": {
"otherBillingAddresses": [
{
"id": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
],
"otherShippingAddresses": [
{
"id": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
],
"otherCustomerAddresses": [
{
"id": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
},
"paymentSettings": {
"paymentMethodId": "b45f6432-2462-4c6f-b00f-1d9d01000000"
},
"internalCompanyId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"customerCategoryId": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.