Skip to Content
API ReferenceCustomer portal

Customer portal API

Build customer-safe account, order, entitlement, and subscription screens.

These routes accept a customer-session bearer token—not a seller API key. Every resource is limited to the signed-in customer and redacted for customer use. Read subscription capabilities immediately before showing an action.

A subscription's trial_ends_at is only set while it is TRIALING, so it is the date to show the customer as their trial end. The seller API's trial_ends_at keeps its value after the trial. A plan change preview says in preview.payment_required whether confirming charges amount_due today, and in preview.renewal_date when the subscription renews next.

A Stripe, PayPal, or Razorpay subscription with a payment still owed can only be cancelled immediately, or, on Razorpay, have its payment method updated too; every other action reads unsupported. A subscription the store bills in house that is on hold for an unpaid renewal comes back only when the customer pays that renewal on the store's own customer portal page, so resume reads unsupported here and the resume route returns 422. See Failed payments.

GET
/v2/customer-portal/me

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X GET 'https://sell.app/api/v2/customer-portal/me'
{  "data": {    "id": 314,    "email": "maya.chen@example.com",    "external_id": "crm_maya_314",    "name": "Maya Chen",    "locale": "en-GB",    "metadata": {      "plan": "standard",      "seats": 3    }  }}
PATCH
/v2/customer-portal/me

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

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*
Example Request
curl -X PATCH 'https://sell.app/api/v2/customer-portal/me' \  -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    }  }}
GET
/v2/customer-portal/orders

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Response Body

Successful response.

application/json
  1. response
data*array<>
links*
meta*
Example Request
curl -X GET 'https://sell.app/api/v2/customer-portal/orders'
{  "data": [    {      "id": 9001,      "status": "COMPLETED",      "currency": "USD",      "subtotal_cents": 1999,      "total_cents": 1999,      "line_items": [        {          "id": 501,          "product_id": 120,          "product_variant_id": 4321,          "product_title": "Founder memo circle",          "variant_title": "Monthly membership",          "quantity": 1,          "status": "COMPLETED"        }      ],      "created_at": "2026-09-04T09:10:00.000Z",      "updated_at": "2026-09-04T09:12:00.000Z"    }  ],  "links": {    "first": "https://sell.app/api/v2/customer-portal/orders?page=1",    "last": "https://sell.app/api/v2/customer-portal/orders?page=1",    "prev": null,    "next": null  },  "meta": {    "current_page": 1,    "from": 1,    "last_page": 1,    "path": "https://sell.app/api/v2/customer-portal/orders",    "per_page": 20,    "to": 1,    "total": 1,    "links": [      {        "url": null,        "label": "&laquo; Previous",        "active": false      },      {        "url": "https://sell.app/api/v2/customer-portal/orders?page=1",        "label": "1",        "active": true      },      {        "url": null,        "label": "Next &raquo;",        "active": false      }    ]  }}
GET
/v2/customer-portal/orders/{order}

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Path Parameters

order*integer

The order identifier.

Response Body

Successful response.

application/json
  1. response
data*

The customer's purchase summary. Seller-only payment details and status timelines are not included.

Example Request
curl -X GET 'https://sell.app/api/v2/customer-portal/orders/9001'
{  "data": {    "id": 9001,    "status": "COMPLETED",    "currency": "USD",    "subtotal_cents": 1999,    "total_cents": 1999,    "line_items": [      {        "id": 501,        "product_id": 120,        "product_variant_id": 4321,        "product_title": "Founder memo circle",        "variant_title": "Monthly membership",        "quantity": 1,        "status": "COMPLETED"      }    ],    "created_at": "2026-09-04T09:10:00.000Z",    "updated_at": "2026-09-04T09:12:00.000Z"  }}
GET
/v2/customer-portal/subscriptions

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Response Body

Successful response.

application/json
  1. response
