Skip to Content
API ReferenceCustomers

Customer identity and access

Connect customer identities and summarize access from purchases.

Use external_id to join a SellApp customer to your own system. It is unique and immutable inside a store. Email addresses are normalized before uniqueness checks; locale uses BCP 47; metadata accepts only a small map of scalar values.

Entitlements summarize access from purchases, licenses, subscriptions, bookings, and community grants. They do not establish current membership at an external provider. The summary omits license keys, serials, files, fulfillment payloads, and seller-only metadata.

A subscription_access entitlement follows the subscription's access. A past-due subscription keeps access while its payment is being collected, and an unpaid one loses it until it is paid. So state is active while the subscription is active, trialing, or past due, and suspended while it is unpaid, paused, or on hold for an unpaid renewal. A cancelled subscription reads revoked, an incomplete one pending, and one whose first payment expired expired. See Failed payments.

For SDK/REST calls, use an API key with the invoice ability and matching store permission. Official CLI/MCP connections use their admin grant and current permissions. Send X-STORE for this store.

Use PUT /v2/customers/external/{externalId} to create or update one identity. Send email every time. Omitted name, locale, and metadata stay unchanged; supplying metadata replaces the complete object. The URL supplies the immutable external ID (1–255 characters, URL-encoded as one path segment). Creation returns 201; an update returns 200. An email owned by another customer returns 422; a concurrent identity collision can return 409. Retrieve the customer and check its identity before retrying. No customers are merged.

POST
/v2/customers

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Header Parameters

Idempotency-Key?string

Reuse this key only for an identical retry. A replay returns Idempotent-Replayed: true.

Length8 <= length <= 255
X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
external_id?string
Lengthlength <= 255
email*string
Formatemail
Lengthlength <= 255
name?|
Lengthlength <= 255
locale?|
Match^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$
Lengthlength <= 35
metadata?
Propertiesproperties <= 50

Response Body

Created.

application/json
  1. response
data*

A store-scoped customer profile. Checkout IP, billing, location, and community identity data are intentionally excluded.

Example Request
curl -X POST 'https://sell.app/api/v2/customers' \  -H 'Idempotency-Key: project-library-2026-09-04' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "id": 314,  "email": "maya.chen@example.com",  "external_id": "crm_maya_314",  "name": "Maya Chen",  "locale": "en-GB",  "metadata": {    "plan": "standard",    "seats": 3  }}'
{  "data": {    "id": 314,    "email": "maya.chen@example.com",    "external_id": "crm_maya_314",    "name": "Maya Chen",    "locale": "en-GB",    "metadata": {      "plan": "standard",      "seats": 3    },    "insights": {      "orders_count": 0,      "line_items_count": 0,      "completed_line_items_count": 0,      "pending_line_items_count": 0,      "voided_line_items_count": 0,      "subscriptions_count": 0,      "revenue_usd_cents": 0,      "first_purchase_at": null,      "last_purchase_at": null,      "favorite_payment_method": null    },    "created_at": "2026-08-24T10:00:00.000000Z",    "updated_at": "2026-08-24T10:00:00.000000Z"  }}
PATCH
/v2/customers/{customer}

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

customer*integer

The customer identifier.

Header Parameters

Idempotency-Key?string

Reuse this key only for an identical retry. A replay returns Idempotent-Replayed: true.

Length8 <= length <= 255
X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
email?string
Formatemail
Lengthlength <= 255
name?|
Lengthlength <= 255
locale?|
Match^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$
Lengthlength <= 35
metadata?
Propertiesproperties <= 50
external_id?string

May be assigned when unset; an existing value is immutable.

Length1 <= length <= 255

Response Body

Successful response.

application/json
  1. response
data*

A store-scoped customer profile. Checkout IP, billing, location, and community identity data are intentionally excluded.

Example Request
curl -X PATCH 'https://sell.app/api/v2/customers/314' \  -H 'Idempotency-Key: project-library-2026-09-04' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "locale": "en-US"}'
{  "data": {    "id": 314,    "email": "maya.chen@example.com",    "external_id": "crm_maya_314",    "name": "Maya Chen",    "locale": "en-US",    "metadata": {      "plan": "standard",      "seats": 3    },    "insights": {      "orders_count": 0,      "line_items_count": 0,      "completed_line_items_count": 0,      "pending_line_items_count": 0,      "voided_line_items_count": 0,      "subscriptions_count": 0,      "revenue_usd_cents": 0,      "first_purchase_at": null,      "last_purchase_at": null,      "favorite_payment_method": null    },    "created_at": "2026-08-24T10:00:00.000000Z",    "updated_at": "2026-08-24T10:00:00.000000Z"  }}
GET
/v2/customers/external/{externalId}

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

externalId*string

The externalId identifier.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Response Body

Successful response.

application/json
  1. response
data*

A store-scoped customer profile. Checkout IP, billing, location, and community identity data are intentionally excluded.

