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.
customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
Successful response.
application/json- response
data*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 } }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
application/json- body
email?stringemaillength <= 255name?|length <= 255locale?|^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$length <= 35metadata?properties <= 50Successful response.
application/json- response
data*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 } }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
Successful response.
application/json- response
data*array<>links*meta*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": "« Previous", "active": false }, { "url": "https://sell.app/api/v2/customer-portal/orders?page=1", "label": "1", "active": true }, { "url": null, "label": "Next »", "active": false } ] }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
order*integerThe order identifier.
Successful response.
application/json- response
data*The customer's purchase summary. Seller-only payment details and status timelines are not included.
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" }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
Successful response.
application/json- response
data*array<>links*meta*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": "« Previous", "active": false }, { "url": "https://sell.app/api/v2/customer-portal/subscriptions?page=1", "label": "1", "active": true }, { "url": null, "label": "Next »", "active": false } ] }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
subscription*integerThe subscription identifier.
Successful response.
application/json- response
data*A subscription of the signed-in customer. Provider IDs and seller-only details are not included.
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" }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
subscription*integerThe subscription identifier.
Successful response.
application/json- response
data*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 } } }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
Successful response.
application/json- response
data*array<>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" } } ]}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
productSubscription*integerThe productSubscription identifier.
Idempotency-Key?stringReuse this key only for an identical retry. Retrying with it returns the action the first request recorded instead of starting a second one.
length <= 128application/json- body
reason?|length <= 500Successful response.
application/json- response
data*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" }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
productSubscription*integerThe productSubscription identifier.
Idempotency-Key?stringReuse this key only for an identical retry. Retrying with it returns the action the first request recorded instead of starting a second one.
length <= 128application/json- body
reason?|length <= 500Successful response.
application/json- response
data*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" }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
productSubscription*integerThe productSubscription identifier.
Idempotency-Key?stringReuse this key only for an identical retry. Retrying with it returns the action the first request recorded instead of starting a second one.
length <= 128application/json- body
resume_at?|date-timereason?|length <= 500Successful response.
application/json- response
data*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" }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
productSubscription*integerThe productSubscription identifier.
Idempotency-Key?stringReuse this key only for an identical retry. Retrying with it returns the action the first request recorded instead of starting a second one.
length <= 128Successful response.
application/json- response
data*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" }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
productSubscription*integerThe productSubscription identifier.
Idempotency-Key?stringReuse this key only for an identical retry. Retrying with it returns the action the first request recorded instead of starting a second one.
length <= 128application/json- body
return_url?|urilength <= 2000Successful response.
application/json- response
data*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" }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
productSubscription*integerThe productSubscription identifier.
application/json- body
target_variant_id*integereffective_timing?string"immediate""next_renewal"proration_behavior?string"invoice_now""credit_next_invoice""none""provider_default"metadata?Successful response.
application/json- response
data*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 }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
productSubscription*integerThe productSubscription identifier.
Idempotency-Key?stringReuse this key only for an identical retry. Retrying with it returns the action the first request recorded instead of starting a second one.
length <= 128application/json- body
target_variant_id*integerpreview_token*stringlength <= 128effective_timing?string"immediate""next_renewal"proration_behavior?string"invoice_now""credit_next_invoice""none""provider_default"metadata?Successful response.
application/json- response
data*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" }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
productSubscription*integerThe productSubscription identifier.
application/json- body
renewal_date*stringdate-timereason?|length <= 500metadata?Successful response.
application/json- response
data*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 }}customerSessionAuthorizationBearer <Customer Session>A customer-session token that expires after 15 minutes.
productSubscription*integerThe productSubscription identifier.
Idempotency-Key?stringReuse this key only for an identical retry. Retrying with it returns the action the first request recorded instead of starting a second one.
length <= 128application/json- body
renewal_date*stringdate-timepreview_token?|length <= 128reason?|length <= 500metadata?Successful response.
application/json- response
data*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" }}