data*array<>
links*
meta*
Example Request
curl -X GET 'https://sell.app/api/v2/customer-portal/subscriptions'
{  "data": [    {      "id": 1004,      "status": "TRIALING",      "cancel_at_period_end": false,      "current_period_start": "2026-09-20T10:00:00.000000Z",      "current_period_end": "2026-10-04T10:00:00.000000Z",      "trial_ends_at": "2026-10-04T10:00:00.000000Z",      "paused_at": null,      "pause_resumes_at": null,      "plan": {        "product_id": 131,        "product_variant_id": 97,        "product_title": "Founder memos",        "variant_title": "Monthly"      },      "created_at": "2026-09-20T10:00:00.000000Z",      "updated_at": "2026-09-20T10:00:00.000000Z"    },    {      "id": 991,      "status": "ACTIVE",      "cancel_at_period_end": false,      "current_period_start": "2026-09-01T00:00:00.000000Z",      "current_period_end": "2026-10-01T00:00:00.000000Z",      "trial_ends_at": null,      "paused_at": null,      "pause_resumes_at": null,      "plan": {        "product_id": 120,        "product_variant_id": 84,        "product_title": "Design kit",        "variant_title": "Monthly"      },      "created_at": "2026-06-01T09:14:02.000000Z",      "updated_at": "2026-09-01T00:00:04.000000Z"    }  ],  "links": {    "first": "https://sell.app/api/v2/customer-portal/subscriptions?page=1",    "last": "https://sell.app/api/v2/customer-portal/subscriptions?page=1",    "prev": null,    "next": null  },  "meta": {    "current_page": 1,    "from": 1,    "last_page": 1,    "path": "https://sell.app/api/v2/customer-portal/subscriptions",    "per_page": 20,    "to": 2,    "total": 2,    "links": [      {        "url": null,        "label": "&laquo; Previous",        "active": false      },      {        "url": "https://sell.app/api/v2/customer-portal/subscriptions?page=1",        "label": "1",        "active": true      },      {        "url": null,        "label": "Next &raquo;",        "active": false      }    ]  }}
GET
/v2/customer-portal/subscriptions/{subscription}

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Path Parameters

subscription*integer

The subscription identifier.

Response Body

Successful response.

application/json
  1. response
data*

A subscription of the signed-in customer. Provider IDs and seller-only details are not included.

Example Request
curl -X GET 'https://sell.app/api/v2/customer-portal/subscriptions/991'
{  "data": {    "id": 991,    "status": "ACTIVE",    "cancel_at_period_end": false,    "current_period_start": "2026-09-01T00:00:00.000000Z",    "current_period_end": "2026-10-01T00:00:00.000000Z",    "trial_ends_at": null,    "paused_at": null,    "pause_resumes_at": null,    "plan": {      "product_id": 120,      "product_variant_id": 84,      "product_title": "Design kit",      "variant_title": "Monthly"    },    "created_at": "2026-06-01T09:14:02.000000Z",    "updated_at": "2026-09-01T00:00:04.000000Z"  }}
GET
/v2/customer-portal/subscriptions/{subscription}/capabilities

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Path Parameters

subscription*integer

The subscription identifier.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X GET 'https://sell.app/api/v2/customer-portal/subscriptions/42/capabilities'
{  "data": {    "id": 991,    "capabilities": {      "pause": {        "status": "available",        "customer_reason": null,        "seller_reason": null      },      "resume": {        "status": "unsupported",        "customer_reason": "This subscription is not paused.",        "seller_reason": "Stripe cannot resume a subscription without pause_collection."      },      "cancel_at_period_end": {        "status": "available",        "customer_reason": null,        "seller_reason": null      }    }  }}
GET
/v2/customer-portal/entitlements

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Response Body

Successful response.

application/json
  1. response
data*array<>
Example Request
curl -X GET 'https://sell.app/api/v2/customer-portal/entitlements'
{  "data": [    {      "id": "subscription_access:991",      "kind": "subscription_access",      "state": "active",      "customer_id": 314,      "subject": {        "type": "product_variant",        "id": 84,        "name": "Design kit — monthly"      }    }  ]}
POST
/v2/customer-portal/subscriptions/{productSubscription}/actions/cancel-period-end

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Path Parameters

productSubscription*integer

The productSubscription identifier.

Header Parameters

Idempotency-Key?string

Reuse this key only for an identical retry. Retrying with it returns the action the first request recorded instead of starting a second one.

Lengthlength <= 128

Request Body