Example Request
curl -X GET 'https://sell.app/api/v2/customers/external/314' \  -H 'X-STORE: launch-lab'
{  "data": {    "id": 314,    "email": "maya.chen@example.com",    "external_id": "crm_maya_314",    "name": "Maya Chen",    "locale": "en-GB",    "metadata": {      "plan": "standard",      "seats": 3    },    "insights": {      "orders_count": 0,      "line_items_count": 0,      "completed_line_items_count": 0,      "pending_line_items_count": 0,      "voided_line_items_count": 0,      "subscriptions_count": 0,      "revenue_usd_cents": 0,      "first_purchase_at": null,      "last_purchase_at": null,      "favorite_payment_method": null    },    "created_at": "2026-08-24T10:00:00.000000Z",    "updated_at": "2026-08-24T10:00:00.000000Z"  }}
PATCH
/v2/customers/external/{externalId}

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

externalId*string

The externalId identifier.

Header Parameters

Idempotency-Key?string

Reuse this key only for an identical retry. A replay returns Idempotent-Replayed: true.

Length8 <= length <= 255
X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
email?string
Formatemail
Lengthlength <= 255
name?|
Lengthlength <= 255
locale?|
Match^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$
Lengthlength <= 35
metadata?
Propertiesproperties <= 50

Response Body

Successful response.

application/json
  1. response
data*

A store-scoped customer profile. Checkout IP, billing, location, and community identity data are intentionally excluded.

Example Request
curl -X PATCH 'https://sell.app/api/v2/customers/external/314' \  -H 'Idempotency-Key: project-library-2026-09-04' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "locale": "en-US"}'
{  "data": {    "id": 314,    "email": "maya.chen@example.com",    "external_id": "crm_maya_314",    "name": "Maya Chen",    "locale": "en-US",    "metadata": {      "plan": "standard",      "seats": 3    },    "insights": {      "orders_count": 0,      "line_items_count": 0,      "completed_line_items_count": 0,      "pending_line_items_count": 0,      "voided_line_items_count": 0,      "subscriptions_count": 0,      "revenue_usd_cents": 0,      "first_purchase_at": null,      "last_purchase_at": null,      "favorite_payment_method": null    },    "created_at": "2026-08-24T10:00:00.000000Z",    "updated_at": "2026-08-24T10:00:00.000000Z"  }}
PUT
/v2/customers/external/{externalId}

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

externalId*string

Store-local external ID, 1–255 characters; whitespace-only values are invalid. URL-encode it as one path segment.

Length1 <= length <= 255

Header Parameters

Idempotency-Key?string

Reuse this key only for an identical retry. A replay returns Idempotent-Replayed: true.

Length8 <= length <= 255
X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
email*string
Formatemail
Lengthlength <= 255
name?|
Lengthlength <= 255
locale?|
Match^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$
Lengthlength <= 35
metadata?
Propertiesproperties <= 50

Response Body

Successful response.

application/json
  1. response
data*

A store-scoped customer profile. Checkout IP, billing, location, and community identity data are intentionally excluded.

Example Request
curl -X PUT 'https://sell.app/api/v2/customers/external/crm_maya_314' \  -H 'Idempotency-Key: project-library-2026-09-04' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "email": "maya.chen@example.com",  "name": "Maya Chen"}'
{  "data": {    "id": 314,    "email": "maya.chen@example.com",    "external_id": "crm_maya_314",    "name": "Maya Chen",    "locale": "en-US",    "metadata": {      "plan": "standard",      "seats": 3    },    "insights": {      "orders_count": 0,      "line_items_count": 0,      "completed_line_items_count": 0,      "pending_line_items_count": 0,      "voided_line_items_count": 0,      "subscriptions_count": 0,      "revenue_usd_cents": 0,      "first_purchase_at": null,      "last_purchase_at": null,      "favorite_payment_method": null    },    "created_at": "2026-08-24T10:00:00.000000Z",    "updated_at": "2026-08-24T10:00:00.000000Z"  }}
GET
/v2/customers/{customer}/entitlements

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

customer*integer

The customer identifier.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Response Body

Successful response.

application/json
  1. response
data*array<>
Example Request
curl -X GET 'https://sell.app/api/v2/customers/42/entitlements' \  -H 'X-STORE: launch-lab'
{  "data": [    {      "id": "subscription_access:991",      "kind": "subscription_access",      "state": "active",      "customer_id": 314,      "subject": {        "type": "product_variant",        "id": 84,        "name": "Design kit — monthly"      }    }  ]}
GET
/v2/customers/external/{externalId}/entitlements

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

externalId*string

The externalId identifier.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Response Body

Successful response.

application/json
  1. response
data*array<>
Example Request
curl -X GET 'https://sell.app/api/v2/customers/external/externalId_01K4CUSTOMER/entitlements' \  -H 'X-STORE: launch-lab'
{  "data": [    {      "id": "subscription_access:991",      "kind": "subscription_access",      "state": "active",      "customer_id": 314,      "subject": {        "type": "product_variant",        "id": 84,        "name": "Design kit — monthly"      }    }  ]}