anyshop docs homeStatusOpen the dashboard

API reference Customers List customers

API referenceCustomers

List customers

GET methodhttps://api.anyshop.io/v1/customers

The people who bought in your API key's mode (a paid order), with the store's customer records in live mode, as the dashboard's Customers lists them: the latest order first, people without an order last.

  • Scope customers:read

Query parameters

  • limitinteger How many to return: 1 to 100, default 201 to 100
  • starting_afterstring The last ID of the previous page; the next page starts after itUp to 256 characters
  • emailstring Only the customer with this email address (trimmed and lowercased)Up to 254 characters
  • marketingenum true: only those who agreed to marketing emails; false: only those who did nottruefalse

Returns

A list of customer objects, newest first: { "object": "list", "data", "has_more" }.

Errors

Status and error.type
  • 400invalid_requestThe request is not valid; error.param names the field
  • 401authenticationNo API key, or it is not valid
  • 403permissionThe key does not have the scope this needs, or the store is suspended (store_suspended)
  • 404not_foundNot found in the key's store and mode
  • 409conflictConflicts with the object's state (type conflict), or an Idempotency-Key reused for another request (type idempotency, code idempotency_key_reused)
  • 429rate_limitedToo many requests; see Retry-After