application/json
  1. body
reason?|
Lengthlength <= 500

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v2/customer-portal/subscriptions/42/actions/cancel-period-end' \  -H 'Idempotency-Key: project-library-2026-09-04' \  -H 'Content-Type: application/json' \  -d '{  "reason": "Taking a break over the summer."}'
{  "data": {    "id": 4821,    "subscription_id": 991,    "action": "cancel_at_period_end",    "status": "confirmed",    "customer_message": null,    "redirect_url": null,    "created_at": "2026-09-04T09:12:41.000000Z"  }}
POST
/v2/customer-portal/subscriptions/{productSubscription}/actions/cancel-immediately

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Path Parameters

productSubscription*integer

The productSubscription identifier.

Header Parameters

Idempotency-Key?string

Reuse this key only for an identical retry. Retrying with it returns the action the first request recorded instead of starting a second one.

Lengthlength <= 128

Request Body

application/json
  1. body
reason?|
Lengthlength <= 500

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v2/customer-portal/subscriptions/42/actions/cancel-immediately' \  -H 'Idempotency-Key: project-library-2026-09-04' \  -H 'Content-Type: application/json' \  -d '{  "reason": "No longer needed."}'
{  "data": {    "id": 4821,    "subscription_id": 991,    "action": "cancel_immediately",    "status": "confirmed",    "customer_message": null,    "redirect_url": null,    "created_at": "2026-09-04T09:12:41.000000Z"  }}
POST
/v2/customer-portal/subscriptions/{productSubscription}/actions/pause

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Path Parameters

productSubscription*integer

The productSubscription identifier.

Header Parameters

Idempotency-Key?string

Reuse this key only for an identical retry. Retrying with it returns the action the first request recorded instead of starting a second one.

Lengthlength <= 128

Request Body

application/json
  1. body
resume_at?|
Formatdate-time
reason?|
Lengthlength <= 500

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v2/customer-portal/subscriptions/42/actions/pause' \  -H 'Idempotency-Key: project-library-2026-09-04' \  -H 'Content-Type: application/json' \  -d '{  "resume_at": "2026-11-01T00:00:00Z"}'
{  "data": {    "id": 4821,    "subscription_id": 991,    "action": "pause",    "status": "confirmed",    "customer_message": null,    "redirect_url": null,    "created_at": "2026-09-04T09:12:41.000000Z"  }}
POST
/v2/customer-portal/subscriptions/{productSubscription}/actions/resume

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Path Parameters

productSubscription*integer

The productSubscription identifier.

Header Parameters

Idempotency-Key?string

Reuse this key only for an identical retry. Retrying with it returns the action the first request recorded instead of starting a second one.

Lengthlength <= 128

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v2/customer-portal/subscriptions/42/actions/resume' \  -H 'Idempotency-Key: project-library-2026-09-04'
{  "data": {    "id": 4821,    "subscription_id": 991,    "action": "resume",    "status": "confirmed",    "customer_message": null,    "redirect_url": null,    "created_at": "2026-09-04T09:12:41.000000Z"  }}
POST
/v2/customer-portal/subscriptions/{productSubscription}/actions/update-payment-method

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Path Parameters

productSubscription*integer

The productSubscription identifier.

Header Parameters

Idempotency-Key?string

Reuse this key only for an identical retry. Retrying with it returns the action the first request recorded instead of starting a second one.

Lengthlength <= 128

Request Body

application/json
  1. body
return_url?|
Formaturi
Lengthlength <= 2000

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v2/customer-portal/subscriptions/42/actions/update-payment-method' \  -H 'Idempotency-Key: project-library-2026-09-04' \  -H 'Content-Type: application/json' \  -d '{  "return_url": "https://acme.sell.app/customer-portal/subscriptions/991"}'
{  "data": {    "id": 4821,    "subscription_id": 991,    "action": "update_payment_method",    "status": "pending",    "customer_message": null,    "redirect_url": "https://billing.stripe.com/p/session/test_portal",    "created_at": "2026-09-04T09:12:41.000000Z"  }}
POST
/v2/customer-portal/subscriptions/{productSubscription}/actions/change-plan/preview

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Path Parameters

