{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
Subscriptions
Start a checkout
Requires billing:write. Puts one of your prices in front of one of your customers and answers with somewhere to send them.
What exists after this call
A subscription here, with status incomplete and an emptyprovider_subscription_id, and a checkout URL at the gateway. Nobody has paid. The subscription becomes real when the payer completes the checkout and the gateway tells us so — until then it is a row that exists here and nowhere else, which is why nothing about it can be changed or cancelled yet.
A checkout the payer abandons leaves that row behind, and that is deliberate: it is never deleted, because a subscription is never deleted. Several pending checkouts in one environment are several real pending checkouts.
Retrying it
Send an Idempotency-Key. A repeat under the same key answers the same subscription and the same checkout URL instead of starting a second one — which is what a lost response needs, since the first attempt’s session is already live and payable.
The price has to be sellable and chargeable
It must be recurring — a one_time price is a payment and has no subscription behind it — and it must not be archived, because withdrawing an offer is exactly the act of no longer selling it.
It must also be mapped onto the gateway: a price in your catalogue is a price here, and the gateway needs its own id for it. The mapping is per merchant account, and the account is only known after the connection’s health check has asked who the keys belong to — so an unverified connection is refused with something to go and do rather than a guess about which account collects the money.
A returning payer is not duplicated
If this customer has paid through this gateway before, the gateway’s own id for them is found and reused, so they keep one payment method and one billing history. Finding it takes a read at the gateway, and if that read cannot be made the checkout is refused rather than falling through to creating a second payer record — there is no un-merge at a gateway either.
If they have never paid, the gateway creates the payer and collects the address itself.
trial_days
Passes a free period to the gateway. Omitted, the checkout carries whatever the price itself promises — trial_days is part of the offer and lives on the catalogue price — so the pricing page and the checkout tell one story by default. Sending a value overrides the price’s for this checkout only, and an explicit 0 waives the trial. The trial’s end date is not written here until the gateway says what it is: now + trial_days would be a date an entitlement expires on that nothing happens at.
Discounting it
coupon_id applies one of this environment’s coupons. The gateway needs a coupon object of its own to honour it, so the first checkout that applies a coupon on a gateway account creates it there and every later one reuses it — which is why the discount needs the gateway’s manage_coupons capability, and a gateway without it answers 501 rather than silently charging full price to somebody who was shown a discount. An amount coupon must discount the price’s own currency; an archived or expired coupon is refused by name.
allow_promotion_codes opens a field at the gateway’s checkout page where the payer types a code of their own — codes you configured at the gateway. It is mutually exclusive with coupon_id (two ways to discount one checkout) and needs the same capability.
POST
/
v1
/
organization
/
subscriptions
/
checkout
Error
A valid request URL is required to generate request examples
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}
Authorizations
Authorization
string
header
required
A staff session token, uk_st_…. Minted by sign-up, sign-in or the two-factor exchange. Only a 401 means it is spent; not_a_member (403) is about the organization named in X-Organization-Id and leaves the token good for the others.
Headers
X-Organization-Id
string
The organization the caller is acting on — the org_… code that appears in the panel URL. It identifies; the membership JOIN is what authorizes, so a forged code reads nothing: the answer is not_a_member (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds.
Idempotency-Key
string
A key you choose that makes starting a checkout safe to retry, end to end.
A repeat under the same key does not start a second checkout: it answers the same subscription and the same gateway session as the first attempt, with Idempotent-Replay: true. That is what a lost response needs — the first attempt's session is live and payable, and the answer that went missing carries the only id tying a payment to a row.
The key names one act. Sent with a different customer, price or quantity it is refused (422, idempotency_key_reused), and once the checkout it started has been paid it is refused (409, checkout_already_completed) rather than putting a second session in front of somebody who is already subscribed. Send a fresh key per checkout you mean to start: two checkouts for one customer on one price are two real checkouts, and the key is the only thing that can say otherwise.
It is forwarded to the gateway as its idempotency key too, so the retry and the original arrive there as one request. Retry with the body unchanged — the gateway compares every parameter, including success_url and cancel_url, and answers a mismatch with a refusal of its own.
Maximum string length: 255
Query Parameters
environment
enum<string>
default:live
Which environment to act in. A view parameter, valid only on the staff surface — a machine credential never chooses its environment, it is resolved from the key.
Available options:
live,
test
Body
application/json
customer_id
string<uuid>
required
Who is being billed. Must be a customer of this environment.
price_id
string<uuid>
required
The catalogue price to sell, in this environment. Recurring, not archived, and mapped onto the gateway.
success_url
string<uri>
required
Where the payer lands after paying. Required, and it has to be an http(s) URL.
quantity
integer<int64>
default:1
Seats or units. 1 when omitted; 0 is refused, because a line for none of something is not a line. On a per_seat price it is refused entirely: the quantity is the customer's own member count, derived here and kept in step automatically.
Required range: x >= 1
cancel_url
string<uri>
Where they land if they back out. Optional — a gateway with no cancel destination returns them itself.
trial_days
integer
Free days before the first charge. Omit to carry what the price itself promises; send a value to override for this checkout, and an explicit 0 to waive the trial.
Required range: x >= 0
coupon_id
string<uuid>
A coupon from this environment's catalogue to apply. Omit for full price. Needs the gateway's manage_coupons; an amount coupon must be in the price's currency.
allow_promotion_codes
boolean
default:false
Open a field at the gateway's page where the payer types a promotion code of their own. Mutually exclusive with coupon_id, and needs the gateway's manage_coupons.
provider
enum<string>
Which gateway to charge through. Only needed when the environment has more than one connected: with one there is nothing to disambiguate, and with two picking for you would be choosing whose merchant account collects.
Available options:
stripe
Response
The subscription row and where to send the payer. expires_at is null when the gateway does not say — a made-up expiry would be a countdown to a moment nothing happens at.
subscription
object
What one of your customers is paying, mirrored from the gateway.
That word decides how to read every field below. The gateway is the source of truth about money; this is a local copy kept so an entitlement can be answered without a network call, joined to the rest of your data, and read while the gateway is unreachable. provider_synced_at is when the copy was last confirmed — null means never, which is what a checkout that was started and not completed looks like.
Show child attributes
checkout
object
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"UserKit","description":"Accounts, organizations and the customer plane — the API and the panel that consumes it.","colors":{"primary":"#0f4f52","light":"#58b3aa","dark":"#0f4f52"},"logo":{"light":"https://mintcdn.com/user-kit/VaQUK7mtRAlbCBqS/logo/light.svg?fit=max\u0026auto=format\u0026n=VaQUK7mtRAlbCBqS\u0026q=85\u0026s=9020ef905fee768a55dea940ba59ac15","dark":"https://mintcdn.com/user-kit/VaQUK7mtRAlbCBqS/logo/dark.svg?fit=max\u0026auto=format\u0026n=VaQUK7mtRAlbCBqS\u0026q=85\u0026s=47b214bbfe2c83651db80a476119d4a9"},"favicon":"https://mintcdn.com/user-kit/VaQUK7mtRAlbCBqS/favicon.png?fit=max\u0026auto=format\u0026n=VaQUK7mtRAlbCBqS\u0026q=85\u0026s=aa29d7e81d7eb5db65711f34212a5a7c","api":{"playground":{"display":"interactive"}},"appearance":{"default":"system"},"footer":{"socials":{"github":"https://github.com/userkithq"}},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":"en"},{"language":"pt-BR","href":"pt-br"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"user-kit","hasAudioNarration":false,"actualSubdomain":"user-kit","customDomains":["docs.userkit.dev"],"gitSource":{"type":"github","owner":"userkithq","repo":"monorepo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aa40cf9bdd70a0f973b4bbe","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"en","tag":"API reference","count":421},{"language":"pt-BR","tag":"Referência da API","count":421},{"language":"en","tag":"Endpoints","count":417},{"language":"pt-BR","tag":"Endpoints","count":417},{"language":"en","tag":"Documentation","count":47},{"language":"pt-BR","tag":"Documentação","count":47},{"language":"en","tag":"Guides","count":28},{"language":"pt-BR","tag":"Guias","count":28},{"language":"en","tag":"Support","count":25},{"language":"pt-BR","tag":"Support","count":25},{"language":"en","tag":"Analytics","count":22},{"language":"en","tag":"Contacts (staff session)","count":22},{"language":"pt-BR","tag":"Analytics","count":22},{"language":"pt-BR","tag":"Contacts (staff session)","count":22},{"language":"en","tag":"Gamification","count":21},{"language":"pt-BR","tag":"Gamification","count":21},{"language":"en","tag":"Environments","count":20},{"language":"pt-BR","tag":"Environments","count":20},{"language":"en","tag":"Customer plane","count":19},{"language":"pt-BR","tag":"Customer plane","count":19}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"en/api-reference/endpoints/subscriptions/start-a-checkout","slug":"/en/api-reference/endpoints/subscriptions/start-a-checkout","pageMetadata":{"title":"Start a checkout","description":"Requires `billing:write`. Puts one of your prices in front of one of your customers and answers with somewhere to send them.\n\n## What exists after this call\n\nA subscription here, with status `incomplete` and an **empty** `provider_subscription_id`, and a checkout URL at the gateway. Nobody has paid. The subscription becomes real when the payer completes the checkout and the gateway tells us so — until then it is a row that exists here and nowhere else, which is why nothing about it can be changed or cancelled yet.\n\nA checkout the payer abandons leaves that row behind, and that is deliberate: it is never deleted, because a subscription is never deleted. Several pending checkouts in one environment are several real pending checkouts.\n\n## Retrying it\n\nSend an `Idempotency-Key`. A repeat under the same key answers the same subscription and the same checkout URL instead of starting a second one — which is what a lost response needs, since the first attempt's session is already live and payable.\n\n## The price has to be sellable and chargeable\n\nIt must be `recurring` — a `one_time` price is a payment and has no subscription behind it — and it must not be archived, because withdrawing an offer is exactly the act of no longer selling it.\n\nIt must also be **mapped onto the gateway**: a price in your catalogue is a price here, and the gateway needs its own id for it. The mapping is per merchant account, and the account is only known after the connection's health check has asked who the keys belong to — so an unverified connection is refused with something to go and do rather than a guess about which account collects the money.\n\n## A returning payer is not duplicated\n\nIf this customer has paid through this gateway before, the gateway's own id for them is found and reused, so they keep one payment method and one billing history. Finding it takes a read at the gateway, and if that read cannot be made the checkout is **refused** rather than falling through to creating a second payer record — there is no un-merge at a gateway either.\n\nIf they have never paid, the gateway creates the payer and collects the address itself.\n\n## trial_days\n\nPasses a free period to the gateway. Omitted, the checkout carries whatever the price itself promises — `trial_days` is part of the offer and lives on the catalogue price — so the pricing page and the checkout tell one story by default. Sending a value overrides the price's for this checkout only, and an explicit `0` waives the trial. The trial's end date is not written here until the gateway says what it is: `now + trial_days` would be a date an entitlement expires on that nothing happens at.\n\n## Discounting it\n\n`coupon_id` applies one of this environment's coupons. The gateway needs a coupon object of its own to honour it, so the first checkout that applies a coupon on a gateway account **creates it there** and every later one reuses it — which is why the discount needs the gateway's `manage_coupons` capability, and a gateway without it answers **501** rather than silently charging full price to somebody who was shown a discount. An amount coupon must discount the price's own currency; an archived or expired coupon is refused by name.\n\n`allow_promotion_codes` opens a field at the gateway's checkout page where the payer types a code of their own — codes you configured at the gateway. It is mutually exclusive with `coupon_id` (two ways to discount one checkout) and needs the same capability.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/subscriptions/checkout","href":"/en/api-reference/endpoints/subscriptions/start-a-checkout","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n h2: \"h2\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Requires \", _jsx(_components.code, {\n children: \"billing:write\"\n }), \". Puts one of your prices in front of one of your customers and answers with somewhere to send them.\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"What exists after this call\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A subscription here, with status \", _jsx(_components.code, {\n children: \"incomplete\"\n }), \" and an \", _jsx(_components.strong, {\n children: \"empty\"\n }), \" \", _jsx(_components.code, {\n children: \"provider_subscription_id\"\n }), \", and a checkout URL at the gateway. Nobody has paid. The subscription becomes real when the payer completes the checkout and the gateway tells us so — until then it is a row that exists here and nowhere else, which is why nothing about it can be changed or cancelled yet.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"A checkout the payer abandons leaves that row behind, and that is deliberate: it is never deleted, because a subscription is never deleted. Several pending checkouts in one environment are several real pending checkouts.\"\n }), \"\\n\", _jsx(_components.h2, {\n children: \"Retrying it\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Send an \", _jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \". A repeat under the same key answers the same subscription and the same checkout URL instead of starting a second one — which is what a lost response needs, since the first attempt’s session is already live and payable.\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"The price has to be sellable and chargeable\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"It must be \", _jsx(_components.code, {\n children: \"recurring\"\n }), \" — a \", _jsx(_components.code, {\n children: \"one_time\"\n }), \" price is a payment and has no subscription behind it — and it must not be archived, because withdrawing an offer is exactly the act of no longer selling it.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"It must also be \", _jsx(_components.strong, {\n children: \"mapped onto the gateway\"\n }), \": a price in your catalogue is a price here, and the gateway needs its own id for it. The mapping is per merchant account, and the account is only known after the connection’s health check has asked who the keys belong to — so an unverified connection is refused with something to go and do rather than a guess about which account collects the money.\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"A returning payer is not duplicated\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"If this customer has paid through this gateway before, the gateway’s own id for them is found and reused, so they keep one payment method and one billing history. Finding it takes a read at the gateway, and if that read cannot be made the checkout is \", _jsx(_components.strong, {\n children: \"refused\"\n }), \" rather than falling through to creating a second payer record — there is no un-merge at a gateway either.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"If they have never paid, the gateway creates the payer and collects the address itself.\"\n }), \"\\n\", _jsx(_components.h2, {\n children: \"trial_days\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Passes a free period to the gateway. Omitted, the checkout carries whatever the price itself promises — \", _jsx(_components.code, {\n children: \"trial_days\"\n }), \" is part of the offer and lives on the catalogue price — so the pricing page and the checkout tell one story by default. Sending a value overrides the price’s for this checkout only, and an explicit \", _jsx(_components.code, {\n children: \"0\"\n }), \" waives the trial. The trial’s end date is not written here until the gateway says what it is: \", _jsx(_components.code, {\n children: \"now + trial_days\"\n }), \" would be a date an entitlement expires on that nothing happens at.\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"Discounting it\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"coupon_id\"\n }), \" applies one of this environment’s coupons. The gateway needs a coupon object of its own to honour it, so the first checkout that applies a coupon on a gateway account \", _jsx(_components.strong, {\n children: \"creates it there\"\n }), \" and every later one reuses it — which is why the discount needs the gateway’s \", _jsx(_components.code, {\n children: \"manage_coupons\"\n }), \" capability, and a gateway without it answers \", _jsx(_components.strong, {\n children: \"501\"\n }), \" rather than silently charging full price to somebody who was shown a discount. An amount coupon must discount the price’s own currency; an archived or expired coupon is refused by name.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"allow_promotion_codes\"\n }), \" opens a field at the gateway’s checkout page where the payer types a code of their own — codes you configured at the gateway. It is mutually exclusive with \", _jsx(_components.code, {\n children: \"coupon_id\"\n }), \" (two ways to discount one checkout) and needs the same capability.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Start a checkout","description":"Requires `billing:write`. Puts one of your prices in front of one of your customers and answers with somewhere to send them.\n\n## What exists after this call\n\nA subscription here, with status `incomplete` and an **empty** `provider_subscription_id`, and a checkout URL at the gateway. Nobody has paid. The subscription becomes real when the payer completes the checkout and the gateway tells us so — until then it is a row that exists here and nowhere else, which is why nothing about it can be changed or cancelled yet.\n\nA checkout the payer abandons leaves that row behind, and that is deliberate: it is never deleted, because a subscription is never deleted. Several pending checkouts in one environment are several real pending checkouts.\n\n## Retrying it\n\nSend an `Idempotency-Key`. A repeat under the same key answers the same subscription and the same checkout URL instead of starting a second one — which is what a lost response needs, since the first attempt's session is already live and payable.\n\n## The price has to be sellable and chargeable\n\nIt must be `recurring` — a `one_time` price is a payment and has no subscription behind it — and it must not be archived, because withdrawing an offer is exactly the act of no longer selling it.\n\nIt must also be **mapped onto the gateway**: a price in your catalogue is a price here, and the gateway needs its own id for it. The mapping is per merchant account, and the account is only known after the connection's health check has asked who the keys belong to — so an unverified connection is refused with something to go and do rather than a guess about which account collects the money.\n\n## A returning payer is not duplicated\n\nIf this customer has paid through this gateway before, the gateway's own id for them is found and reused, so they keep one payment method and one billing history. Finding it takes a read at the gateway, and if that read cannot be made the checkout is **refused** rather than falling through to creating a second payer record — there is no un-merge at a gateway either.\n\nIf they have never paid, the gateway creates the payer and collects the address itself.\n\n## trial_days\n\nPasses a free period to the gateway. Omitted, the checkout carries whatever the price itself promises — `trial_days` is part of the offer and lives on the catalogue price — so the pricing page and the checkout tell one story by default. Sending a value overrides the price's for this checkout only, and an explicit `0` waives the trial. The trial's end date is not written here until the gateway says what it is: `now + trial_days` would be a date an entitlement expires on that nothing happens at.\n\n## Discounting it\n\n`coupon_id` applies one of this environment's coupons. The gateway needs a coupon object of its own to honour it, so the first checkout that applies a coupon on a gateway account **creates it there** and every later one reuses it — which is why the discount needs the gateway's `manage_coupons` capability, and a gateway without it answers **501** rather than silently charging full price to somebody who was shown a discount. An amount coupon must discount the price's own currency; an archived or expired coupon is refused by name.\n\n`allow_promotion_codes` opens a field at the gateway's checkout page where the payer types a code of their own — codes you configured at the gateway. It is mutually exclusive with `coupon_id` (two ways to discount one checkout) and needs the same capability.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/subscriptions/checkout","href":"/en/api-reference/endpoints/subscriptions/start-a-checkout","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Subscriptions"],"summary":"Start a checkout","description":"Requires `billing:write`. Puts one of your prices in front of one of your customers and answers with somewhere to send them.\n\n## What exists after this call\n\nA subscription here, with status `incomplete` and an **empty** `provider_subscription_id`, and a checkout URL at the gateway. Nobody has paid. The subscription becomes real when the payer completes the checkout and the gateway tells us so — until then it is a row that exists here and nowhere else, which is why nothing about it can be changed or cancelled yet.\n\nA checkout the payer abandons leaves that row behind, and that is deliberate: it is never deleted, because a subscription is never deleted. Several pending checkouts in one environment are several real pending checkouts.\n\n## Retrying it\n\nSend an `Idempotency-Key`. A repeat under the same key answers the same subscription and the same checkout URL instead of starting a second one — which is what a lost response needs, since the first attempt's session is already live and payable.\n\n## The price has to be sellable and chargeable\n\nIt must be `recurring` — a `one_time` price is a payment and has no subscription behind it — and it must not be archived, because withdrawing an offer is exactly the act of no longer selling it.\n\nIt must also be **mapped onto the gateway**: a price in your catalogue is a price here, and the gateway needs its own id for it. The mapping is per merchant account, and the account is only known after the connection's health check has asked who the keys belong to — so an unverified connection is refused with something to go and do rather than a guess about which account collects the money.\n\n## A returning payer is not duplicated\n\nIf this customer has paid through this gateway before, the gateway's own id for them is found and reused, so they keep one payment method and one billing history. Finding it takes a read at the gateway, and if that read cannot be made the checkout is **refused** rather than falling through to creating a second payer record — there is no un-merge at a gateway either.\n\nIf they have never paid, the gateway creates the payer and collects the address itself.\n\n## trial_days\n\nPasses a free period to the gateway. Omitted, the checkout carries whatever the price itself promises — `trial_days` is part of the offer and lives on the catalogue price — so the pricing page and the checkout tell one story by default. Sending a value overrides the price's for this checkout only, and an explicit `0` waives the trial. The trial's end date is not written here until the gateway says what it is: `now + trial_days` would be a date an entitlement expires on that nothing happens at.\n\n## Discounting it\n\n`coupon_id` applies one of this environment's coupons. The gateway needs a coupon object of its own to honour it, so the first checkout that applies a coupon on a gateway account **creates it there** and every later one reuses it — which is why the discount needs the gateway's `manage_coupons` capability, and a gateway without it answers **501** rather than silently charging full price to somebody who was shown a discount. An amount coupon must discount the price's own currency; an archived or expired coupon is refused by name.\n\n`allow_promotion_codes` opens a field at the gateway's checkout page where the payer types a code of their own — codes you configured at the gateway. It is mutually exclusive with `coupon_id` (two ways to discount one checkout) and needs the same capability.","operationId":"startSubscriptionCheckout","parameters":["0ce9ceff-70a1-45f2-8dfd-f1ea348647bc","bf8af2df-b383-43b6-9cf4-8574b0bb642c","12410682-b8ef-45c4-9972-2e6fbf33642b"],"requestBody":"0f6bff3a-2344-48dc-8028-aba93b3f4f26","responses":{"201":"5ebf765e-9f04-4097-aeef-dc0dd6616781","400":"0a58d62e-fab0-4398-a34d-eb2ca409dfab","401":"1c556880-305f-43d1-9894-e26bad6b532c","403":"f480d444-2f07-4c29-ab53-f994335da727","404":"f68184f1-8156-44b9-8b45-d976223fd18a","409":"49ef533f-f261-4bf3-a0e1-3b10a1244149","422":"37644adb-e5a8-4fba-a59e-b0a33d39d57c","501":"f5c826a7-110f-4a4a-8b52-b5daf0d345d3","503":"2949086b-5666-4d84-bc2a-bff5f283e539"},"method":"post","type":"path","servers":["901f1fa2-0fac-452c-9dc1-3e78c4005745"],"security":["d7bb7a83-9cea-42d3-9f90-fd10152c71d0"],"path":"/v1/organization/subscriptions/checkout","baseUrlOptions":["{baseUrl}"],"title":"Start a checkout","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"0ce9ceff-70a1-45f2-8dfd-f1ea348647bc":{"name":"X-Organization-Id","in":"header","required":false,"schema":{"type":"string","isRequired":false,"description":"The organization the caller is acting on — the `org_…` code that appears in the panel URL. It *identifies*; the membership JOIN is what *authorizes*, so a forged code reads nothing: the answer is `not_a_member` (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds.","uniqueKey":"","typeLabel":"string"},"description":"The organization the caller is acting on — the `org_…` code that appears in the panel URL. It *identifies*; the membership JOIN is what *authorizes*, so a forged code reads nothing: the answer is `not_a_member` (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds."},"bf8af2df-b383-43b6-9cf4-8574b0bb642c":{"name":"environment","in":"query","required":false,"schema":{"type":"string","enum":["live","test"],"default":"live","isRequired":false,"description":"Which environment to act in. A view parameter, valid only on the staff surface — a machine credential never chooses its environment, it is resolved from the key.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"description":"Which environment to act in. A view parameter, valid only on the staff surface — a machine credential never chooses its environment, it is resolved from the key."},"12410682-b8ef-45c4-9972-2e6fbf33642b":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255,"isRequired":false,"description":"A key you choose that makes starting a checkout safe to retry, end to end.\n\nA repeat under the same key does not start a second checkout: it answers the **same** subscription and the same gateway session as the first attempt, with `Idempotent-Replay: true`. That is what a lost response needs — the first attempt's session is live and payable, and the answer that went missing carries the only id tying a payment to a row.\n\nThe key names one act. Sent with a different customer, price or quantity it is refused (`422`, `idempotency_key_reused`), and once the checkout it started has been paid it is refused (`409`, `checkout_already_completed`) rather than putting a second session in front of somebody who is already subscribed. Send a fresh key per checkout you mean to start: two checkouts for one customer on one price are two real checkouts, and the key is the only thing that can say otherwise.\n\nIt is forwarded to the gateway as **its** idempotency key too, so the retry and the original arrive there as one request. Retry with the body unchanged — the gateway compares every parameter, including `success_url` and `cancel_url`, and answers a mismatch with a refusal of its own.","uniqueKey":"","typeLabel":"string"},"description":"A key you choose that makes starting a checkout safe to retry, end to end.\n\nA repeat under the same key does not start a second checkout: it answers the **same** subscription and the same gateway session as the first attempt, with `Idempotent-Replay: true`. That is what a lost response needs — the first attempt's session is live and payable, and the answer that went missing carries the only id tying a payment to a row.\n\nThe key names one act. Sent with a different customer, price or quantity it is refused (`422`, `idempotency_key_reused`), and once the checkout it started has been paid it is refused (`409`, `checkout_already_completed`) rather than putting a second session in front of somebody who is already subscribed. Send a fresh key per checkout you mean to start: two checkouts for one customer on one price are two real checkouts, and the key is the only thing that can say otherwise.\n\nIt is forwarded to the gateway as **its** idempotency key too, so the retry and the original arrive there as one request. Retry with the body unchanged — the gateway compares every parameter, including `success_url` and `cancel_url`, and answers a mismatch with a refusal of its own."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["customer_id","price_id","success_url"],"properties":{"customer_id":{"type":"string","format":"uuid","description":"Who is being billed. Must be a customer of this environment.","isRequired":true,"uniqueKey":"customer_id","typeLabel":"string\u003cuuid>"},"price_id":{"type":"string","format":"uuid","description":"The catalogue price to sell, in this environment. Recurring, not archived, and mapped onto the gateway.","isRequired":true,"uniqueKey":"price_id","typeLabel":"string\u003cuuid>"},"success_url":{"type":"string","format":"uri","description":"Where the payer lands after paying. Required, and it has to be an `http(s)` URL.","isRequired":true,"uniqueKey":"success_url","typeLabel":"string\u003curi>"},"quantity":{"type":"integer","format":"int64","default":1,"minimum":1,"description":"Seats or units. 1 when omitted; 0 is refused, because a line for none of something is not a line. On a `per_seat` price it is refused entirely: the quantity is the customer's own member count, derived here and kept in step automatically.","uniqueKey":"quantity","typeLabel":"integer\u003cint64>"},"cancel_url":{"type":"string","format":"uri","description":"Where they land if they back out. Optional — a gateway with no cancel destination returns them itself.","uniqueKey":"cancel_url","typeLabel":"string\u003curi>"},"trial_days":{"type":"integer","minimum":0,"description":"Free days before the first charge. Omit to carry what the price itself promises; send a value to override for this checkout, and an explicit `0` to waive the trial.","uniqueKey":"trial_days","typeLabel":"integer"},"coupon_id":{"type":"string","format":"uuid","description":"A coupon from this environment's catalogue to apply. Omit for full price. Needs the gateway's `manage_coupons`; an amount coupon must be in the price's currency.","uniqueKey":"coupon_id","typeLabel":"string\u003cuuid>"},"allow_promotion_codes":{"type":"boolean","default":false,"description":"Open a field at the gateway's page where the payer types a promotion code of their own. Mutually exclusive with `coupon_id`, and needs the gateway's `manage_coupons`.","uniqueKey":"allow_promotion_codes","typeLabel":"boolean"},"provider":{"type":"string","enum":["stripe"],"description":"Which gateway to charge through. Only needed when the environment has more than one connected: with one there is nothing to disambiguate, and with two picking for you would be choosing whose merchant account collects.","uniqueKey":"provider","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"example":{"customer_id":"6f1c…","price_id":"9a2e…","quantity":3,"success_url":"https://app.example.com/billing/done","cancel_url":"https://app.example.com/billing"},"examples":{"Example":{"title":"Example","value":{"customer_id":"6f1c…","price_id":"9a2e…","quantity":3,"success_url":"https://app.example.com/billing/done","cancel_url":"https://app.example.com/billing"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"5ebf765e-9f04-4097-aeef-dc0dd6616781":{"description":"The subscription row and where to send the payer. `expires_at` is null when the gateway does not say — a made-up expiry would be a countdown to a moment nothing happens at.","content":{"application/json":{"schema":{"type":"object","properties":{"subscription":{"type":"object","description":"What one of your customers is paying, **mirrored** from the gateway.\n\nThat word decides how to read every field below. The gateway is the source of truth about money; this is a local copy kept so an entitlement can be answered without a network call, joined to the rest of your data, and read while the gateway is unreachable. `provider_synced_at` is when the copy was last confirmed — `null` means never, which is what a checkout that was started and not completed looks like.","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"subscription.id","typeLabel":"string\u003cuuid>"},"customer_id":{"type":"string","format":"uuid","description":"Who is billed. A subscription always hangs off a customer, including when that customer is a team of one.","uniqueKey":"subscription.customer_id","typeLabel":"string\u003cuuid>"},"plan_id":{"type":"string","format":"uuid","description":"What they are subscribed to, as opposed to how it is billed — which is `items`. Entitlements are computed from the plan's features, so this always has exactly one answer.","uniqueKey":"subscription.plan_id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["incomplete","trialing","active","past_due","paused","canceled","unknown"],"description":"In **our** vocabulary, never a gateway's spelling, so this does not change when you change gateway.\n\n`incomplete` is created and not yet paid — no access. `past_due` is paid before and a payment has failed; whether that keeps access is a grace-period decision and not this field's. `unknown` means the adapter did not recognise what the gateway said: it is a reason to look, never a reason to charge anybody or to cut them off, and it deliberately does not read as `active` or as `canceled`.","uniqueKey":"subscription.status","typeLabel":"enum\u003cstring>"},"current_period_start":{"oneOf":[{"type":"string","format":"date-time","description":"The period paid for. Null together with the end, never one alone: an `incomplete` subscription has no period, and a made-up one is a date an entitlement expires on that nothing happens at.","uniqueKey":"subscription.current_period_start.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The period paid for. Null together with the end, never one alone: an `incomplete` subscription has no period, and a made-up one is a date an entitlement expires on that nothing happens at.","uniqueKey":"subscription.current_period_start.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.current_period_start","typeLabel":"string\u003cdate-time> | null"},"current_period_end":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"subscription.current_period_end.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"subscription.current_period_end.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.current_period_end","typeLabel":"string\u003cdate-time> | null"},"cancel_at_period_end":{"type":"boolean","description":"A cancellation that has been **scheduled** and has not happened. The subscription is still active until `current_period_end`, which is why this is its own field rather than a status.","uniqueKey":"subscription.cancel_at_period_end","typeLabel":"boolean"},"canceled_at":{"oneOf":[{"type":"string","format":"date-time","description":"When it actually stopped. Null while it has not.","uniqueKey":"subscription.canceled_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When it actually stopped. Null while it has not.","uniqueKey":"subscription.canceled_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.canceled_at","typeLabel":"string\u003cdate-time> | null"},"trial_ends_at":{"oneOf":[{"type":"string","format":"date-time","description":"Null when there is no trial — which is a different fact from a trial that ended, and only one of them should make a screen say a trial expired.","uniqueKey":"subscription.trial_ends_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Null when there is no trial — which is a different fact from a trial that ended, and only one of them should make a screen say a trial expired.","uniqueKey":"subscription.trial_ends_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.trial_ends_at","typeLabel":"string\u003cdate-time> | null"},"provider":{"type":"string","enum":["stripe"],"description":"Which gateway holds this subscription. Exactly one: that is who is charging the card.","uniqueKey":"subscription.provider","typeLabel":"enum\u003cstring>"},"provider_account_id":{"type":"string","description":"The merchant account, as the gateway names it. Empty until a health check has asked who the keys belong to.","uniqueKey":"subscription.provider_account_id","typeLabel":"string"},"provider_subscription_id":{"type":"string","description":"The gateway's own id. **Empty** for a checkout that was started and never completed — a row that exists here and nowhere else, and the one state in which no act on this subscription is possible.","uniqueKey":"subscription.provider_subscription_id","typeLabel":"string"},"provider_synced_at":{"oneOf":[{"type":"string","format":"date-time","description":"When this copy was last re-read from the gateway, as opposed to when the row was last written. Null means never confirmed. A mirror that cannot say how stale it is would be claiming to be the source.","uniqueKey":"subscription.provider_synced_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When this copy was last re-read from the gateway, as opposed to when the row was last written. Null means never confirmed. A mirror that cannot say how stale it is would be claiming to be the source.","uniqueKey":"subscription.provider_synced_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.provider_synced_at","typeLabel":"string\u003cdate-time> | null"},"created_at":{"type":"string","format":"date-time","uniqueKey":"subscription.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"subscription.updated_at","typeLabel":"string\u003cdate-time>"},"items":{"type":"array","items":{"type":"object","description":"One line of a subscription: a price and a quantity. There is exactly one today — a subscription is billed on one price, and a second line for the same price is a quantity rather than a row.","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"subscription.\\items.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"quantity":{"type":"integer","format":"int64","description":"Seats, units, licences. Never 0: a line for none of something is not a line.","uniqueKey":"subscription.\\items.items.[INDEX].quantity","typeLabel":"integer\u003cint64>"},"price":{"type":"object","description":"The price this line points at, as it was agreed. A price is immutable, so this still says exactly what the customer consented to pay — including when the offer has since been withdrawn.","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"subscription.\\items.items.[INDEX].price.id","typeLabel":"string\u003cuuid>"},"plan_id":{"type":"string","format":"uuid","uniqueKey":"subscription.\\items.items.[INDEX].price.plan_id","typeLabel":"string\u003cuuid>"},"kind":{"type":"string","enum":["recurring","one_time"],"uniqueKey":"subscription.\\items.items.[INDEX].price.kind","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","description":"ISO 4217, always beside the amount: an amount with no currency is not a price.","uniqueKey":"subscription.\\items.items.[INDEX].price.currency","typeLabel":"string"},"amount_minor":{"type":"integer","format":"int64","description":"An integer in the currency's minor unit. `1000` is R$10.00 in BRL and ¥1000 in JPY.","uniqueKey":"subscription.\\items.items.[INDEX].price.amount_minor","typeLabel":"integer\u003cint64>"},"tax_behavior":{"type":"string","enum":["inclusive","exclusive"],"uniqueKey":"subscription.\\items.items.[INDEX].price.tax_behavior","typeLabel":"enum\u003cstring>"},"archived":{"type":"boolean","description":"Whether the offer has been withdrawn. `true` is normal on a subscription sold before a reprice, and it changes nothing about what is charged.","uniqueKey":"subscription.\\items.items.[INDEX].price.archived","typeLabel":"boolean"}},"uniqueKey":"subscription.\\items.items.[INDEX].price","typeLabel":"object"}},"uniqueKey":"subscription.\\items.items.[INDEX]","typeLabel":"object"},"description":"The lines. Present on a single subscription, absent from the list.","uniqueKey":"subscription.\\items","typeLabel":"object[]"},"capabilities":{"type":"object","description":"What a gateway can do **beyond the minimum every gateway can do**. Every flag defaults to false, so a provider that declares nothing is treated as the weakest one — silence is never a claim. Read it to stop offering an act that would be refused.\n\n**Every flag below is always present.** The object is emitted whole or not at all: absent means this server has no adapter loaded for the gateway, and it never means \"some flags were left out\". A reader must therefore distinguish `false` from missing rather than testing for falsiness — a key that is not here is not a gateway that cannot do something, it is a question nobody asked.","required":["scheduled_plan_change","proration","cancel_at_period_end","hosted_portal","tax_calculation","resume_subscription","list_invoices","list_catalogue","publish_catalogue","manage_coupons","pause_subscription","discount_subscription","refund_payment"],"properties":{"scheduled_plan_change":{"type":"boolean","description":"A plan change that takes effect at the end of the current period rather than now. Without it, asking for one is refused rather than applied immediately — which would be a charge the customer did not agree to.","isRequired":true,"uniqueKey":"subscription.capabilities.scheduled_plan_change","typeLabel":"boolean"},"proration":{"type":"boolean","description":"Money already paid can be credited or charged pro rata on a mid-period change. Without it, the new price applies from the next period.","isRequired":true,"uniqueKey":"subscription.capabilities.proration","typeLabel":"boolean"},"cancel_at_period_end":{"type":"boolean","description":"A cancellation that is a schedule rather than an act. Without it, cancelling is immediate.","isRequired":true,"uniqueKey":"subscription.capabilities.cancel_at_period_end","typeLabel":"boolean"},"hosted_portal":{"type":"boolean","description":"The gateway hosts a page where the customer manages their own subscription.","isRequired":true,"uniqueKey":"subscription.capabilities.hosted_portal","typeLabel":"boolean"},"tax_calculation":{"type":"boolean","description":"The gateway computes tax. UserKit never calculates it — the catalogue stores whether a price includes tax and nothing more.","isRequired":true,"uniqueKey":"subscription.capabilities.tax_calculation","typeLabel":"boolean"},"resume_subscription":{"type":"boolean","description":"A scheduled cancellation can be undone.","isRequired":true,"uniqueKey":"subscription.capabilities.resume_subscription","typeLabel":"boolean"},"list_invoices":{"type":"boolean","description":"The gateway has an invoice history to read.","isRequired":true,"uniqueKey":"subscription.capabilities.list_invoices","typeLabel":"boolean"},"list_catalogue":{"type":"boolean","description":"The gateway's own catalogue can be read, so an existing one can be imported instead of retyped. False where the gateway has a price and no catalogue above it.","isRequired":true,"uniqueKey":"subscription.capabilities.list_catalogue","typeLabel":"boolean"},"publish_catalogue":{"type":"boolean","description":"The other direction of the same seam: a price priced HERE can be created at the gateway, for the tenant who built their catalogue before connecting anything. False where the gateway takes a price named in the request and has no catalogue object to create in advance — there, the repair is to create the price in the gateway's own dashboard and import it.","isRequired":true,"uniqueKey":"subscription.capabilities.publish_catalogue","typeLabel":"boolean"},"manage_coupons":{"type":"boolean","description":"The gateway holds a discount object of its own, so a checkout may carry a coupon or open a promotion-code field. False where the discount would have to be a cheaper price.","isRequired":true,"uniqueKey":"subscription.capabilities.manage_coupons","typeLabel":"boolean"},"pause_subscription":{"type":"boolean","description":"Billing can be stopped for a fixed number of months and started again by the gateway itself. There is no unpause here on purpose: the gateway holds the date, because a system holding the only copy of when somebody's product comes back is a promise an outage can break. False withholds the pause save offer rather than showing one that cannot be carried out.","isRequired":true,"uniqueKey":"subscription.capabilities.pause_subscription","typeLabel":"boolean"},"discount_subscription":{"type":"boolean","description":"A discount can be attached to a subscription that is already running, which is not the same as carrying one on a checkout. A gateway with `manage_coupons` and not this can only discount a new checkout, so the discount save offer needs both.","isRequired":true,"uniqueKey":"subscription.capabilities.discount_subscription","typeLabel":"boolean"},"refund_payment":{"type":"boolean","description":"Money can be handed back through the API. False answers **501** on the refund route, because there the act is performed in the gateway's own dashboard — and it is the flag whose absence matters most, since a refund performed twice is the one act in the product that cannot be undone from this side.","isRequired":true,"uniqueKey":"subscription.capabilities.refund_payment","typeLabel":"boolean"}},"uniqueKey":"subscription.capabilities","typeLabel":"object"},"mirror_refreshed":{"type":"boolean","description":"Present only on the answer to an **act**. `true` means the gateway was re-read afterwards and everything above is what it said. `false` means the act happened and the copy above is not (or not entirely) the gateway's answer — either the re-read did not get through, or it did and part of it could not be written down. `mirror_stale_reason` says which. Treat it as a reason to read again, never as a sign the act failed.","uniqueKey":"subscription.mirror_refreshed","typeLabel":"boolean"},"mirror_stale_reason":{"oneOf":[{"type":"string","enum":["provider_reread_failed","price_not_mapped_to_provider","subscription_has_extra_lines",null],"description":"Present whenever `mirror_refreshed` is, and **null** when it is `true` — an absent field would leave you inferring that nothing is wrong.\n\n`provider_reread_failed` — the gateway was not reachable after it accepted the act. Nothing above was updated; read again.\n\n`price_not_mapped_to_provider` — the gateway named a price that is not mapped onto any price in this catalogue for this environment, so `plan_id` was left as it was while everything else was applied. This one matters: entitlements are computed from the plan, so until you map the price (see `unmapped_provider_price_id`) the customer keeps the plan they were on. Prices created in the gateway's own dashboard are the usual cause.\n\n`subscription_has_extra_lines` — the gateway holds more priced lines than one, so which of them names the plan is not decidable and both `plan_id` and `items` were left as they were.","uniqueKey":"subscription.mirror_stale_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["provider_reread_failed","price_not_mapped_to_provider","subscription_has_extra_lines",null],"description":"Present whenever `mirror_refreshed` is, and **null** when it is `true` — an absent field would leave you inferring that nothing is wrong.\n\n`provider_reread_failed` — the gateway was not reachable after it accepted the act. Nothing above was updated; read again.\n\n`price_not_mapped_to_provider` — the gateway named a price that is not mapped onto any price in this catalogue for this environment, so `plan_id` was left as it was while everything else was applied. This one matters: entitlements are computed from the plan, so until you map the price (see `unmapped_provider_price_id`) the customer keeps the plan they were on. Prices created in the gateway's own dashboard are the usual cause.\n\n`subscription_has_extra_lines` — the gateway holds more priced lines than one, so which of them names the plan is not decidable and both `plan_id` and `items` were left as they were.","uniqueKey":"subscription.mirror_stale_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.mirror_stale_reason","typeLabel":"enum\u003cstring> | null"},"unmapped_provider_price_id":{"oneOf":[{"type":"string","description":"The gateway's own price id to map, when `mirror_stale_reason` is `price_not_mapped_to_provider`. Null otherwise.","uniqueKey":"subscription.unmapped_provider_price_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The gateway's own price id to map, when `mirror_stale_reason` is `price_not_mapped_to_provider`. Null otherwise.","uniqueKey":"subscription.unmapped_provider_price_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.unmapped_provider_price_id","typeLabel":"string | null"}},"uniqueKey":"subscription","typeLabel":"object"},"checkout":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Send the payer here.","uniqueKey":"checkout.url","typeLabel":"string\u003curi>"},"session_ref":{"type":"string","description":"The gateway's id for the checkout session.","uniqueKey":"checkout.session_ref","typeLabel":"string"},"expires_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"checkout.expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"checkout.expires_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"checkout.expires_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"checkout","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"subscription":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","customer_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","plan_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","status":"incomplete","current_period_start":"2023-11-07T05:31:56Z","current_period_end":"2023-11-07T05:31:56Z","cancel_at_period_end":true,"canceled_at":"2023-11-07T05:31:56Z","trial_ends_at":"2023-11-07T05:31:56Z","provider":"stripe","provider_account_id":"\u003cstring>","provider_subscription_id":"\u003cstring>","provider_synced_at":"2023-11-07T05:31:56Z","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","items":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","quantity":123,"price":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","plan_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","kind":"recurring","currency":"\u003cstring>","amount_minor":123,"tax_behavior":"inclusive","archived":true}}],"capabilities":{"scheduled_plan_change":true,"proration":true,"cancel_at_period_end":true,"hosted_portal":true,"tax_calculation":true,"resume_subscription":true,"list_invoices":true,"list_catalogue":true,"publish_catalogue":true,"manage_coupons":true,"pause_subscription":true,"discount_subscription":true,"refund_payment":true},"mirror_refreshed":true,"mirror_stale_reason":"provider_reread_failed","unmapped_provider_price_id":"\u003cstring>"},"checkout":{"url":"\u003cstring>","session_ref":"\u003cstring>","expires_at":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"0a58d62e-fab0-4398-a34d-eb2ca409dfab":{"description":"`invalid_request` — an id that is not a uuid, a `success_url` that is not `http(s)`, a quantity below 1, negative `trial_days`, or `coupon_id` sent alongside `allow_promotion_codes` (two ways to discount one checkout); or `provider_required` — the environment has more than one gateway connected and the body named none.","content":{"application/json":{"schema":{"type":"object","description":"Every error in this API answers this envelope.","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable. Branch on this.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For a person. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"example":{"error":{"code":"forbidden","message":"your role does not allow this action"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"forbidden","message":"your role does not allow this action"}}}},"exampleType":"generated"}},"exampleType":"generated"},"1c556880-305f-43d1-9894-e26bad6b532c":{"description":"`unauthorized` — missing, malformed, expired or revoked credential, and nothing else: it says the credential is gone, so a client is right to discard it and sign in again. A well-formed credential from the wrong family says so: \"this endpoint expects a staff session token, not an organization API key\". A LIVE staff session aimed at an organization it is not a member of is `not_a_member` (403), never this.","content":{"application/json":{"schema":{"type":"object","description":"Every error in this API answers this envelope.","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable. Branch on this.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For a person. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"example":{"error":{"code":"forbidden","message":"your role does not allow this action"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"forbidden","message":"your role does not allow this action"}}}},"exampleType":"generated"}},"exampleType":"generated"},"f480d444-2f07-4c29-ab53-f994335da727":{"description":"`forbidden` — your role does not allow this action. On any route taking a staff session, `not_a_member` is the other 403: the session is valid and the organization named in `X-Organization-Id` is not one you belong to. Same answer for an organization that does not exist and for a code that is not even shaped like one — the refusal is not a directory.","content":{"application/json":{"schema":{"type":"object","description":"Every error in this API answers this envelope.","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable. Branch on this.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For a person. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"example":{"error":{"code":"forbidden","message":"your role does not allow this action"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"forbidden","message":"your role does not allow this action"}}}},"exampleType":"generated"}},"exampleType":"generated"},"f68184f1-8156-44b9-8b45-d976223fd18a":{"description":"`not_found`. Also the answer for a resource that exists in another organization or environment — the 404 never reveals which.","content":{"application/json":{"schema":{"type":"object","description":"Every error in this API answers this envelope.","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable. Branch on this.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For a person. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"example":{"error":{"code":"forbidden","message":"your role does not allow this action"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"forbidden","message":"your role does not allow this action"}}}},"exampleType":"generated"}},"exampleType":"generated"},"49ef533f-f261-4bf3-a0e1-3b10a1244149":{"description":"The act cannot be performed as asked, and each code names a different repair.\n\n`provider_not_connected` — no gateway is connected in this environment. `provider_account_unknown` — the connection has never been verified, so which merchant account it opens is not known; run its health check. `price_not_mapped_to_provider` — the price has no gateway price mapped onto that account. `price_archived` — the offer has been withdrawn. `price_not_recurring` — a one-time price cannot start a subscription. `coupon_archived` — the coupon's offer has been withdrawn. `coupon_expired` — its redemption window has closed. `coupon_currency_mismatch` — an amount coupon cannot be taken off a price in another currency. `environment_mode_mismatch` — the stored credential belongs to the other half of the gateway, which is refused before it leaves this server. `provider_refused` — the gateway said no, and its own message is passed through. `checkout_already_completed` — the checkout this `Idempotency-Key` started has been paid; that subscription is live, and selling again needs a new key.","content":{"application/json":{"schema":{"type":"object","description":"Every error in this API answers this envelope.","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable. Branch on this.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For a person. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"example":{"error":{"code":"forbidden","message":"your role does not allow this action"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"forbidden","message":"your role does not allow this action"}}}},"exampleType":"generated"}},"exampleType":"generated"},"37644adb-e5a8-4fba-a59e-b0a33d39d57c":{"description":"`idempotency_key_reused` — this `Idempotency-Key` already started a checkout for a different customer, price or quantity. Answering it with that checkout's session would sell somebody something nobody asked for, so it is refused; use a new key.","content":{"application/json":{"schema":{"type":"object","description":"Every error in this API answers this envelope.","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable. Branch on this.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For a person. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"example":{"error":{"code":"forbidden","message":"your role does not allow this action"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"forbidden","message":"your role does not allow this action"}}}},"exampleType":"generated"}},"exampleType":"generated"},"f5c826a7-110f-4a4a-8b52-b5daf0d345d3":{"description":"`billing_provider_unavailable` or `provider_unavailable` — this server cannot hold a gateway credential, or has no adapter for that gateway. Nothing about your data is wrong. Or `provider_capability_unsupported` — the checkout named a coupon or opened promotion codes and the gateway cannot manage coupons; there, the discount would have to be a cheaper price.","content":{"application/json":{"schema":{"type":"object","description":"Every error in this API answers this envelope.","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable. Branch on this.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For a person. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"example":{"error":{"code":"forbidden","message":"your role does not allow this action"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"forbidden","message":"your role does not allow this action"}}}},"exampleType":"generated"}},"exampleType":"generated"},"2949086b-5666-4d84-bc2a-bff5f283e539":{"description":"`provider_unreachable` — the gateway could not be reached and nothing was charged. Retry.","content":{"application/json":{"schema":{"type":"object","description":"Every error in this API answers this envelope.","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable. Branch on this.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For a person. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"example":{"error":{"code":"forbidden","message":"your role does not allow this action"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"forbidden","message":"your role does not allow this action"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"d7bb7a83-9cea-42d3-9f90-fd10152c71d0":{"sessionToken":{"type":"http","scheme":"bearer","description":"A staff session token, `uk_st_…`. Minted by sign-up, sign-in or the two-factor exchange. Only a 401 means it is spent; `not_a_member` (403) is about the organization named in `X-Organization-Id` and leaves the token good for the others.","scopes":[]}}},"servers":{"901f1fa2-0fac-452c-9dc1-3e78c4005745":{"url":"{baseUrl}","description":"The API host.","variables":{"baseUrl":{"default":"https://api.userkit.dev","description":"Base URL of the API, no trailing slash."}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"A staff session token, `uk_st_…`. Minted by sign-up, sign-in or the two-factor exchange. Only a 401 means it is spent; `not_a_member` (403) is about the organization named in `X-Organization-Id` and leaves the token good for the others.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A staff session token, `uk_st_…`. Minted by sign-up, sign-in or the two-factor exchange. Only a 401 means it is spent; `not_a_member` (403) is about the organization named in `X-Organization-Id` and leaves the token good for the others.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"sessionToken","name":"Authorization"}],"title":"sessionToken"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"user-kit","siteName":"UserKit","title":"Start a checkout - UserKit","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-reference/endpoints/subscriptions/start-a-checkout","matchLevel":0},"pt-BR":{"href":"/pt-br/api-reference/endpoints/subscriptions/start-a-checkout","matchLevel":1}}},"lastModified":"2026-09-11T14:16:13.464Z","originalFileLocation":"en/api-reference/endpoints/subscriptions/start-a-checkout.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Requires billing:write. Puts one of your prices in front of one of your customers and answers with somewhere to send them. ## What exists after this call A subscription here, with status incomplete and an empty provider_subscription_id, and a checkout URL at the gateway. Nobody has paid. The subscription becomes real when the payer completes the checkout and the gateway tells us so — until then it is a row that exists here and nowhere else, which is why nothing about it can be changed or cancelled yet. A checkout the payer abandons leaves that row behind, and that is deliberate: it is never deleted, because a subscription is never deleted. Several pending checkouts in one environment are several real pending checkouts. ## Retrying it Send an Idempotency-Key. A repeat under the same key answers the same subscription and the same checkout URL instead of starting a second one — which is what a lost response needs, since the first attempt\u0026#x27;s session is already live and payable. ## The price has to be sellable and chargeable It must be recurring — a one_time price is a payment and has no subscription behind it — and it must not be archived, because withdrawing an offer is exactly the act of no longer selling it. It must also be mapped onto the gateway: a price in your catalogue is a price here, and the gateway needs its own id for it. The mapping is per merchant account, and the account is only known after the connection\u0026#x27;s health check has asked who the keys belong to — so an unverified connection is refused with something to go and do rather than a guess about which account collects the money. ## A returning payer is not duplicated If this customer has paid through this gateway before, the gateway\u0026#x27;s own id for them is found and reused, so they keep one payment method and one billing history. Finding it takes a read at the gateway, and if that read cannot be made the checkout is refused rather than falling through to creating a second payer record — there is no un-merge at a gateway either. If they have never paid, the gateway creates the payer and collects the address itself. ## trial_days Passes a free period to the gateway. Omitted, the checkout carries whatever the price itself promises — trial_days is part of the offer and lives on the catalogue price — so the pricing page and the checkout tell one story by default. Sending a value overrides the price\u0026#x27;s for this checkout only, and an explicit 0 waives the trial. The trial\u0026#x27;s end date is not written here until the gateway says what it is: now + trial_days would be a date an entitlement expires on that nothing happens at. ## Discounting it coupon_id applies one of this environment\u0026#x27;s coupons. The gateway needs a coupon object of its own to honour it, so the first checkout that applies a coupon on a gateway account creates it there and every later one reuses it — which is why the discount needs the gateway\u0026#x27;s manage_coupons capability, and a gateway without it answers 501 rather than silently charging full price to somebody who was shown a discount. An amount coupon must discount the price\u0026#x27;s own currency; an archived or expired coupon is refused by name. allow_promotion_codes opens a field at the gateway\u0026#x27;s checkout page where the payer types a code of their own — codes you configured at the gateway. It is mutually exclusive with coupon_id (two ways to discount one checkout) and needs the same capability.\">\u003cmeta data-mint-head name=\"application-name\" content=\"UserKit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/user-kit/FOGN8G8MizwLUrkv/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/user-kit/FOGN8G8MizwLUrkv/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/user-kit/FOGN8G8MizwLUrkv/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/user-kit/FOGN8G8MizwLUrkv/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/user-kit/FOGN8G8MizwLUrkv/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/user-kit/FOGN8G8MizwLUrkv/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/user-kit/FOGN8G8MizwLUrkv/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/user-kit/FOGN8G8MizwLUrkv/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/user-kit/FOGN8G8MizwLUrkv/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Start a checkout - UserKit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Requires billing:write. Puts one of your prices in front of one of your customers and answers with somewhere to send them. ## What exists after this call A subscription here, with status incomplete and an empty provider_subscription_id, and a checkout URL at the gateway. Nobody has paid. The subscription becomes real when the payer completes the checkout and the gateway tells us so — until then it is a row that exists here and nowhere else, which is why nothing about it can be changed or cancelled yet. A checkout the payer abandons leaves that row behind, and that is deliberate: it is never deleted, because a subscription is never deleted. Several pending checkouts in one environment are several real pending checkouts. ## Retrying it Send an Idempotency-Key. A repeat under the same key answers the same subscription and the same checkout URL instead of starting a second one — which is what a lost response needs, since the first attempt\u0026#x27;s session is already live and payable. ## The price has to be sellable and chargeable It must be recurring — a one_time price is a payment and has no subscription behind it — and it must not be archived, because withdrawing an offer is exactly the act of no longer selling it. It must also be mapped onto the gateway: a price in your catalogue is a price here, and the gateway needs its own id for it. The mapping is per merchant account, and the account is only known after the connection\u0026#x27;s health check has asked who the keys belong to — so an unverified connection is refused with something to go and do rather than a guess about which account collects the money. ## A returning payer is not duplicated If this customer has paid through this gateway before, the gateway\u0026#x27;s own id for them is found and reused, so they keep one payment method and one billing history. Finding it takes a read at the gateway, and if that read cannot be made the checkout is refused rather than falling through to creating a second payer record — there is no un-merge at a gateway either. If they have never paid, the gateway creates the payer and collects the address itself. ## trial_days Passes a free period to the gateway. Omitted, the checkout carries whatever the price itself promises — trial_days is part of the offer and lives on the catalogue price — so the pricing page and the checkout tell one story by default. Sending a value overrides the price\u0026#x27;s for this checkout only, and an explicit 0 waives the trial. The trial\u0026#x27;s end date is not written here until the gateway says what it is: now + trial_days would be a date an entitlement expires on that nothing happens at. ## Discounting it coupon_id applies one of this environment\u0026#x27;s coupons. The gateway needs a coupon object of its own to honour it, so the first checkout that applies a coupon on a gateway account creates it there and every later one reuses it — which is why the discount needs the gateway\u0026#x27;s manage_coupons capability, and a gateway without it answers 501 rather than silently charging full price to somebody who was shown a discount. An amount coupon must discount the price\u0026#x27;s own currency; an archived or expired coupon is refused by name. allow_promotion_codes opens a field at the gateway\u0026#x27;s checkout page where the payer types a code of their own — codes you configured at the gateway. It is mutually exclusive with coupon_id (two ways to discount one checkout) and needs the same capability.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"UserKit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.userkit.dev/en/api-reference/endpoints/subscriptions/start-a-checkout\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://user-kit.mintlify.site/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Start+a+checkout\u0026amp;description=Requires+%60billing%3Awrite%60.+Puts+one+of+your+prices+in+front+of+one+of+your+customers+and+answers+with+somewhere+to+send+them.%0A%0A%23%23+What+exists+after+this+call%0A%0AA+\u0026amp;theme=9e3d90b477ab89cad8ad7cb3\u0026amp;signature=a3b82209b9ad2364f546d41ee680609189f9e0293a97ffdcbf92be21613e0ed5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Start a checkout - UserKit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Requires billing:write. Puts one of your prices in front of one of your customers and answers with somewhere to send them. ## What exists after this call A subscription here, with status incomplete and an empty provider_subscription_id, and a checkout URL at the gateway. Nobody has paid. The subscription becomes real when the payer completes the checkout and the gateway tells us so — until then it is a row that exists here and nowhere else, which is why nothing about it can be changed or cancelled yet. A checkout the payer abandons leaves that row behind, and that is deliberate: it is never deleted, because a subscription is never deleted. Several pending checkouts in one environment are several real pending checkouts. ## Retrying it Send an Idempotency-Key. A repeat under the same key answers the same subscription and the same checkout URL instead of starting a second one — which is what a lost response needs, since the first attempt\u0026#x27;s session is already live and payable. ## The price has to be sellable and chargeable It must be recurring — a one_time price is a payment and has no subscription behind it — and it must not be archived, because withdrawing an offer is exactly the act of no longer selling it. It must also be mapped onto the gateway: a price in your catalogue is a price here, and the gateway needs its own id for it. The mapping is per merchant account, and the account is only known after the connection\u0026#x27;s health check has asked who the keys belong to — so an unverified connection is refused with something to go and do rather than a guess about which account collects the money. ## A returning payer is not duplicated If this customer has paid through this gateway before, the gateway\u0026#x27;s own id for them is found and reused, so they keep one payment method and one billing history. Finding it takes a read at the gateway, and if that read cannot be made the checkout is refused rather than falling through to creating a second payer record — there is no un-merge at a gateway either. If they have never paid, the gateway creates the payer and collects the address itself. ## trial_days Passes a free period to the gateway. Omitted, the checkout carries whatever the price itself promises — trial_days is part of the offer and lives on the catalogue price — so the pricing page and the checkout tell one story by default. Sending a value overrides the price\u0026#x27;s for this checkout only, and an explicit 0 waives the trial. The trial\u0026#x27;s end date is not written here until the gateway says what it is: now + trial_days would be a date an entitlement expires on that nothing happens at. ## Discounting it coupon_id applies one of this environment\u0026#x27;s coupons. The gateway needs a coupon object of its own to honour it, so the first checkout that applies a coupon on a gateway account creates it there and every later one reuses it — which is why the discount needs the gateway\u0026#x27;s manage_coupons capability, and a gateway without it answers 501 rather than silently charging full price to somebody who was shown a discount. An amount coupon must discount the price\u0026#x27;s own currency; an archived or expired coupon is refused by name. allow_promotion_codes opens a field at the gateway\u0026#x27;s checkout page where the payer types a code of their own — codes you configured at the gateway. It is mutually exclusive with coupon_id (two ways to discount one checkout) and needs the same capability.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://user-kit.mintlify.site/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Start+a+checkout\u0026amp;description=Requires+%60billing%3Awrite%60.+Puts+one+of+your+prices+in+front+of+one+of+your+customers+and+answers+with+somewhere+to+send+them.%0A%0A%23%23+What+exists+after+this+call%0A%0AA+\u0026amp;theme=9e3d90b477ab89cad8ad7cb3\u0026amp;signature=a3b82209b9ad2364f546d41ee680609189f9e0293a97ffdcbf92be21613e0ed5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/user-kit/FOGN8G8MizwLUrkv/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"UserKit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0f4f52\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.userkit.dev/en/api-reference/endpoints/subscriptions/start-a-checkout\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/endpoints/subscriptions/start-a-checkout.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.userkit.dev/en/api-reference/endpoints/subscriptions/start-a-checkout\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.userkit.dev/pt-br/api-reference/endpoints/subscriptions/start-a-checkout\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.userkit.dev/en/api-reference/endpoints/subscriptions/start-a-checkout\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.userkit.dev/#organization\",\"name\":\"UserKit\",\"url\":\"https://docs.userkit.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/user-kit/VaQUK7mtRAlbCBqS/logo/light.svg?fit=max\u0026auto=format\u0026n=VaQUK7mtRAlbCBqS\u0026q=85\u0026s=9020ef905fee768a55dea940ba59ac15\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.userkit.dev#website\",\"name\":\"UserKit\",\"url\":\"https://docs.userkit.dev\",\"publisher\":{\"@id\":\"https://docs.userkit.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.userkit.dev/en/api-reference/endpoints/subscriptions/start-a-checkout#webpage\",\"url\":\"https://docs.userkit.dev/en/api-reference/endpoints/subscriptions/start-a-checkout\",\"name\":\"Start a checkout\",\"description\":\"Requires billing:write. Puts one of your prices in front of one of your customers and answers with somewhere to send them. ## What exists after this call A subscription here, with status incomplete and an empty provider_subscription_id, and a checkout URL at the gateway. Nobody has paid. The subscription becomes real when the payer completes the checkout and the gateway tells us so — until then it is a row that exists here and nowhere else, which is why nothing about it can be changed or cancelled yet. A checkout the payer abandons leaves that row behind, and that is deliberate: it is never deleted, because a subscription is never deleted. Several pending checkouts in one environment are several real pending checkouts. ## Retrying it Send an Idempotency-Key. A repeat under the same key answers the same subscription and the same checkout URL instead of starting a second one — which is what a lost response needs, since the first attempt's session is already live and payable. ## The price has to be sellable and chargeable It must be recurring — a one_time price is a payment and has no subscription behind it — and it must not be archived, because withdrawing an offer is exactly the act of no longer selling it. It must also be mapped onto the gateway: a price in your catalogue is a price here, and the gateway needs its own id for it. The mapping is per merchant account, and the account is only known after the connection's health check has asked who the keys belong to — so an unverified connection is refused with something to go and do rather than a guess about which account collects the money. ## A returning payer is not duplicated If this customer has paid through this gateway before, the gateway's own id for them is found and reused, so they keep one payment method and one billing history. Finding it takes a read at the gateway, and if that read cannot be made the checkout is refused rather than falling through to creating a second payer record — there is no un-merge at a gateway either. If they have never paid, the gateway creates the payer and collects the address itself. ## trial_days Passes a free period to the gateway. Omitted, the checkout carries whatever the price itself promises — trial_days is part of the offer and lives on the catalogue price — so the pricing page and the checkout tell one story by default. Sending a value overrides the price's for this checkout only, and an explicit 0 waives the trial. The trial's end date is not written here until the gateway says what it is: now + trial_days would be a date an entitlement expires on that nothing happens at. ## Discounting it coupon_id applies one of this environment's coupons. The gateway needs a coupon object of its own to honour it, so the first checkout that applies a coupon on a gateway account creates it there and every later one reuses it — which is why the discount needs the gateway's manage_coupons capability, and a gateway without it answers 501 rather than silently charging full price to somebody who was shown a discount. An amount coupon must discount the price's own currency; an archived or expired coupon is refused by name. allow_promotion_codes opens a field at the gateway's checkout page where the payer types a code of their own — codes you configured at the gateway. It is mutually exclusive with coupon_id (two ways to discount one checkout) and needs the same capability.\",\"dateModified\":\"2026-09-11T14:16:13.464Z\",\"isPartOf\":{\"@id\":\"https://docs.userkit.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.userkit.dev/en/api-reference/endpoints/subscriptions/start-a-checkout#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.userkit.dev/en/api-reference/endpoints/subscriptions/start-a-checkout#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.userkit.dev/en/api-reference/endpoints/gamification/list-point-rules\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Subscriptions\",\"item\":\"https://docs.userkit.dev/en/api-reference/endpoints/subscriptions/list-one-customers-invoices\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Start a checkout\",\"item\":\"https://docs.userkit.dev/en/api-reference/endpoints/subscriptions/start-a-checkout\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.userkit.dev/en/api-reference/endpoints/subscriptions/start-a-checkout#apireference\",\"headline\":\"Start a checkout\",\"name\":\"Start a checkout\",\"description\":\"Requires billing:write. Puts one of your prices in front of one of your customers and answers with somewhere to send them. ## What exists after this call A subscription here, with status incomplete and an empty provider_subscription_id, and a checkout URL at the gateway. Nobody has paid. The subscription becomes real when the payer completes the checkout and the gateway tells us so — until then it is a row that exists here and nowhere else, which is why nothing about it can be changed or cancelled yet. A checkout the payer abandons leaves that row behind, and that is deliberate: it is never deleted, because a subscription is never deleted. Several pending checkouts in one environment are several real pending checkouts. ## Retrying it Send an Idempotency-Key. A repeat under the same key answers the same subscription and the same checkout URL instead of starting a second one — which is what a lost response needs, since the first attempt's session is already live and payable. ## The price has to be sellable and chargeable It must be recurring — a one_time price is a payment and has no subscription behind it — and it must not be archived, because withdrawing an offer is exactly the act of no longer selling it. It must also be mapped onto the gateway: a price in your catalogue is a price here, and the gateway needs its own id for it. The mapping is per merchant account, and the account is only known after the connection's health check has asked who the keys belong to — so an unverified connection is refused with something to go and do rather than a guess about which account collects the money. ## A returning payer is not duplicated If this customer has paid through this gateway before, the gateway's own id for them is found and reused, so they keep one payment method and one billing history. Finding it takes a read at the gateway, and if that read cannot be made the checkout is refused rather than falling through to creating a second payer record — there is no un-merge at a gateway either. If they have never paid, the gateway creates the payer and collects the address itself. ## trial_days Passes a free period to the gateway. Omitted, the checkout carries whatever the price itself promises — trial_days is part of the offer and lives on the catalogue price — so the pricing page and the checkout tell one story by default. Sending a value overrides the price's for this checkout only, and an explicit 0 waives the trial. The trial's end date is not written here until the gateway says what it is: now + trial_days would be a date an entitlement expires on that nothing happens at. ## Discounting it coupon_id applies one of this environment's coupons. The gateway needs a coupon object of its own to honour it, so the first checkout that applies a coupon on a gateway account creates it there and every later one reuses it — which is why the discount needs the gateway's manage_coupons capability, and a gateway without it answers 501 rather than silently charging full price to somebody who was shown a discount. An amount coupon must discount the price's own currency; an archived or expired coupon is refused by name. allow_promotion_codes opens a field at the gateway's checkout page where the payer types a code of their own — codes you configured at the gateway. It is mutually exclusive with coupon_id (two ways to discount one checkout) and needs the same capability.\",\"url\":\"https://docs.userkit.dev/en/api-reference/endpoints/subscriptions/start-a-checkout\",\"mainEntityOfPage\":{\"@id\":\"https://docs.userkit.dev/en/api-reference/endpoints/subscriptions/start-a-checkout#webpage\"},\"dateModified\":\"2026-09-11T14:16:13.464Z\",\"publisher\":{\"@id\":\"https://docs.userkit.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.userkit.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"UserKit\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"UserKit\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api-reference/endpoints/subscriptions/start-a-checkout.md","siteName":"UserKit","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/en"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/en/api-reference/introduction"},{"title":"Authentication","href":"/en/api-reference/authentication"},{"title":"Errors","href":"/en/api-reference/errors"},{"title":"Rate limits","href":"/en/api-reference/rate-limits"}]},{"group":"Endpoints","pages":[{"group":"Gamification","pages":[{"title":"List point rules","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/points/rules","href":"/en/api-reference/endpoints/gamification/list-point-rules"},{"title":"Create a point rule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/points/rules","href":"/en/api-reference/endpoints/gamification/create-a-point-rule"},{"title":"Get a point rule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/points/rules/{id}","href":"/en/api-reference/endpoints/gamification/get-a-point-rule"},{"title":"Delete a point rule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/points/rules/{id}","href":"/en/api-reference/endpoints/gamification/delete-a-point-rule"},{"title":"Update a point rule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/points/rules/{id}","href":"/en/api-reference/endpoints/gamification/update-a-point-rule"},{"title":"List levels","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/points/levels","href":"/en/api-reference/endpoints/gamification/list-levels"},{"title":"Create a level","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/points/levels","href":"/en/api-reference/endpoints/gamification/create-a-level"},{"title":"Delete a level","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/points/levels/{id}","href":"/en/api-reference/endpoints/gamification/delete-a-level"},{"title":"Update a level","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/points/levels/{id}","href":"/en/api-reference/endpoints/gamification/update-a-level"},{"title":"List badges","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/achievements","href":"/en/api-reference/endpoints/gamification/list-badges"},{"title":"Create a badge","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/achievements","href":"/en/api-reference/endpoints/gamification/create-a-badge"},{"title":"Get a badge","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/achievements/{id}","href":"/en/api-reference/endpoints/gamification/get-a-badge"},{"title":"Delete a badge","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/achievements/{id}","href":"/en/api-reference/endpoints/gamification/delete-a-badge"},{"title":"Update a badge","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/achievements/{id}","href":"/en/api-reference/endpoints/gamification/update-a-badge"},{"title":"This person's points, level and badges","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/gamification","href":"/en/api-reference/endpoints/gamification/this-persons-points-level-and-badges"},{"title":"This person's statement","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/gamification/ledger","href":"/en/api-reference/endpoints/gamification/this-persons-statement"},{"title":"Grant points by hand","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/points","href":"/en/api-reference/endpoints/gamification/grant-points-by-hand"},{"title":"List metrics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/points/metrics","href":"/en/api-reference/endpoints/gamification/list-metrics"},{"title":"Create a metric","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/points/metrics","href":"/en/api-reference/endpoints/gamification/create-a-metric"},{"title":"Delete a metric","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/points/metrics/{id}","href":"/en/api-reference/endpoints/gamification/delete-a-metric"},{"title":"Update a metric","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/points/metrics/{id}","href":"/en/api-reference/endpoints/gamification/update-a-metric"}]},{"group":"Authentication","pages":[{"title":"Create an account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/auth/signup","href":"/en/api-reference/endpoints/authentication/create-an-account"},{"title":"What the sign-up form has to render","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/auth/signup/config","href":"/en/api-reference/endpoints/authentication/what-the-sign-up-form-has-to-render"},{"title":"Sign in","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/auth/login","href":"/en/api-reference/endpoints/authentication/sign-in"},{"title":"Complete a two-factor sign-in","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/auth/two-factor","href":"/en/api-reference/endpoints/authentication/complete-a-two-factor-sign-in"},{"title":"Request a password reset","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/auth/forgot-password","href":"/en/api-reference/endpoints/authentication/request-a-password-reset"},{"title":"Reset a password with a token","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/auth/reset-password","href":"/en/api-reference/endpoints/authentication/reset-a-password-with-a-token"}]},{"group":"Members","pages":[{"title":"Read an invitation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/invitations","href":"/en/api-reference/endpoints/members/read-an-invitation"},{"title":"Accept an invitation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/invitations/accept","href":"/en/api-reference/endpoints/members/accept-an-invitation"},{"title":"List members and pending invitations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/members","href":"/en/api-reference/endpoints/members/list-members-and-pending-invitations"},{"title":"Leave the organization","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/members/me","href":"/en/api-reference/endpoints/members/leave-the-organization"},{"title":"Invite someone","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/members/invitations","href":"/en/api-reference/endpoints/members/invite-someone"},{"title":"Revoke an invitation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/members/invitations/{id}","href":"/en/api-reference/endpoints/members/revoke-an-invitation"},{"title":"Change a member's role","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/organization/members/{userId}/role","href":"/en/api-reference/endpoints/members/change-a-members-role"},{"title":"Remove a member","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/members/{userId}","href":"/en/api-reference/endpoints/members/remove-a-member"}]},{"group":"Session","pages":[{"title":"Read the current session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/session","href":"/en/api-reference/endpoints/session/read-the-current-session"},{"title":"Switch the active organization","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/session/organization","href":"/en/api-reference/endpoints/session/switch-the-active-organization"},{"title":"Sign out","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/session/logout","href":"/en/api-reference/endpoints/session/sign-out"}]},{"group":"Account","pages":[{"title":"Read the account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/account","href":"/en/api-reference/endpoints/account/read-the-account"},{"title":"Update the profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/account","href":"/en/api-reference/endpoints/account/update-the-profile"},{"title":"Change the password","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/account/password","href":"/en/api-reference/endpoints/account/change-the-password"},{"title":"Sign an avatar upload","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/account/avatar/upload-url","href":"/en/api-reference/endpoints/account/sign-an-avatar-upload"},{"title":"List the account's sessions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/account/sessions","href":"/en/api-reference/endpoints/account/list-the-accounts-sessions"},{"title":"Sign out everywhere else","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/account/sessions","href":"/en/api-reference/endpoints/account/sign-out-everywhere-else"}]},{"group":"Two-factor","pages":[{"title":"Start two-factor setup","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/account/two-factor/setup","href":"/en/api-reference/endpoints/two-factor/start-two-factor-setup"},{"title":"Enable two-factor","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/account/two-factor/enable","href":"/en/api-reference/endpoints/two-factor/enable-two-factor"},{"title":"Disable two-factor","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/account/two-factor/disable","href":"/en/api-reference/endpoints/two-factor/disable-two-factor"},{"title":"Regenerate recovery codes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/account/two-factor/recovery-codes","href":"/en/api-reference/endpoints/two-factor/regenerate-recovery-codes"}]},{"group":"Organizations","pages":[{"title":"List the caller's organizations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organizations","href":"/en/api-reference/endpoints/organizations/list-the-callers-organizations"},{"title":"Create an organization","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organizations","href":"/en/api-reference/endpoints/organizations/create-an-organization"},{"title":"Read the active organization","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization","href":"/en/api-reference/endpoints/organizations/read-the-active-organization"},{"title":"Delete the organization","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization","href":"/en/api-reference/endpoints/organizations/delete-the-organization"},{"title":"Update the organization","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization","href":"/en/api-reference/endpoints/organizations/update-the-organization"},{"title":"Read what the plan allows","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/entitlements","href":"/en/api-reference/endpoints/organizations/read-what-the-plan-allows"},{"title":"Close the setup wizard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/onboarded","href":"/en/api-reference/endpoints/organizations/close-the-setup-wizard"},{"title":"Sign a logo upload","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/logo/upload-url","href":"/en/api-reference/endpoints/organizations/sign-a-logo-upload"}]},{"group":"Contacts (staff session)","pages":[{"title":"List customers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/customers","href":"/en/api-reference/endpoints/contacts-staff-session/list-customers"},{"title":"Read the waitlist","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/waitlist","href":"/en/api-reference/endpoints/contacts-staff-session/read-the-waitlist"},{"title":"Let people in","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/waitlist/admit","href":"/en/api-reference/endpoints/contacts-staff-session/let-people-in"},{"title":"Read active-contact usage","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/usage/active-contacts","href":"/en/api-reference/endpoints/contacts-staff-session/read-active-contact-usage"},{"title":"Read outbound email usage","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/usage/emails","href":"/en/api-reference/endpoints/contacts-staff-session/read-outbound-email-usage"},{"title":"List contacts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/contacts","href":"/en/api-reference/endpoints/contacts-staff-session/list-contacts"},{"title":"Read a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/contacts/{id}","href":"/en/api-reference/endpoints/contacts-staff-session/read-a-contact"},{"title":"What one contact agreed to","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/contacts/{id}/legal-acceptances","href":"/en/api-reference/endpoints/contacts-staff-session/what-one-contact-agreed-to"},{"title":"One contact's authentication history","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/contacts/{id}/auth-events","href":"/en/api-reference/endpoints/contacts-staff-session/one-contacts-authentication-history"},{"title":"One contact's dossier","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/contacts/{id}/overview","href":"/en/api-reference/endpoints/contacts-staff-session/one-contacts-dossier"},{"title":"List the internal notes on a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/contacts/{id}/notes","href":"/en/api-reference/endpoints/contacts-staff-session/list-the-internal-notes-on-a-contact"},{"title":"Write an internal note about a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/contacts/{id}/notes","href":"/en/api-reference/endpoints/contacts-staff-session/write-an-internal-note-about-a-contact"},{"title":"Delete an internal note","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/contacts/{id}/notes/{noteId}","href":"/en/api-reference/endpoints/contacts-staff-session/delete-an-internal-note"},{"title":"Merge two contacts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/contacts/{id}/merge","href":"/en/api-reference/endpoints/contacts-staff-session/merge-two-contacts"},{"title":"Everything this person was sent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/contacts/{id}/messages","href":"/en/api-reference/endpoints/contacts-staff-session/everything-this-person-was-sent"},{"title":"Enter a contact's account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/contacts/{id}/impersonate","href":"/en/api-reference/endpoints/contacts-staff-session/enter-a-contacts-account"},{"title":"End an impersonation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/contacts/{id}/impersonation","href":"/en/api-reference/endpoints/contacts-staff-session/end-an-impersonation"},{"title":"Export everything held about one contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/contacts/{id}/export","href":"/en/api-reference/endpoints/contacts-staff-session/export-everything-held-about-one-contact"},{"title":"Erase a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/contacts/{id}/erase","href":"/en/api-reference/endpoints/contacts-staff-session/erase-a-contact"},{"title":"List imports","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/contact-imports","href":"/en/api-reference/endpoints/contacts-staff-session/list-imports"},{"title":"Import contacts from a CSV","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/contact-imports","href":"/en/api-reference/endpoints/contacts-staff-session/import-contacts-from-a-csv"},{"title":"Read an import and its lines","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/contact-imports/{id}","href":"/en/api-reference/endpoints/contacts-staff-session/read-an-import-and-its-lines"}]},{"group":"Subscriptions","pages":[{"title":"List one customer's invoices","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/customers/{id}/invoices","href":"/en/api-reference/endpoints/subscriptions/list-one-customers-invoices"},{"title":"List invoices","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/invoices","href":"/en/api-reference/endpoints/subscriptions/list-invoices"},{"title":"What an invoice can still refund","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/invoices/{id}/refund","href":"/en/api-reference/endpoints/subscriptions/what-an-invoice-can-still-refund"},{"title":"Refund an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/invoices/{id}/refund","href":"/en/api-reference/endpoints/subscriptions/refund-an-invoice"},{"title":"List subscriptions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/subscriptions","href":"/en/api-reference/endpoints/subscriptions/list-subscriptions"},{"title":"Read a subscription","description":"Requires `billing:read`. One subscription, its lines, and **what may be done to it**.\n\n`capabilities` is why this is worth reading before rendering buttons: a scheduled plan change, proration and cancel-at-period-end are all things a gateway may not be able to do, and an interface that offers one anyway sends somebody into a refusal. It is absent — not full of `false` — when this server has no adapter for the gateway, because that is a fact about the deployment rather than about the provider.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/subscriptions/{id}","href":"/en/api-reference/endpoints/subscriptions/read-a-subscription"},{"title":"Start a checkout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/subscriptions/checkout","href":"/en/api-reference/endpoints/subscriptions/start-a-checkout"},{"title":"Adopt an existing subscription","description":"Records a subscription that already exists at your gateway and has never existed here, in the environment your key names. The migration path for arriving with customers who are already paying — and the reason it belongs on a key rather than only in the panel is that **your backend is the only system that holds the map** from a gateway payer to one of your accounts.\n\nIt is the same act as the panel's, with the same refusals. See the guide for the order to do things in: connect the gateway, import the catalogue, give the plans their features, make sure the teams exist, then run this over your list.\n\n## What it does\n\nReads the subscription from the gateway and writes it down against the customer you name — status, period, trial, scheduled cancellation and line. Nothing is charged, nothing is created at the gateway, and nothing about the subscription changes: what changes is that this system now holds it. From then on webhooks find it, the nightly reconciliation re-reads it, and entitlements resolve through its plan.\n\n## Naming the customer\n\nBy `customer_external_id` — your own id for the team — or by `customer_id`. Send exactly one. The customer has to exist; this does not create one, and `POST /v1/customers` is the call that does.\n\n## Running it over a list\n\nTwo layers answer two different retries. The surface's `Idempotency-Key` **replays** the same response for a repeated request, which is what a client's backoff needs. And adopting the same subscription for the same customer again answers **200** with the row and writes nothing, which is what a batch re-run a week later needs. Adopting it for a *different* customer is refused: that is the one repeat that means somebody made a mistake.\n\nA **201** means a row now exists that did not.\n\n## What it refuses to guess\n\nThere is no un-adopt — a subscription is never deleted here, and its gateway reference is only ever written into an empty column — so anything that would have to be assumed is refused: a price that is not mapped into this environment's catalogue (there is no plan to record it against), a subscription the gateway holds several priced lines for (which line names the plan is a question no gateway answers), one this environment already mirrors, and one the gateway says a different payer holds.\n\nThat last check runs **only on evidence**. No gateway customer id is stored here, so this customer's payer reference is discovered by reading a subscription they already hold — and a customer you are about to migrate usually has none. Silence is not a mismatch.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/subscriptions/link","href":"/en/api-reference/endpoints/subscriptions/adopt-an-existing-subscription"},{"title":"Adopt an existing subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/subscriptions/link","href":"/en/api-reference/endpoints/subscriptions/adopt-an-existing-subscription-1"},{"title":"Change the plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/subscriptions/{id}/change-plan","href":"/en/api-reference/endpoints/subscriptions/change-the-plan"},{"title":"Cancel a subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/subscriptions/{id}/cancel","href":"/en/api-reference/endpoints/subscriptions/cancel-a-subscription"},{"title":"Resume a subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/subscriptions/{id}/resume","href":"/en/api-reference/endpoints/subscriptions/resume-a-subscription"},{"title":"Why the people on this subscription left","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/subscriptions/{id}/cancellations","href":"/en/api-reference/endpoints/subscriptions/why-the-people-on-this-subscription-left"},{"title":"List the save offers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/cancellation-offers","href":"/en/api-reference/endpoints/subscriptions/list-the-save-offers"},{"title":"Configure a save offer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/organization/cancellation-offers/{kind}","href":"/en/api-reference/endpoints/subscriptions/configure-a-save-offer"},{"title":"Remove a save offer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/cancellation-offers/{kind}","href":"/en/api-reference/endpoints/subscriptions/remove-a-save-offer"}]},{"group":"Entitlements","pages":[{"title":"What one of your customers is entitled to","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/customers/{id}/entitlements","href":"/en/api-reference/endpoints/entitlements/what-one-of-your-customers-is-entitled-to"},{"title":"What you have promised this customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/customers/{id}/entitlement-overrides","href":"/en/api-reference/endpoints/entitlements/what-you-have-promised-this-customer"},{"title":"Promise this customer something the plan does not","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/organization/customers/{id}/entitlement-overrides/{featureId}","href":"/en/api-reference/endpoints/entitlements/promise-this-customer-something-the-plan-does-not"},{"title":"Withdraw the promise","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/customers/{id}/entitlement-overrides/{featureId}","href":"/en/api-reference/endpoints/entitlements/withdraw-the-promise"},{"title":"What a customer is entitled to","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/customers/{id}/entitlements","href":"/en/api-reference/endpoints/entitlements/what-a-customer-is-entitled-to"},{"title":"What my team is entitled to","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/entitlements","href":"/en/api-reference/endpoints/entitlements/what-my-team-is-entitled-to"}]},{"group":"Credits","pages":[{"title":"Read one customer's credit statement","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/customers/{id}/credits","href":"/en/api-reference/endpoints/credits/read-one-customers-credit-statement"},{"title":"Adjust a customer's credit balance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/customers/{id}/credits/adjust","href":"/en/api-reference/endpoints/credits/adjust-a-customers-credit-balance"},{"title":"Read a customer's credit balances","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/customers/{id}/credits","href":"/en/api-reference/endpoints/credits/read-a-customers-credit-balances"},{"title":"Record usage against a credit balance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/usage","href":"/en/api-reference/endpoints/credits/record-usage-against-a-credit-balance"},{"title":"What my team still holds","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/customer/credits","href":"/en/api-reference/endpoints/credits/what-my-team-still-holds"},{"title":"My team's credit statement","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/customer/credits/history","href":"/en/api-reference/endpoints/credits/my-teams-credit-statement"}]},{"group":"Audit log","pages":[{"title":"Read the staff audit trail","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/audit-events","href":"/en/api-reference/endpoints/audit-log/read-the-staff-audit-trail"}]},{"group":"Environments","pages":[{"title":"List the environments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/environments","href":"/en/api-reference/endpoints/environments/list-the-environments"},{"title":"Update the environment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/environments/{id}","href":"/en/api-reference/endpoints/environments/update-the-environment"},{"title":"Run the install doctor","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/environments/{id}/doctor","href":"/en/api-reference/endpoints/environments/run-the-install-doctor"},{"title":"Read the identity settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/environments/{id}/identity","href":"/en/api-reference/endpoints/environments/read-the-identity-settings"},{"title":"Rotate the identity secret","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/environments/{id}/identity/rotate","href":"/en/api-reference/endpoints/environments/rotate-the-identity-secret"},{"title":"Rotate the signing key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/environments/{id}/signing-key/rotate","href":"/en/api-reference/endpoints/environments/rotate-the-signing-key"},{"title":"Read this environment's branding","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/environments/{id}/branding","href":"/en/api-reference/endpoints/environments/read-this-environments-branding"},{"title":"Set this environment's branding","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/organization/environments/{id}/branding","href":"/en/api-reference/endpoints/environments/set-this-environments-branding"},{"title":"Read the WhatsApp connection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/environments/{id}/whatsapp","href":"/en/api-reference/endpoints/environments/read-the-whatsapp-connection"},{"title":"Connect a WhatsApp server","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/environments/{id}/whatsapp","href":"/en/api-reference/endpoints/environments/connect-a-whatsapp-server"},{"title":"Disconnect the WhatsApp server","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/environments/{id}/whatsapp","href":"/en/api-reference/endpoints/environments/disconnect-the-whatsapp-server"},{"title":"Re-check the WhatsApp connection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/environments/{id}/whatsapp/check","href":"/en/api-reference/endpoints/environments/re-check-the-whatsapp-connection"},{"title":"Read the custom portal domain","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/environments/{id}/portal-domain","href":"/en/api-reference/endpoints/environments/read-the-custom-portal-domain"},{"title":"Connect a custom portal domain","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/environments/{id}/portal-domain","href":"/en/api-reference/endpoints/environments/connect-a-custom-portal-domain"},{"title":"Disconnect the custom portal domain","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/environments/{id}/portal-domain","href":"/en/api-reference/endpoints/environments/disconnect-the-custom-portal-domain"},{"title":"Check the custom domain's DNS","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/environments/{id}/portal-domain/verify","href":"/en/api-reference/endpoints/environments/check-the-custom-domains-dns"},{"title":"List payment providers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/environments/{id}/billing-providers","href":"/en/api-reference/endpoints/environments/list-payment-providers"},{"title":"Connect a payment provider","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/organization/environments/{id}/billing-providers/{provider}","href":"/en/api-reference/endpoints/environments/connect-a-payment-provider"},{"title":"Disconnect a payment provider","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/environments/{id}/billing-providers/{provider}","href":"/en/api-reference/endpoints/environments/disconnect-a-payment-provider"},{"title":"Check a payment provider connection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/environments/{id}/billing-providers/{provider}/health","href":"/en/api-reference/endpoints/environments/check-a-payment-provider-connection"}]},{"group":"Catalogue","pages":[{"title":"Import the catalogue from a payment provider","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/environments/{id}/billing-providers/{provider}/catalogue-import","href":"/en/api-reference/endpoints/catalogue/import-the-catalogue-from-a-payment-provider"},{"title":"Publish this catalogue to a payment provider","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/environments/{id}/billing-providers/{provider}/catalogue-publish","href":"/en/api-reference/endpoints/catalogue/publish-this-catalogue-to-a-payment-provider"},{"title":"List catalogue imports","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/catalogue-imports","href":"/en/api-reference/endpoints/catalogue/list-catalogue-imports"},{"title":"Read a catalogue import and its lines","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/catalogue-imports/{id}","href":"/en/api-reference/endpoints/catalogue/read-a-catalogue-import-and-its-lines"},{"title":"Read the catalogue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/catalogue","href":"/en/api-reference/endpoints/catalogue/read-the-catalogue"},{"title":"Create a plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/catalogue/plans","href":"/en/api-reference/endpoints/catalogue/create-a-plan"},{"title":"Update a plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/catalogue/plans/{id}","href":"/en/api-reference/endpoints/catalogue/update-a-plan"},{"title":"Add a price to a plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/catalogue/plans/{id}/prices","href":"/en/api-reference/endpoints/catalogue/add-a-price-to-a-plan"},{"title":"Set a feature on a plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/organization/catalogue/plans/{planId}/features/{featureId}","href":"/en/api-reference/endpoints/catalogue/set-a-feature-on-a-plan"},{"title":"Remove a feature from a plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/catalogue/plans/{planId}/features/{featureId}","href":"/en/api-reference/endpoints/catalogue/remove-a-feature-from-a-plan"},{"title":"Reprice: supersede a price","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/catalogue/prices/{id}/reprice","href":"/en/api-reference/endpoints/catalogue/reprice:-supersede-a-price"},{"title":"Archive a price","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/catalogue/prices/{id}/archive","href":"/en/api-reference/endpoints/catalogue/archive-a-price"},{"title":"Create a feature","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/catalogue/features","href":"/en/api-reference/endpoints/catalogue/create-a-feature"},{"title":"Update a feature","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/catalogue/features/{id}","href":"/en/api-reference/endpoints/catalogue/update-a-feature"},{"title":"List coupons","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/catalogue/coupons","href":"/en/api-reference/endpoints/catalogue/list-coupons"},{"title":"Create a coupon","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/catalogue/coupons","href":"/en/api-reference/endpoints/catalogue/create-a-coupon"},{"title":"Archive a coupon","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/catalogue/coupons/{id}/archive","href":"/en/api-reference/endpoints/catalogue/archive-a-coupon"}]},{"group":"Analytics","pages":[{"title":"Explore events","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/analytics/events","href":"/en/api-reference/endpoints/analytics/explore-events"},{"title":"Count events per day","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/analytics/events/counts","href":"/en/api-reference/endpoints/analytics/count-events-per-day"},{"title":"List saved queries","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/analytics/queries","href":"/en/api-reference/endpoints/analytics/list-saved-queries"},{"title":"Save a query","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/analytics/queries","href":"/en/api-reference/endpoints/analytics/save-a-query"},{"title":"Read a saved query","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/analytics/queries/{id}","href":"/en/api-reference/endpoints/analytics/read-a-saved-query"},{"title":"Delete a saved query","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/analytics/queries/{id}","href":"/en/api-reference/endpoints/analytics/delete-a-saved-query"},{"title":"Update a saved query","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/analytics/queries/{id}","href":"/en/api-reference/endpoints/analytics/update-a-saved-query"},{"title":"List funnels","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/analytics/funnels","href":"/en/api-reference/endpoints/analytics/list-funnels"},{"title":"Create a funnel","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/analytics/funnels","href":"/en/api-reference/endpoints/analytics/create-a-funnel"},{"title":"Read a funnel","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/analytics/funnels/{id}","href":"/en/api-reference/endpoints/analytics/read-a-funnel"},{"title":"Delete a funnel","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/analytics/funnels/{id}","href":"/en/api-reference/endpoints/analytics/delete-a-funnel"},{"title":"Update a funnel","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/analytics/funnels/{id}","href":"/en/api-reference/endpoints/analytics/update-a-funnel"},{"title":"Compute a funnel's results","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/analytics/funnels/{id}/results","href":"/en/api-reference/endpoints/analytics/compute-a-funnels-results"},{"title":"List daily revenue metrics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/analytics/metrics","href":"/en/api-reference/endpoints/analytics/list-daily-revenue-metrics"},{"title":"Revenue by acquisition channel","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/analytics/revenue-by-channel","href":"/en/api-reference/endpoints/analytics/revenue-by-acquisition-channel"},{"title":"Weekly retention cohorts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/analytics/retention","href":"/en/api-reference/endpoints/analytics/weekly-retention-cohorts"},{"title":"List dashboards","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/analytics/dashboards","href":"/en/api-reference/endpoints/analytics/list-dashboards"},{"title":"Create a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/analytics/dashboards","href":"/en/api-reference/endpoints/analytics/create-a-dashboard"},{"title":"Read a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/analytics/dashboards/{id}","href":"/en/api-reference/endpoints/analytics/read-a-dashboard"},{"title":"Delete a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/analytics/dashboards/{id}","href":"/en/api-reference/endpoints/analytics/delete-a-dashboard"},{"title":"Update a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/analytics/dashboards/{id}","href":"/en/api-reference/endpoints/analytics/update-a-dashboard"},{"title":"Track events from your backend","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/track","href":"/en/api-reference/endpoints/analytics/track-events-from-your-backend"}]},{"group":"Segments","pages":[{"title":"List segments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/segments","href":"/en/api-reference/endpoints/segments/list-segments"},{"title":"Create a segment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/segments","href":"/en/api-reference/endpoints/segments/create-a-segment"},{"title":"Read a segment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/segments/{id}","href":"/en/api-reference/endpoints/segments/read-a-segment"},{"title":"Archive a segment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/segments/{id}","href":"/en/api-reference/endpoints/segments/archive-a-segment"},{"title":"Update a segment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/segments/{id}","href":"/en/api-reference/endpoints/segments/update-a-segment"},{"title":"Preview a segment's audience","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/segments/{id}/preview","href":"/en/api-reference/endpoints/segments/preview-a-segments-audience"}]},{"group":"Feature flags","pages":[{"title":"List feature flags","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/flags","href":"/en/api-reference/endpoints/feature-flags/list-feature-flags"},{"title":"Create a feature flag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/flags","href":"/en/api-reference/endpoints/feature-flags/create-a-feature-flag"},{"title":"Read a feature flag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/flags/{id}","href":"/en/api-reference/endpoints/feature-flags/read-a-feature-flag"},{"title":"Archive a feature flag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/flags/{id}","href":"/en/api-reference/endpoints/feature-flags/archive-a-feature-flag"},{"title":"Update a feature flag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/flags/{id}","href":"/en/api-reference/endpoints/feature-flags/update-a-feature-flag"},{"title":"The feature flag kill switch","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/flags/{publishableKey}","href":"/en/api-reference/endpoints/feature-flags/the-feature-flag-kill-switch"}]},{"group":"Onboarding","pages":[{"title":"List onboarding checklists","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/checklists","href":"/en/api-reference/endpoints/onboarding/list-onboarding-checklists"},{"title":"Create an onboarding checklist","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/checklists","href":"/en/api-reference/endpoints/onboarding/create-an-onboarding-checklist"},{"title":"Read an onboarding checklist","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/checklists/{id}","href":"/en/api-reference/endpoints/onboarding/read-an-onboarding-checklist"},{"title":"Delete an onboarding checklist","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/checklists/{id}","href":"/en/api-reference/endpoints/onboarding/delete-an-onboarding-checklist"},{"title":"Update an onboarding checklist","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/checklists/{id}","href":"/en/api-reference/endpoints/onboarding/update-an-onboarding-checklist"},{"title":"Completion rate per step","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/checklists/{id}/completion","href":"/en/api-reference/endpoints/onboarding/completion-rate-per-step"},{"title":"Add a step","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/checklists/{id}/steps","href":"/en/api-reference/endpoints/onboarding/add-a-step"},{"title":"Remove a step","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/checklists/{id}/steps/{stepID}","href":"/en/api-reference/endpoints/onboarding/remove-a-step"},{"title":"Rename or reorder a step","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/checklists/{id}/steps/{stepID}","href":"/en/api-reference/endpoints/onboarding/rename-or-reorder-a-step"},{"title":"My onboarding checklist","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/checklist","href":"/en/api-reference/endpoints/onboarding/my-onboarding-checklist"},{"title":"Close a checklist","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/checklist/{id}/dismiss","href":"/en/api-reference/endpoints/onboarding/close-a-checklist"},{"title":"Choose what is on the guide","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/contact/checklist/selection","href":"/en/api-reference/endpoints/onboarding/choose-what-is-on-the-guide"}]},{"group":"Changelog","pages":[{"title":"List changelog posts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/changelog","href":"/en/api-reference/endpoints/changelog/list-changelog-posts"},{"title":"Write a changelog post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/changelog","href":"/en/api-reference/endpoints/changelog/write-a-changelog-post"},{"title":"Read one changelog post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/changelog/{id}","href":"/en/api-reference/endpoints/changelog/read-one-changelog-post"},{"title":"Delete a changelog post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/changelog/{id}","href":"/en/api-reference/endpoints/changelog/delete-a-changelog-post"},{"title":"Edit a changelog post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/changelog/{id}","href":"/en/api-reference/endpoints/changelog/edit-a-changelog-post"},{"title":"Publish a changelog post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/changelog/{id}/publish","href":"/en/api-reference/endpoints/changelog/publish-a-changelog-post"},{"title":"The public release page","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/changelog/{publishableKey}","href":"/en/api-reference/endpoints/changelog/the-public-release-page"},{"title":"One release note, by its address","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/changelog/{publishableKey}/{slug}","href":"/en/api-reference/endpoints/changelog/one-release-note-by-its-address"},{"title":"My changelog","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/changelog","href":"/en/api-reference/endpoints/changelog/my-changelog"},{"title":"My unread count","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/changelog/unread","href":"/en/api-reference/endpoints/changelog/my-unread-count"},{"title":"Mark a post read","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/changelog/{id}/read","href":"/en/api-reference/endpoints/changelog/mark-a-post-read"}]},{"group":"Feedback","pages":[{"title":"The feedback board","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/feedback","href":"/en/api-reference/endpoints/feedback/the-feedback-board"},{"title":"Write a feedback post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/feedback","href":"/en/api-reference/endpoints/feedback/write-a-feedback-post"},{"title":"Read one feedback post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/feedback/{id}","href":"/en/api-reference/endpoints/feedback/read-one-feedback-post"},{"title":"Delete a feedback post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/feedback/{id}","href":"/en/api-reference/endpoints/feedback/delete-a-feedback-post"},{"title":"Edit a feedback post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/feedback/{id}","href":"/en/api-reference/endpoints/feedback/edit-a-feedback-post"},{"title":"Answer a feedback post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/organization/feedback/{id}/status","href":"/en/api-reference/endpoints/feedback/answer-a-feedback-post"},{"title":"Merge a duplicate","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/feedback/{id}/merge","href":"/en/api-reference/endpoints/feedback/merge-a-duplicate"},{"title":"The public roadmap","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/roadmap/{publishableKey}","href":"/en/api-reference/endpoints/feedback/the-public-roadmap"},{"title":"My roadmap board","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/feedback","href":"/en/api-reference/endpoints/feedback/my-roadmap-board"},{"title":"Ask for something","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/feedback","href":"/en/api-reference/endpoints/feedback/ask-for-something"},{"title":"Vote for a post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/feedback/{id}/vote","href":"/en/api-reference/endpoints/feedback/vote-for-a-post"},{"title":"Withdraw a vote","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/contact/feedback/{id}/vote","href":"/en/api-reference/endpoints/feedback/withdraw-a-vote"}]},{"group":"Messaging","pages":[{"title":"List message templates","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/message-templates","href":"/en/api-reference/endpoints/messaging/list-message-templates"},{"title":"Create a message template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/message-templates","href":"/en/api-reference/endpoints/messaging/create-a-message-template"},{"title":"Get a message template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/message-templates/{id}","href":"/en/api-reference/endpoints/messaging/get-a-message-template"},{"title":"Archive a message template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/message-templates/{id}","href":"/en/api-reference/endpoints/messaging/archive-a-message-template"},{"title":"Update a message template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/message-templates/{id}","href":"/en/api-reference/endpoints/messaging/update-a-message-template"},{"title":"Read a template's version history","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/message-templates/{id}/versions","href":"/en/api-reference/endpoints/messaging/read-a-templates-version-history"},{"title":"Preview a message template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/message-templates/{id}/preview","href":"/en/api-reference/endpoints/messaging/preview-a-message-template"}]},{"group":"Campaigns","pages":[{"title":"List campaigns","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/campaigns","href":"/en/api-reference/endpoints/campaigns/list-campaigns"},{"title":"Create a campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/campaigns","href":"/en/api-reference/endpoints/campaigns/create-a-campaign"},{"title":"Get a campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/campaigns/{id}","href":"/en/api-reference/endpoints/campaigns/get-a-campaign"},{"title":"Delete a campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/campaigns/{id}","href":"/en/api-reference/endpoints/campaigns/delete-a-campaign"},{"title":"Update a campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/campaigns/{id}","href":"/en/api-reference/endpoints/campaigns/update-a-campaign"},{"title":"Arm a campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/campaigns/{id}/activate","href":"/en/api-reference/endpoints/campaigns/arm-a-campaign"},{"title":"Hold a campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/campaigns/{id}/pause","href":"/en/api-reference/endpoints/campaigns/hold-a-campaign"},{"title":"What a campaign did","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/campaigns/{id}/metrics","href":"/en/api-reference/endpoints/campaigns/what-a-campaign-did"}]},{"group":"Surveys","pages":[{"title":"List surveys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/surveys","href":"/en/api-reference/endpoints/surveys/list-surveys"},{"title":"Write a survey","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/surveys","href":"/en/api-reference/endpoints/surveys/write-a-survey"},{"title":"Read one survey","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/surveys/{id}","href":"/en/api-reference/endpoints/surveys/read-one-survey"},{"title":"Delete a survey","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/surveys/{id}","href":"/en/api-reference/endpoints/surveys/delete-a-survey"},{"title":"Update a survey","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/surveys/{id}","href":"/en/api-reference/endpoints/surveys/update-a-survey"},{"title":"Survey results","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/surveys/{id}/results","href":"/en/api-reference/endpoints/surveys/survey-results"},{"title":"My outstanding surveys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/surveys/pending","href":"/en/api-reference/endpoints/surveys/my-outstanding-surveys"},{"title":"Answer a survey","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/surveys/{id}/response","href":"/en/api-reference/endpoints/surveys/answer-a-survey"}]},{"group":"Banners","pages":[{"title":"List banners","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/banners","href":"/en/api-reference/endpoints/banners/list-banners"},{"title":"Write a banner","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/banners","href":"/en/api-reference/endpoints/banners/write-a-banner"},{"title":"Read one banner","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/banners/{id}","href":"/en/api-reference/endpoints/banners/read-one-banner"},{"title":"Delete a banner","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/banners/{id}","href":"/en/api-reference/endpoints/banners/delete-a-banner"},{"title":"Update a banner","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/banners/{id}","href":"/en/api-reference/endpoints/banners/update-a-banner"},{"title":"The banners on my screen","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/banners","href":"/en/api-reference/endpoints/banners/the-banners-on-my-screen"},{"title":"Close a banner","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/banners/{id}/dismiss","href":"/en/api-reference/endpoints/banners/close-a-banner"}]},{"group":"Legal","pages":[{"title":"List legal documents","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/legal","href":"/en/api-reference/endpoints/legal/list-legal-documents"},{"title":"Create a legal document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/legal","href":"/en/api-reference/endpoints/legal/create-a-legal-document"},{"title":"Read one document and its history","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/legal/{id}","href":"/en/api-reference/endpoints/legal/read-one-document-and-its-history"},{"title":"Delete a legal document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/legal/{id}","href":"/en/api-reference/endpoints/legal/delete-a-legal-document"},{"title":"Update a legal document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/legal/{id}","href":"/en/api-reference/endpoints/legal/update-a-legal-document"},{"title":"Who agreed, and to which words","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/legal/{id}/acceptances","href":"/en/api-reference/endpoints/legal/who-agreed-and-to-which-words"},{"title":"Write the next version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/legal/{id}/versions","href":"/en/api-reference/endpoints/legal/write-the-next-version"},{"title":"Read one version's text","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/legal/{id}/versions/{versionID}","href":"/en/api-reference/endpoints/legal/read-one-versions-text"},{"title":"Discard the draft","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/legal/{id}/versions/{versionID}","href":"/en/api-reference/endpoints/legal/discard-the-draft"},{"title":"Edit the draft","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/legal/{id}/versions/{versionID}","href":"/en/api-reference/endpoints/legal/edit-the-draft"},{"title":"Publish a version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/legal/{id}/versions/{versionID}/publish","href":"/en/api-reference/endpoints/legal/publish-a-version"},{"title":"Where this organization stands with OUR terms","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/platform-legal","href":"/en/api-reference/endpoints/legal/where-this-organization-stands-with-our-terms"},{"title":"Agree to a version, for the organization","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/platform-legal/{versionID}/accept","href":"/en/api-reference/endpoints/legal/agree-to-a-version-for-the-organization"},{"title":"Record an agreement from your own sign-up","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contacts/{id}/legal-acceptances","href":"/en/api-reference/endpoints/legal/record-an-agreement-from-your-own-sign-up"},{"title":"The published terms","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/legal/{publishableKey}","href":"/en/api-reference/endpoints/legal/the-published-terms"},{"title":"One document's text","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/legal/{publishableKey}/{slug}","href":"/en/api-reference/endpoints/legal/one-documents-text"},{"title":"What I am being asked to agree to","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/legal","href":"/en/api-reference/endpoints/legal/what-i-am-being-asked-to-agree-to"},{"title":"Agree to a version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/legal/{versionID}/accept","href":"/en/api-reference/endpoints/legal/agree-to-a-version"}]},{"group":"Roles","pages":[{"title":"List roles","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/roles","href":"/en/api-reference/endpoints/roles/list-roles"},{"title":"Create a role","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/roles","href":"/en/api-reference/endpoints/roles/create-a-role"},{"title":"List the permission catalogue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/roles/permissions","href":"/en/api-reference/endpoints/roles/list-the-permission-catalogue"},{"title":"Replace a role's permissions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/organization/roles/{id}","href":"/en/api-reference/endpoints/roles/replace-a-roles-permissions"},{"title":"Delete a role","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/roles/{id}","href":"/en/api-reference/endpoints/roles/delete-a-role"}]},{"group":"API keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/api-keys","href":"/en/api-reference/endpoints/api-keys/list-api-keys"},{"title":"Create an API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/api-keys","href":"/en/api-reference/endpoints/api-keys/create-an-api-key"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/api-keys/{id}","href":"/en/api-reference/endpoints/api-keys/revoke-an-api-key"},{"title":"List publishable keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/publishable-keys","href":"/en/api-reference/endpoints/api-keys/list-publishable-keys"},{"title":"Set the allowed origins","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/publishable-keys/{id}","href":"/en/api-reference/endpoints/api-keys/set-the-allowed-origins"}]},{"group":"Customer roles","pages":[{"title":"List customer roles","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/customer-roles","href":"/en/api-reference/endpoints/customer-roles/list-customer-roles"},{"title":"Create a customer role","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/customer-roles","href":"/en/api-reference/endpoints/customer-roles/create-a-customer-role"},{"title":"Delete a customer role","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/customer-roles/{id}","href":"/en/api-reference/endpoints/customer-roles/delete-a-customer-role"},{"title":"Update a customer role","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/customer-roles/{id}","href":"/en/api-reference/endpoints/customer-roles/update-a-customer-role"},{"title":"List a customer role's versions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/customer-roles/{id}/versions","href":"/en/api-reference/endpoints/customer-roles/list-a-customer-roles-versions"},{"title":"Restore a customer role version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/customer-roles/{id}/versions/{versionId}/restore","href":"/en/api-reference/endpoints/customer-roles/restore-a-customer-role-version"}]},{"group":"Contacts (API key)","pages":[{"title":"Identify the API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/me","href":"/en/api-reference/endpoints/contacts-api-key/identify-the-api-key"},{"title":"List contacts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contacts","href":"/en/api-reference/endpoints/contacts-api-key/list-contacts"},{"title":"Identify a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contacts","href":"/en/api-reference/endpoints/contacts-api-key/identify-a-contact"},{"title":"Read a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contacts/{id}","href":"/en/api-reference/endpoints/contacts-api-key/read-a-contact"}]},{"group":"Customer teams","pages":[{"title":"List teams","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/customers","href":"/en/api-reference/endpoints/customer-teams/list-teams"},{"title":"Create or mirror a team","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/customers","href":"/en/api-reference/endpoints/customer-teams/create-or-mirror-a-team"},{"title":"Retrieve a team","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/customers/{id}","href":"/en/api-reference/endpoints/customer-teams/retrieve-a-team"},{"title":"List a team's members","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/customers/{id}/members","href":"/en/api-reference/endpoints/customer-teams/list-a-teams-members"},{"title":"Put a contact on a team","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/customers/{id}/members","href":"/en/api-reference/endpoints/customer-teams/put-a-contact-on-a-team"},{"title":"List the contact's customers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/customers","href":"/en/api-reference/endpoints/customer-teams/list-the-contacts-customers"},{"title":"Open a customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customers","href":"/en/api-reference/endpoints/customer-teams/open-a-customer"},{"title":"The active customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/customer","href":"/en/api-reference/endpoints/customer-teams/the-active-customer"},{"title":"The team","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/customer/members","href":"/en/api-reference/endpoints/customer-teams/the-team"},{"title":"The roles a seat can be given","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/customer/roles","href":"/en/api-reference/endpoints/customer-teams/the-roles-a-seat-can-be-given"},{"title":"Leave the customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/contact/customer/members/me","href":"/en/api-reference/endpoints/customer-teams/leave-the-customer"},{"title":"Change a member's role","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/contact/customer/members/{contactId}/role","href":"/en/api-reference/endpoints/customer-teams/change-a-members-role"},{"title":"Remove a member","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/contact/customer/members/{contactId}","href":"/en/api-reference/endpoints/customer-teams/remove-a-member"},{"title":"Invite someone onto the team","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/invitations","href":"/en/api-reference/endpoints/customer-teams/invite-someone-onto-the-team"},{"title":"Revoke an invitation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/contact/customer/invitations/{id}","href":"/en/api-reference/endpoints/customer-teams/revoke-an-invitation"},{"title":"Resend an invitation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/invitations/{id}/resend","href":"/en/api-reference/endpoints/customer-teams/resend-an-invitation"},{"title":"Accept an invitation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/invitations/accept","href":"/en/api-reference/endpoints/customer-teams/accept-an-invitation"}]},{"group":"In-app notifications","pages":[{"title":"Send an in-app notification","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/notifications","href":"/en/api-reference/endpoints/in-app-notifications/send-an-in-app-notification"},{"title":"My notifications","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/notifications","href":"/en/api-reference/endpoints/in-app-notifications/my-notifications"},{"title":"Clear my badge","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/notifications/read-all","href":"/en/api-reference/endpoints/in-app-notifications/clear-my-badge"},{"title":"Mark a notification read","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/notifications/{id}/read","href":"/en/api-reference/endpoints/in-app-notifications/mark-a-notification-read"}]},{"group":"Customer API keys","pages":[{"title":"Resolve a customer-issued key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/customer-keys/verify","href":"/en/api-reference/endpoints/customer-api-keys/resolve-a-customer-issued-key"},{"title":"List my team's API keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/customer/api-keys","href":"/en/api-reference/endpoints/customer-api-keys/list-my-teams-api-keys"},{"title":"Issue an API key for my team","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/api-keys","href":"/en/api-reference/endpoints/customer-api-keys/issue-an-api-key-for-my-team"},{"title":"Revoke one of my team's API keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/contact/customer/api-keys/{id}","href":"/en/api-reference/endpoints/customer-api-keys/revoke-one-of-my-teams-api-keys"},{"title":"Roll one of my team's API keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/api-keys/{id}/roll","href":"/en/api-reference/endpoints/customer-api-keys/roll-one-of-my-teams-api-keys"}]},{"group":"Customer plane","pages":[{"title":"Boot the widget","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/boot","href":"/en/api-reference/endpoints/customer-plane/boot-the-widget"},{"title":"Track analytics events","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/events","href":"/en/api-reference/endpoints/customer-plane/track-analytics-events"},{"title":"Fetch an environment's public keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/jwks/{publishableKey}","href":"/en/api-reference/endpoints/customer-plane/fetch-an-environments-public-keys"},{"title":"Fetch an environment's recently revoked sessions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/revocations/{publishableKey}","href":"/en/api-reference/endpoints/customer-plane/fetch-an-environments-recently-revoked-sessions"},{"title":"What this environment supports","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/config/{publishableKey}","href":"/en/api-reference/endpoints/customer-plane/what-this-environment-supports"},{"title":"Request a magic link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact-auth/magic-link","href":"/en/api-reference/endpoints/customer-plane/request-a-magic-link"},{"title":"Redeem a magic link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact-auth/magic-link/redeem","href":"/en/api-reference/endpoints/customer-plane/redeem-a-magic-link"},{"title":"Whose portal is this host?","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/portal/tenants/{host}","href":"/en/api-reference/endpoints/customer-plane/whose-portal-is-this-host?"},{"title":"Request an email sign-in code","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact-auth/email-code","href":"/en/api-reference/endpoints/customer-plane/request-an-email-sign-in-code"},{"title":"Sign in with an email code","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact-auth/email-code/verify","href":"/en/api-reference/endpoints/customer-plane/sign-in-with-an-email-code"},{"title":"Read the current contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/me","href":"/en/api-reference/endpoints/customer-plane/read-the-current-contact"},{"title":"My early access requests","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/waitlists","href":"/en/api-reference/endpoints/customer-plane/my-early-access-requests"},{"title":"Ask for early access","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/waitlists/{key}","href":"/en/api-reference/endpoints/customer-plane/ask-for-early-access"},{"title":"Take back an early access request","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/contact/waitlists/{key}","href":"/en/api-reference/endpoints/customer-plane/take-back-an-early-access-request"},{"title":"Mint a session JWT","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/token","href":"/en/api-reference/endpoints/customer-plane/mint-a-session-jwt"},{"title":"List the contact's sessions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/sessions","href":"/en/api-reference/endpoints/customer-plane/list-the-contacts-sessions"},{"title":"Sign out everywhere else","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/contact/sessions","href":"/en/api-reference/endpoints/customer-plane/sign-out-everywhere-else"},{"title":"Revoke one session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/contact/sessions/{id}","href":"/en/api-reference/endpoints/customer-plane/revoke-one-session"},{"title":"Sign the contact out","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/logout","href":"/en/api-reference/endpoints/customer-plane/sign-the-contact-out"}]},{"group":"Pricing","pages":[{"title":"The pricing page's data","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/pricing/{publishableKey}","href":"/en/api-reference/endpoints/pricing/the-pricing-pages-data"}]},{"group":"Notifications","pages":[{"title":"What this link will switch off","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/unsubscribe/{token}","href":"/en/api-reference/endpoints/notifications/what-this-link-will-switch-off"},{"title":"Unsubscribe","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/unsubscribe/{token}","href":"/en/api-reference/endpoints/notifications/unsubscribe"},{"title":"My notification preferences","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/notification-preferences","href":"/en/api-reference/endpoints/notifications/my-notification-preferences"},{"title":"Change my notification preferences","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/contact/notification-preferences","href":"/en/api-reference/endpoints/notifications/change-my-notification-preferences"}]},{"group":"Customer billing","pages":[{"title":"What my team pays","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/customer/billing","href":"/en/api-reference/endpoints/customer-billing/what-my-team-pays"},{"title":"My team's invoices","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/customer/invoices","href":"/en/api-reference/endpoints/customer-billing/my-teams-invoices"},{"title":"Open the gateway's billing portal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/billing/portal-link","href":"/en/api-reference/endpoints/customer-billing/open-the-gateways-billing-portal"},{"title":"Buy from the pricing page","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/billing/checkout","href":"/en/api-reference/endpoints/customer-billing/buy-from-the-pricing-page"},{"title":"Change my team's plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/billing/change-plan","href":"/en/api-reference/endpoints/customer-billing/change-my-teams-plan"},{"title":"Cancel my team's subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/billing/cancel","href":"/en/api-reference/endpoints/customer-billing/cancel-my-teams-subscription"},{"title":"Resume a scheduled cancellation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/billing/resume","href":"/en/api-reference/endpoints/customer-billing/resume-a-scheduled-cancellation"},{"title":"Open the cancellation flow","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/customer/billing/cancellation","href":"/en/api-reference/endpoints/customer-billing/open-the-cancellation-flow"},{"title":"Record why this team is leaving","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/billing/cancellation","href":"/en/api-reference/endpoints/customer-billing/record-why-this-team-is-leaving"},{"title":"Carry out a recorded cancellation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/billing/cancellation/{id}/confirm","href":"/en/api-reference/endpoints/customer-billing/carry-out-a-recorded-cancellation"},{"title":"Take the save offer instead","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/billing/cancellation/{id}/offer","href":"/en/api-reference/endpoints/customer-billing/take-the-save-offer-instead"}]},{"group":"Customer webhooks","pages":[{"title":"List my team's webhook endpoints","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/customer/webhooks","href":"/en/api-reference/endpoints/customer-webhooks/list-my-teams-webhook-endpoints"},{"title":"Register a webhook endpoint for my team","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/webhooks","href":"/en/api-reference/endpoints/customer-webhooks/register-a-webhook-endpoint-for-my-team"},{"title":"Delete my team's webhook endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/contact/customer/webhooks/{id}","href":"/en/api-reference/endpoints/customer-webhooks/delete-my-teams-webhook-endpoint"},{"title":"Update my team's webhook endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/contact/customer/webhooks/{id}","href":"/en/api-reference/endpoints/customer-webhooks/update-my-teams-webhook-endpoint"},{"title":"Read the endpoint's signing secret","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/customer/webhooks/{id}/secret","href":"/en/api-reference/endpoints/customer-webhooks/read-the-endpoints-signing-secret"},{"title":"Rotate the endpoint's signing secret","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/webhooks/{id}/secret/rotate","href":"/en/api-reference/endpoints/customer-webhooks/rotate-the-endpoints-signing-secret"},{"title":"Send a test delivery","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/customer/webhooks/{id}/test","href":"/en/api-reference/endpoints/customer-webhooks/send-a-test-delivery"},{"title":"List the endpoint's deliveries","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/customer/webhooks/{id}/deliveries","href":"/en/api-reference/endpoints/customer-webhooks/list-the-endpoints-deliveries"}]},{"group":"Support","pages":[{"title":"List the contact's own conversations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/conversations","href":"/en/api-reference/endpoints/support/list-the-contacts-own-conversations"},{"title":"Open a support conversation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/conversations","href":"/en/api-reference/endpoints/support/open-a-support-conversation"},{"title":"Read one conversation's thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/conversations/{id}","href":"/en/api-reference/endpoints/support/read-one-conversations-thread"},{"title":"Reply in a conversation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/conversations/{id}/messages","href":"/en/api-reference/endpoints/support/reply-in-a-conversation"},{"title":"Mark a conversation read","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contact/conversations/{id}/read","href":"/en/api-reference/endpoints/support/mark-a-conversation-read"},{"title":"List conversations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/support/conversations","href":"/en/api-reference/endpoints/support/list-conversations"},{"title":"Read a conversation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/support/conversations/{id}","href":"/en/api-reference/endpoints/support/read-a-conversation"},{"title":"Update a conversation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/support/conversations/{id}","href":"/en/api-reference/endpoints/support/update-a-conversation"},{"title":"Read a conversation's context","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/support/conversations/{id}/context","href":"/en/api-reference/endpoints/support/read-a-conversations-context"},{"title":"Reply, or leave an internal note","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/support/conversations/{id}/messages","href":"/en/api-reference/endpoints/support/reply-or-leave-an-internal-note"},{"title":"Attach a tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/support/conversations/{id}/tags/{tagId}","href":"/en/api-reference/endpoints/support/attach-a-tag"},{"title":"Detach a tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/support/conversations/{id}/tags/{tagId}","href":"/en/api-reference/endpoints/support/detach-a-tag"},{"title":"List tags","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/support/tags","href":"/en/api-reference/endpoints/support/list-tags"},{"title":"Create a tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/support/tags","href":"/en/api-reference/endpoints/support/create-a-tag"},{"title":"Delete a tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/support/tags/{id}","href":"/en/api-reference/endpoints/support/delete-a-tag"},{"title":"Rename or recolor a tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/support/tags/{id}","href":"/en/api-reference/endpoints/support/rename-or-recolor-a-tag"},{"title":"List saved replies","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/support/saved-replies","href":"/en/api-reference/endpoints/support/list-saved-replies"},{"title":"Create a saved reply","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/support/saved-replies","href":"/en/api-reference/endpoints/support/create-a-saved-reply"},{"title":"Delete a saved reply","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/support/saved-replies/{id}","href":"/en/api-reference/endpoints/support/delete-a-saved-reply"},{"title":"Update a saved reply","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/support/saved-replies/{id}","href":"/en/api-reference/endpoints/support/update-a-saved-reply"},{"title":"Get the auto-responder settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/support/ai-settings","href":"/en/api-reference/endpoints/support/get-the-auto-responder-settings"},{"title":"Update the auto-responder settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/support/ai-settings","href":"/en/api-reference/endpoints/support/update-the-auto-responder-settings"},{"title":"Get the SLA policy","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/support/sla","href":"/en/api-reference/endpoints/support/get-the-sla-policy"},{"title":"Update the SLA policy","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/support/sla","href":"/en/api-reference/endpoints/support/update-the-sla-policy"},{"title":"Receive an inbound support email","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /webhooks/email/inbound","href":"/en/api-reference/endpoints/support/receive-an-inbound-support-email"}]},{"group":"Webhooks","pages":[{"title":"List webhook endpoints","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/webhooks","href":"/en/api-reference/endpoints/webhooks/list-webhook-endpoints"},{"title":"Register a webhook endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/webhooks","href":"/en/api-reference/endpoints/webhooks/register-a-webhook-endpoint"},{"title":"The published event catalogue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/webhooks/events","href":"/en/api-reference/endpoints/webhooks/the-published-event-catalogue"},{"title":"Read one webhook endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/webhooks/{id}","href":"/en/api-reference/endpoints/webhooks/read-one-webhook-endpoint"},{"title":"Delete a webhook endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/webhooks/{id}","href":"/en/api-reference/endpoints/webhooks/delete-a-webhook-endpoint"},{"title":"Update a webhook endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/webhooks/{id}","href":"/en/api-reference/endpoints/webhooks/update-a-webhook-endpoint"},{"title":"Read the signing secret","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/webhooks/{id}/secret","href":"/en/api-reference/endpoints/webhooks/read-the-signing-secret"},{"title":"Rotate the signing secret","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/webhooks/{id}/secret/rotate","href":"/en/api-reference/endpoints/webhooks/rotate-the-signing-secret"},{"title":"Send a test delivery","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/webhooks/{id}/test","href":"/en/api-reference/endpoints/webhooks/send-a-test-delivery"},{"title":"The delivery log","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/webhooks/{id}/deliveries","href":"/en/api-reference/endpoints/webhooks/the-delivery-log"},{"title":"Replay a delivery","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/webhooks/{id}/deliveries/{deliveryId}/replay","href":"/en/api-reference/endpoints/webhooks/replay-a-delivery"}]},{"group":"Alerts","pages":[{"title":"List alert channels","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/alerts","href":"/en/api-reference/endpoints/alerts/list-alert-channels"},{"title":"Register an alert channel","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/alerts","href":"/en/api-reference/endpoints/alerts/register-an-alert-channel"},{"title":"Remove an alert channel","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/organization/alerts/{id}","href":"/en/api-reference/endpoints/alerts/remove-an-alert-channel"},{"title":"Update an alert channel","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organization/alerts/{id}","href":"/en/api-reference/endpoints/alerts/update-an-alert-channel"},{"title":"Send a test alert","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/alerts/{id}/test","href":"/en/api-reference/endpoints/alerts/send-a-test-alert"},{"title":"The delivery log","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/alerts/{id}/deliveries","href":"/en/api-reference/endpoints/alerts/the-delivery-log"}]},{"group":"Help center","pages":[{"title":"List collections","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/support/help/collections","href":"/en/api-reference/endpoints/help-center/list-collections"},{"title":"Create a collection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/support/help/collections","href":"/en/api-reference/endpoints/help-center/create-a-collection"},{"title":"Delete a collection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/support/help/collections/{id}","href":"/en/api-reference/endpoints/help-center/delete-a-collection"},{"title":"Update a collection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/support/help/collections/{id}","href":"/en/api-reference/endpoints/help-center/update-a-collection"},{"title":"List articles","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/support/help/articles","href":"/en/api-reference/endpoints/help-center/list-articles"},{"title":"Create an article","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/support/help/articles","href":"/en/api-reference/endpoints/help-center/create-an-article"},{"title":"Read an article","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/support/help/articles/{id}","href":"/en/api-reference/endpoints/help-center/read-an-article"},{"title":"Delete an article","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/support/help/articles/{id}","href":"/en/api-reference/endpoints/help-center/delete-an-article"},{"title":"Update an article","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/support/help/articles/{id}","href":"/en/api-reference/endpoints/help-center/update-an-article"},{"title":"Save a version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/support/help/articles/{id}/versions","href":"/en/api-reference/endpoints/help-center/save-a-version"},{"title":"Read a version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/support/help/articles/{id}/versions/{versionId}","href":"/en/api-reference/endpoints/help-center/read-a-version"},{"title":"Publish a version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/support/help/articles/{id}/publish","href":"/en/api-reference/endpoints/help-center/publish-a-version"},{"title":"Unpublish an article","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/support/help/articles/{id}/unpublish","href":"/en/api-reference/endpoints/help-center/unpublish-an-article"},{"title":"The help center's index","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/help/{publishableKey}","href":"/en/api-reference/endpoints/help-center/the-help-centers-index"},{"title":"One published article","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/help/{publishableKey}/articles/{slug}","href":"/en/api-reference/endpoints/help-center/one-published-article"},{"title":"Search the help center","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/help/{publishableKey}/search","href":"/en/api-reference/endpoints/help-center/search-the-help-center"}]},{"group":"Provider webhooks","pages":[{"title":"Receive a Stripe webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /webhooks/stripe/{connectionID}","href":"/en/api-reference/endpoints/provider-webhooks/receive-a-stripe-webhook"},{"title":"Receive a mail delivery event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /webhooks/email","href":"/en/api-reference/endpoints/provider-webhooks/receive-a-mail-delivery-event"}]},{"group":"MCP","pages":[{"title":"Model Context Protocol endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /mcp","href":"/en/api-reference/endpoints/mcp/model-context-protocol-endpoint"}]},{"group":"Referrals","pages":[{"title":"List the referral codes of an environment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/referral-codes","href":"/en/api-reference/endpoints/referrals/list-the-referral-codes-of-an-environment"},{"title":"Issue a referral code","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/referral-codes","href":"/en/api-reference/endpoints/referrals/issue-a-referral-code"},{"title":"Turn a referral code back on","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/referral-codes/{id}/activate","href":"/en/api-reference/endpoints/referrals/turn-a-referral-code-back-on"},{"title":"Stop a referral code attributing","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organization/referral-codes/{id}/deactivate","href":"/en/api-reference/endpoints/referrals/stop-a-referral-code-attributing"},{"title":"What the referral programme owes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organization/referrals/report","href":"/en/api-reference/endpoints/referrals/what-the-referral-programme-owes"},{"title":"My referral codes and what they have earned","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contact/referrals","href":"/en/api-reference/endpoints/referrals/my-referral-codes-and-what-they-have-earned"}]}]}]}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-br/api-reference/endpoints/subscriptions/start-a-checkout"}]}]},"basePath":"","title":"Start a checkout - UserKit","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-x4vGgoST.js","snippetPresets-BGlsYH49.js","utils-D225GpYB.js","style-to-object-BY3JEAdk.js","utils-fb7dxv-3.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-D0sNzoEe.js","conditional-requirements-CFM0id0Q.js","cloneDeep-C4iMfrOs.js","_Uint8Array-DDor1j2p.js","isObject-FP1Yky1u.js","ApiExamples-Bw_TWYoP.js","usePlaygroundInputsStore-DLRpNM_Z.js","shallow-DCZ_mvT2.js","isEqual-BZMHHGz2.js","CodeSnippets-CqYNT6UN.js","CodeSnippet-AsYrl7_f.js","getApiPlaygroundDisplay-B1HdZsAn.js","Page-COAeG2by.js","DynamicMarkdown-Bg54PExR.js","SectionHeading-BVOfbSTS.js","icon-Bwg0LftJ.js","MethodPill-ETXe5J4U.js","getPastedJson-6m1DH7UM.js","Check2Icon-Bz4v4IkN.js","axios-CsQoIw0U.js","Markdown-CYkmN8yk.js","AssistantPageLink-BZUrxqjy.js","dist-C-58LlaB.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}