API Reference

Customers

List and view the customer accounts registered on your store.

Only registered accounts appear here — a buyer who always checked out as a guest has no account, even with orders. Customer data is read-only through the API: changing an account's e-mail or erasing it is still done in the panel.

List customers

GET/api/v1/customersAbilitycustomers.read
Returns the store's accounts, newest first.

Query parameters

emailstring
The account's exact e-mail (case-insensitive).
qstring
Partial search on name or e-mail.
per_pageinteger
Items per page, from 1 to 100. Default 20. A value outside that range returns 422.
pageinteger
Page number, from 1 to 10000. Default 1. A value outside that range returns 422.
curl "https://sellitex.com/api/v1/[email protected]" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Accept: application/json"
Response200
{
  "data": [
    {
      "id": 42,
      "name": "Fulano de Tal",
      "email": "[email protected]",
      "email_verified_at": "2026-08-01T10:00:00+00:00",
      "anonymized_at": null,
      "orders_count": 3,
      "created_at": "2026-08-01T09:58:00+00:00"
    }
  ],
  "links": {
    "first": "…?page=1",
    "last": "…?page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "per_page": 20,
    "to": 1,
    "total": 1
  }
}

Retrieve a customer

GET/api/v1/customers/{customer}Abilitycustomers.read
Returns the account with its store-credit balance in wallet_balance. A customer of another store answers 404.

Path parameters

customerintegerrequired
The account id.
curl "https://sellitex.com/api/v1/customers/42" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Accept: application/json"
Response200
{
  "data": {
    "id": 42,
    "name": "Fulano de Tal",
    "email": "[email protected]",
    "email_verified_at": "2026-08-01T10:00:00+00:00",
    "anonymized_at": null,
    "orders_count": 3,
    "wallet_balance": 2500,
    "created_at": "2026-08-01T09:58:00+00:00"
  }
}

The object

The fields this resource's endpoints return. Money is an integer in cents and dates are ISO 8601, in UTC.

idinteger
The account identifier.
namestring
The customer's name.
emailstring
The account's e-mail.
email_verified_atstring|null
When the e-mail was confirmed.
anonymized_atstring|null
When the account was anonymized on request (GDPR/LGPD), or null.
orders_countinteger
How many orders the account placed.
wallet_balanceinteger
Store-credit balance, in cents — detail endpoint only.
created_atstring
When the account was created.