Developers
Reference

Store customers

Buyer accounts, deduplicated by email.

List the store’s customers #

GET/api/public/v1/quoshop/customers
Scope : customers:readlistCustomers

The store’s buyer accounts. Filters: q (email, first name, last name), exact email, updatedSince. Allowed sort: createdAt, updatedAt, email (default -createdAt).

Parameters

  • langstringquery

    Language of the merchant content (titles, descriptions), among the store’s languages (GET /store → locales). Default: Accept-Language, otherwise the store’s default language. Code labels (statusLabel…) follow this language when it is fr, en or ar, English otherwise.

  • pagenumberquery

    Page number (starting at 1).

  • pageSizenumberquery

    Items per page (100 at most).

  • sortstringquery

    Sort: comma-separated fields, - prefix for descending order. Allowed fields: see the route description.

  • updatedSincestringquery

    Only returns the items created or modified since this instant (ISO 8601, inclusive): the recommended form of an incremental sync, alongside webhooks.

  • cursorstringquery

    Cursor pagination: nextCursor of the previous page, to be passed back as is with the same filters and the same sort. Stable even if items are created during the walk, and constant cost whatever the depth. Mutually exclusive with page.

  • limitnumberquery

    Cursor pagination: items per page (100 at most). ?limit=100 starts a cursor walk; the response returns pagination.nextCursor.

  • qstringquery

    Search in the email, first name and last name.

  • emailstringquery

    Exact email (case-insensitive).

  • X-QuoShop-Storestringheader

    Target store: identifier (UUID) or slug. Optional when the workspace holds only one. Store not in the workspace (404), suspended (403), or not specified while the workspace holds several (400, detail.stores).

Response 200application/json

Success.

  • itemsCustomerDto[]required
    CustomerDto details
  • paginationPaginationDtorequired
    PaginationDto details

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl 'https://quosuite.com/api/public/v1/quoshop/customers' \
  -H "Authorization: Bearer $QUOSHOP_API_KEY"