productSubscription*integer

The productSubscription identifier.

Request Body

application/json
  1. body
target_variant_id*integer
effective_timing?string
Value in"immediate""next_renewal"
proration_behavior?string
Value in"invoice_now""credit_next_invoice""none""provider_default"
metadata?

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v2/customer-portal/subscriptions/42/actions/change-plan/preview' \  -H 'Content-Type: application/json' \  -d '{  "target_variant_id": 97}'
{  "data": {    "preview_token": "subprev_portal_991",    "expires_at": "2026-09-04T09:42:41.000000Z",    "preview": {      "provider": "internal",      "subscription_id": "991",      "source_variant_id": 84,      "target_variant_id": 97,      "effective_timing": "immediate",      "proration_behavior": "provider_default",      "currency": "USD",      "renewal_amount": 2000,      "renewal_date": "2026-10-01T00:00:00+00:00",      "payment_required": true,      "provider_previewed_monetary_proration": true,      "amount_due": 870    },    "customer_message": null  }}
POST
/v2/customer-portal/subscriptions/{productSubscription}/actions/change-plan/confirm

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Path Parameters

productSubscription*integer

The productSubscription identifier.

Header Parameters

Idempotency-Key?string

Reuse this key only for an identical retry. Retrying with it returns the action the first request recorded instead of starting a second one.

Lengthlength <= 128

Request Body

application/json
  1. body
target_variant_id*integer
preview_token*string
Lengthlength <= 128
effective_timing?string
Value in"immediate""next_renewal"
proration_behavior?string
Value in"invoice_now""credit_next_invoice""none""provider_default"
metadata?

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v2/customer-portal/subscriptions/42/actions/change-plan/confirm' \  -H 'Idempotency-Key: project-library-2026-09-04' \  -H 'Content-Type: application/json' \  -d '{  "target_variant_id": 97,  "preview_token": "subprev_portal_991"}'
{  "data": {    "id": 4821,    "subscription_id": 991,    "action": "change_plan",    "status": "pending",    "customer_message": null,    "redirect_url": "https://acme.sell.app/orders/90880/plan-change?signature=example",    "created_at": "2026-09-04T09:12:41.000000Z"  }}
POST
/v2/customer-portal/subscriptions/{productSubscription}/actions/change-renewal-date/preview

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Path Parameters

productSubscription*integer

The productSubscription identifier.

Request Body

application/json
  1. body
renewal_date*string
Formatdate-time
reason?|
Lengthlength <= 500
metadata?

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v2/customer-portal/subscriptions/42/actions/change-renewal-date/preview' \  -H 'Content-Type: application/json' \  -d '{  "renewal_date": "2026-10-15T00:00:00Z"}'
{  "data": {    "preview_token": "subprev_portal_renewal_991",    "expires_at": "2026-09-04T09:42:41.000000Z",    "preview": {      "provider": "internal",      "renewal_date": "2026-10-15T00:00:00+00:00"    },    "customer_message": null  }}
POST
/v2/customer-portal/subscriptions/{productSubscription}/actions/change-renewal-date/confirm

Authorization

customerSession
headerAuthorizationBearer <Customer Session>

A customer-session token that expires after 15 minutes.

Path Parameters

productSubscription*integer

The productSubscription identifier.

Header Parameters

Idempotency-Key?string

Reuse this key only for an identical retry. Retrying with it returns the action the first request recorded instead of starting a second one.

Lengthlength <= 128

Request Body

application/json
  1. body
renewal_date*string
Formatdate-time
preview_token?|
Lengthlength <= 128
reason?|
Lengthlength <= 500
metadata?

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v2/customer-portal/subscriptions/42/actions/change-renewal-date/confirm' \  -H 'Idempotency-Key: project-library-2026-09-04' \  -H 'Content-Type: application/json' \  -d '{  "renewal_date": "2026-10-15T00:00:00Z",  "preview_token": "subprev_portal_renewal_991"}'
{  "data": {    "id": 4821,    "subscription_id": 991,    "action": "shift_billing_date",    "status": "confirmed",    "customer_message": null,    "redirect_url": null,    "created_at": "2026-09-04T09:12:41.000000Z"  }}