anyshop docs homeStatusOpen the dashboard

API reference Customers Retrieve a customer

API referenceCustomers

Retrieve a customer

GET methodhttps://api.anyshop.io/v1/customers/{id}

A customer with their orders count, what they spent, their payment methods, licenses and marketing consent, in your API key's mode. Their orders: GET /v1/orders?email=...

  • Scope customers:read

Path parameters

  • idstring required

Returns

The customer object.

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