List customers
Any signed in user. Returns a page of customers ordered by name together with the total. search matches a name or phone substring or a national id exactly, with page and page_size.
GET
/api/v1/customersAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Query parameters
searchstringSubstring of a name or phone, or a whole national id. Empty returns every customer.
pageintegerPage number, 1 based. Defaults to 1.
page_sizeintegerRows per page, capped at 200. Defaults to 20.
Responses
200
A page of customers
totalintegerrequiredmin -9007199254740991 · max 9007199254740991
pageintegerrequiredmin -9007199254740991 · max 9007199254740991
page_sizeintegerrequiredmin -9007199254740991 · max 9007199254740991
itemsobject[]requiredShow propertiesHide properties
Array of
objectidstringrequirednamestringrequiredphonestringrequirednational_idstringrequirednotesstringrequiredimage_urlstringrequiredcredit_limitstringrequiredcurrent_balancestringrequiredis_credit_allowedbooleanrequiredcreated_atstringrequiredupdated_atstringrequiredis_deletedbooleanrequired401
Not authenticated
detailstringrequired