Skip to Content
StarsellDocs
API referenceCustomers

Get a customer

GET
/stores/{storeId}/customers/{customerId}

Get a customer with their addresses and latest store credit entries.

Authorization

storeKey
headerAuthorizationBearer <vtk_...>

A store API and MCP key

Path Parameters

storeId*string

The store id

customerId*string

The customer id, or their email

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X GET 'https://starsell.app/api/v1/stores/string/customers/string'
Example Response
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "email": "string",    "name": "string",    "first_name": "string",    "last_name": "string",    "phone": "string",    "city": "string",    "country": "string",    "language": "string",    "tags": [      "string"    ],    "note": "string",    "tax_exempt": true,    "orders_count": 0,    "spent_minor": 0,    "store_credit_minor": 0,    "currency": "string",    "accepts_marketing": true,    "accepts_email_marketing": true,    "email_consent_at": "2019-08-24T14:15:22Z",    "email_consent_source": "checkout",    "accepts_sms_marketing": true,    "sms_consent_at": "2019-08-24T14:15:22Z",    "first_order_at": "2019-08-24T14:15:22Z",    "last_order_at": "2019-08-24T14:15:22Z",    "erased": true,    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z",    "addresses": [      {        "first_name": "string",        "last_name": "string",        "company": "string",        "line1": "string",        "line2": "string",        "city": "string",        "region": "string",        "zip": "string",        "country": "string",        "phone": "string",        "default": true      }    ],    "store_credit": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "amount_minor": 0,        "reason": "manual",        "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe",        "note": "string",        "expires_at": "2019-08-24T14:15:22Z",        "created_at": "2019-08-24T14:15:22Z"      }    ]  }}