Billing portal
Create portal session
Mint a link that lets a customer manage their own subscription.
POST/v1/billing_portal/sessions
Parameters
| Parameter | Description |
|---|---|
| return_urlstring (uri)required | Must be an absolute URL. At most 2083 characters. |
| subscription_idstringrequired | At most 64 characters. |
| deliver_emailbooleanoptional | Defaults to false. |
Returns
Returns a BillingPortalSessionResponse object.
Errors
| Status | Cause |
|---|---|
| 401 | Missing or invalid API key. |
| 403 | Key is missing the subscriptions:write scope. |
| 422 | Validation Error |
| 429 | Rate limited. Back off and retry. |
Other billing portal operations
- Revoke portal session POST /v1/billing_portal/sessions/{session_id}/revoke
BillKit