ShopEazydevelopers
API referenceMerchant API BetaCustomers

List or search customers

Beta
Credentials, one of
  • Station token
  • OAuth access token
Scopes
customers:read
GET
/v1/merchant/stores/{storeId}/customers

Access: OAuth scope customers:read; not write-gated.

Paged: { items, nextCursor }, limit (default 50, at most 200) and an opaque cursor.

Authorization

headerAuthorizationBearer <token>

It may call only the operations whose x-stations lists its kind, on its own store, and acts through the access of the owner or admin who paired it. Unpairing it, or that person leaving the business, ends it (401 station_revoked).

Path Parameters

storeId*string

A store the person can reach. Any other id answers 404, never 403.

Query Parameters

search?string

A search is not paginated.

cursor?string

The nextCursor of the previous page, unchanged. A cursor that is not one we gave you is 400 bad_request.

limit?integer

Page size: default 50, at most 200 (more is 200; a missing or unusable value is 50).

Range1 <= value <= 200
Default50

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.shopeazy.co/v1/merchant/stores/<storeId>/customers' \  -H 'Authorization: Bearer <access_token>'
Example Response
{  "data": {    "items": [      {        "id": "hqq5kNvq3gO6U79EGMmX",        "name": "Lerato Dlamini",        "email": "lerato.dlamini@example.com",        "phone": null,        "orderCount": 0,        "totalSpent": {          "amount": 0,          "currency": "ZAR"        },        "lastOrderAt": null      },      {        "id": "dX3fN9Vqb9YKrX8GsA1H",        "name": "Thandi Mokoena",        "email": "thandi.mokoena@example.com",        "phone": "+27 82 000 0000",        "orderCount": 0,        "totalSpent": {          "amount": 0,          "currency": "ZAR"        },        "lastOrderAt": null      }    ],    "nextCursor": null  }}