Response example
{
  "success": true,
  "data": {
    "items": [
      {
        "id": "26aec12b-63ad-42b2-8d53-0aa2549e5b45",
        "email": "client@exemple.tn",
        "firstName": "Sarra",
        "lastName": "Ben Ali",
        "phone": null,
        "acceptsMarketing": true,
        "locale": "fr",
        "active": true,
        "emailVerified": true,
        "ordersCount": 3,
        "addresses": [
          {
            "id": "dfc810fd-44df-4fb2-8a3d-704a54c61e25",
            "label": "Domicile",
            "fullName": null,
            "phone": null,
            "line1": "12 rue de la Liberté",
            "line2": null,
            "postalCode": null,
            "city": null,
            "country": "TN",
            "isDefaultShipping": true,
            "isDefaultBilling": true
          }
        ],
        "createdAt": "2026-10-02T09:15:00.000Z",
        "updatedAt": "2026-10-02T09:15:00.000Z"
      }
    ],
    "pagination": {
      "page": 1,
      "pageSize": 25,
      "totalItems": 132,
      "totalPages": 6,
      "limit": 100,
      "nextCursor": "c1.eyJzIjoiZGF0ZTpkZXNjLGlkOmFzYyIsImYiOiJ…",
      "hasMore": true
    }
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

Create a customer (deduplicated by email) #

POST/api/public/v1/quoshop/customers
Scope : customers:writeIdempotentcreateCustomer

Creates the buyer account — and, behind it, finds or creates the ERP customer record by the same email: the storefront, the API and invoicing all end up on the same record.

Deduplication: an existing account for this email is returned as is, unmodified (Idempotent-Replayed: true) — syncing your customers several times creates no duplicates. Update it with PATCH.

The account has no password: it cannot be signed into on the storefront.

Parameters

  • X-QuoShop-Storestringheader

    Target store: identifier (UUID) or slug. Optional when the workspace holds only one. Store not in the workspace (404), suspended (403), or not specified while the workspace holds several (400, detail.stores).

  • Idempotency-Keystringheader

    Idempotency key (1–255 printable ASCII characters, UUID v4 recommended). A retry with the same key and the same body within 24 h replays the response of the first successful call (header Idempotent-Replayed: true) instead of creating a second time. Same key, different body: 422 IDEMPOTENCY_KEY_REUSED. First call still in progress: 409 IDEMPOTENCY_IN_PROGRESS.

Request body application/json

  • emailstringrequired

    Deduplication key: an existing account for this email (on this store) is returned as is instead of creating a second one.

    e.g.client@exemple.tn
  • firstNamestring
    e.g.Sarra
  • lastNamestring
    e.g.Ben Ali
  • phonestring
  • acceptsMarketingboolean
    defaultfalse
  • localestring

    Buyer’s language.

    e.g.fr

Response 201application/json

Account created — or the existing account for this email (`Idempotent-Replayed: true`).

  • idstring (uuid)required

    Store buyer account.

  • emailstringrequired

    Unique per store.

    e.g.client@exemple.tn
  • firstNamestring | null
    e.g.Sarra
  • lastNamestring | null
    e.g.Ben Ali
  • phonestring | null
  • acceptsMarketingbooleanrequired

    Accepts marketing communications.

  • localestring | null
    e.g.fr
  • activebooleanrequired

    Active account (a deactivated account can no longer order).

  • emailVerifiedbooleanrequired
  • ordersCountnumberrequired

    Orders attached to the account.

    e.g.3
  • addressesCustomerAddressDto[]required
    CustomerAddressDto details
  • createdAtstringrequired
  • updatedAtstringrequired

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

409CONFLICTIDEMPOTENCY_IN_PROGRESS

Conflict: unique value already taken, or same idempotency key still in progress.

422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED

Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quoshop/customers' \
  -H "Authorization: Bearer $QUOSHOP_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "client@exemple.tn"
}'
Response example
{
  "success": true,
  "data": {
    "id": "26aec12b-63ad-42b2-8d53-0aa2549e5b45",
    "email": "client@exemple.tn",
    "firstName": "Sarra",
    "lastName": "Ben Ali",
    "phone": null,
    "acceptsMarketing": true,
    "locale": "fr",
    "active": true,
    "emailVerified": true,
    "ordersCount": 3,
    "addresses": [
      {
        "id": "dfc810fd-44df-4fb2-8a3d-704a54c61e25",
        "label": "Domicile",
        "fullName": null,
        "phone": null,
        "line1": "12 rue de la Liberté",
        "line2": null,
        "postalCode": null,
        "city": null,
        "country": "TN",
        "isDefaultShipping": true,
        "isDefaultBilling": true
      }
    ],
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Store customer details #

GET/api/public/v1/quoshop/customers/{id}
Scope : customers:readgetCustomer

Account, address book and number of orders.

Parameters

  • idstring (uuid)pathrequired

    Buyer account identifier.

  • langstringquery

    Language of the merchant content (titles, descriptions), among the store’s languages (GET /store → locales). Default: Accept-Language, otherwise the store’s default language. Code labels (statusLabel…) follow this language when it is fr, en or ar, English otherwise.

  • X-QuoShop-Storestringheader

    Target store: identifier (UUID) or slug. Optional when the workspace holds only one. Store not in the workspace (404), suspended (403), or not specified while the workspace holds several (400, detail.stores).

Response 200application/json

Success.

  • idstring (uuid)required

    Store buyer account.

  • emailstringrequired

    Unique per store.

    e.g.client@exemple.tn
  • firstNamestring | null
    e.g.Sarra
  • lastNamestring | null
    e.g.Ben Ali
  • phonestring | null
  • acceptsMarketingbooleanrequired

    Accepts marketing communications.

  • localestring | null
    e.g.fr
  • activebooleanrequired

    Active account (a deactivated account can no longer order).

  • emailVerifiedbooleanrequired
  • ordersCountnumberrequired

    Orders attached to the account.

    e.g.3
  • addressesCustomerAddressDto[]required
    CustomerAddressDto details
  • createdAtstringrequired
  • updatedAtstringrequired

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl 'https://quosuite.com/api/public/v1/quoshop/customers/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
  -H "Authorization: Bearer $QUOSHOP_API_KEY"
Response example
{
  "success": true,
  "data": {
    "id": "26aec12b-63ad-42b2-8d53-0aa2549e5b45",
    "email": "client@exemple.tn",
    "firstName": "Sarra",
    "lastName": "Ben Ali",
    "phone": null,
    "acceptsMarketing": true,
    "locale": "fr",
    "active": true,
    "emailVerified": true,
    "ordersCount": 3,
    "addresses": [
      {
        "id": "dfc810fd-44df-4fb2-8a3d-704a54c61e25",
        "label": "Domicile",
        "fullName": null,
        "phone": null,
        "line1": "12 rue de la Liberté",
        "line2": null,
        "postalCode": null,
        "city": null,
        "country": "TN",
        "isDefaultShipping": true,
        "isDefaultBilling": true
      }
    ],
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

Update a store customer #

PATCH/api/public/v1/quoshop/customers/{id}
Scope : customers:writeupdateCustomer

Partial update (name, phone, marketing consent, language). The email does not change: it identifies the account and its ERP record. The name and phone follow on the ERP customer record.

Parameters

  • idstring (uuid)pathrequired

    Buyer account identifier.

  • X-QuoShop-Storestringheader

    Target store: identifier (UUID) or slug. Optional when the workspace holds only one. Store not in the workspace (404), suspended (403), or not specified while the workspace holds several (400, detail.stores).

Request body application/json

  • firstNamestring
    e.g.Sarra
  • lastNamestring
    e.g.Ben Ali
  • phonestring
  • acceptsMarketingboolean
    defaultfalse
  • localestring

    Buyer’s language.

    e.g.fr

Response 200application/json

Success.

  • idstring (uuid)required

    Store buyer account.

  • emailstringrequired

    Unique per store.

    e.g.client@exemple.tn
  • firstNamestring | null
    e.g.Sarra
  • lastNamestring | null
    e.g.Ben Ali
  • phonestring | null
  • acceptsMarketingbooleanrequired

    Accepts marketing communications.

  • localestring | null
    e.g.fr
  • activebooleanrequired

    Active account (a deactivated account can no longer order).

  • emailVerifiedbooleanrequired
  • ordersCountnumberrequired

    Orders attached to the account.

    e.g.3
  • addressesCustomerAddressDto[]required
    CustomerAddressDto details
  • createdAtstringrequired
  • updatedAtstringrequired

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

409CONFLICTIDEMPOTENCY_IN_PROGRESS

Conflict: unique value already taken, or same idempotency key still in progress.

422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED

Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl -X PATCH 'https://quosuite.com/api/public/v1/quoshop/customers/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
  -H "Authorization: Bearer $QUOSHOP_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "firstName": "Sarra",
  "lastName": "Ben Ali",
  "locale": "fr"
}'
Response example
{
  "success": true,
  "data": {
    "id": "26aec12b-63ad-42b2-8d53-0aa2549e5b45",
    "email": "client@exemple.tn",
    "firstName": "Sarra",
    "lastName": "Ben Ali",
    "phone": null,
    "acceptsMarketing": true,
    "locale": "fr",
    "active": true,
    "emailVerified": true,
    "ordersCount": 3,
    "addresses": [
      {
        "id": "dfc810fd-44df-4fb2-8a3d-704a54c61e25",
        "label": "Domicile",
        "fullName": null,
        "phone": null,
        "line1": "12 rue de la Liberté",
        "line2": null,
        "postalCode": null,
        "city": null,
        "country": "TN",
        "isDefaultShipping": true,
        "isDefaultBilling": true
      }
    ],
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Generated from the QuoShop API OpenAPI contract v1.0.0.