A token from POST /oauth/token, valid 1 hour. Paste it as LCSTOK-…-X (without the word Bearer).
Scopes
checkout_sessions:write
Create and read checkout sessions
Body
application/json
event_id
string
required
Your organization's event.
Example:
"q3Zk9mVx"
ui_mode
enum<string>
default:redirect
redirect (hosted page, the default) or embedded (laces.js modal).
Available options:
redirect,
embedded
on_success_url
string
Required for redirect, optional for embedded. Absolute https URL whose origin exactly matches one of your return URL domains (http://localhost:<port> / http://127.0.0.1:<port> only when registered). {CHECKOUT_SESSION_ID} (or %7BCHECKOUT_SESSION_ID%7D) is replaced with the session id; with no placeholder, session_id=<id> is added as a query parameter, overwriting any existing session_id.
Embedded sessions created with a bearer token only: the origin (https://host[:port]) of the page that will host the modal. Must be one of your allowed domains (400 invalid_embed_origin otherwise). With a publishable key the request's Origin is used and this field is ignored.
Example:
"https://shop.example.com"
client_reference_id
string
Your reference, returned when you read the session. Match it on verification.
Maximum string length: 256
Example:
"cart-8841"
prefill
object
Optional values to pre-fill on the checkout form.
Show child attributes
theme
object | null
Optional branding for this session: accent color, logo and color scheme. Overrides the key-level branding set in the Laces app, field by field. null or absent means no override. An invalid or unknown field answers 400 invalid_theme. See Brand your checkout.
Show child attributes
Response
The session.
code
integer
required
HTTP status, repeated in the body.
Example:
201
message
string
required
Example:
"Checkout session created successfully"
data
object
required
Show child attributes
Last modified on November 24, 2026
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Laces","description":"The Laces Partner API: show your organization's events on your own website and take registrations and payment, or collect payments for anything you sell on your own site.","colors":{"primary":"#3F7A12","light":"#77D704","dark":"#3F7A12"},"logo":{"light":"https://mintcdn.com/laces/TvNmP5tvH8tqleQI/logo/light.svg?fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=59fec4e8ca5a456634120acc1591b0e3","dark":"https://mintcdn.com/laces/TvNmP5tvH8tqleQI/logo/dark.svg?fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=8eb4d2785c567dd8669530897a76879f","href":"https://laces.run"},"favicon":"https://mintcdn.com/laces/TvNmP5tvH8tqleQI/favicon.svg?fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=d8f8c7ea77b693e374d3b0f5c32c1440","api":{"params":{"expanded":"closed"},"playground":{"display":"interactive","proxy":true},"examples":{"defaults":"all","languages":["curl","javascript","python","php"],"prefill":true}},"background":{"color":{"light":"#F7F7F5","dark":"#0A110B"}},"navbar":{"links":[{"href":"mailto:support@laces.run","label":"Support"},{"href":"https://laces.run","label":"laces.run"}],"primary":{"type":"button","label":"Get API keys","href":"/api-keys"}},"footer":{"links":[{"header":"Documentation","items":[{"label":"Quickstart","href":"/quickstart"},{"label":"Authentication","href":"/authentication"},{"label":"Hosted checkout","href":"/guides/hosted-checkout"},{"label":"Collect payments","href":"/guides/collect-payments"},{"label":"Webhooks","href":"/guides/webhooks"}]},{"header":"Laces","items":[{"label":"laces.run","href":"https://laces.run"},{"label":"Contact support","href":"mailto:support@laces.run"}]}]},"seo":{"metatags":{"canonical":"https://docs.laces.run","og:site_name":"Laces Partner API Docs","og:type":"website","og:image":"https://docs.laces.run/images/og-docs.png","og:image:width":"1200","og:image:height":"630","twitter:card":"summary_large_image","twitter:image":"https://docs.laces.run/images/og-docs.png"},"organization":{"id":"https://laces.run/#organization","name":"Laces","url":"https://laces.run","sameAs":["https://www.wikidata.org/wiki/Q141960146","https://www.instagram.com/lacesdotrun/","https://x.com/lacesdotrun","https://play.google.com/store/apps/details?id=com.apteza.laces"]},"indexing":"navigable"},"fonts":{"family":"Figtree"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","cursor","vscode"],"display":"header"},"metadata":{"timestamp":true},"markdown":{"instructions":["Laces is event registration software for every kind of event, not only races. Use the event's own wording.","There is one environment, production: payments made through the API are real. Money is integer minor units; read the event's currency.","Collecting payments with no Laces event uses POST /payments, then POST /orders/{orderId}/pay: start at /guides/collect-payments. Never call pay to test: there is no sandbox.","Never put a client secret in browser code or an LLM chat. Branch on error_code, not on message.","Overview of Laces: https://laces.run/llms.txt"]},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"laces","hasAudioNarration":false,"actualSubdomain":"laces","customDomains":["docs.laces.run"],"gitSource":{"type":"github","owner":"xephas-official","repo":"laces","deployBranch":"main","contentDirectory":"laces_docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0a722a730522c8a6cb8d1c","clientVersion":"0.0.4352","searchFilterCounts":[{"language":"default","tag":"Guides","count":27},{"language":"default","tag":"API reference","count":21},{"language":"default","tag":"Payments only","count":8},{"language":"default","tag":"Concepts","count":7},{"language":"default","tag":"Events","count":6},{"language":"default","tag":"Integration guides","count":6},{"language":"default","tag":"Getting started","count":4},{"language":"default","tag":"Orders","count":4},{"language":"default","tag":"Webhook events","count":4},{"language":"default","tag":"Checkout sessions","count":2}]},"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"api-reference/v1/checkout-sessions/create","slug":"/api-reference/v1/checkout-sessions/create","pageMetadata":{"title":"Create a hosted or embedded checkout session","sidebarTitle":"Create a checkout session","openapi":"api-reference/v1/openapi.json POST /checkout-sessions","description":"POST /checkout-sessions: start hosted or embedded Laces checkout for one event and get the checkout URL to send the participant to.","href":"/api-reference/v1/checkout-sessions/create"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"POST /checkout-sessions: start hosted or embedded Laces checkout for one event and get the checkout URL to send the participant to.\"\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":"Create a hosted or embedded checkout session","sidebarTitle":"Create a checkout session","openapi":"api-reference/v1/openapi.json POST /checkout-sessions","description":"POST /checkout-sessions: start hosted or embedded Laces checkout for one event and get the checkout URL to send the participant to.","href":"/api-reference/v1/checkout-sessions/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createCheckoutSession","tags":["Checkout sessions"],"summary":"Create a checkout session","description":"POST /checkout-sessions: start hosted or embedded Laces checkout for one event and get the checkout URL to send the participant to.","security":["2db93995-23b2-43a3-a93b-69c1a8365c42","94b3e13f-b5e8-41f3-9bcf-11a6237917e5","40ed5662-e3fd-4330-af74-c107c95b80ae"],"requestBody":"effa0d98-286b-42a8-8c5e-95954b6c4601","responses":{"201":"4c51d706-b9ce-44f7-b205-d3982ac28d55","400":"784764d3-dcb6-4dc3-b164-d99cb4f5c28a","401":"5cdd31df-bb3a-4037-a835-93d6cfefc44f","403":"289a3bc1-82d7-4e41-8937-637e66decf23","404":"ba0ad470-bf53-4bce-a838-35ccffaac150","409":"a20ded04-6789-4339-aa9b-54c036f0f5fd","413":"741ca95b-e7a8-4d9f-89e7-b114009f33ba","429":"58428ae7-d97d-449c-86d5-ffcac1d3e35e","500":"a41eafbb-0349-4662-8ed8-cf3ea019a3fc"},"method":"post","type":"path","servers":["587e6dc1-a599-465d-a265-5a773e6941ad"],"path":"/checkout-sessions","baseUrlOptions":["https://connect.laces.run/v1"],"title":"Create a checkout session","codeSamples":[],"requestExampleLanguages":["bash","javascript","python","php"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.event_id":"q3Zk9mVx","body.ui_mode":"redirect","body.on_success_url":"https://shop.example.com/thanks?session={CHECKOUT_SESSION_ID}","body.on_cancel_url":"https://shop.example.com/events/kampala-city-10k","body.client_reference_id":"cart-8841","body.prefill.buyer_name":"Amina Nakato","body.prefill.buyer_email":"amina@example.com"},{"body.event_id":"q3Zk9mVx","body.ui_mode":"embedded","body.embed_origin":"https://shop.example.com","body.client_reference_id":"cart-8841"}]},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"event_id":{"type":"string","description":"Your organization's event.","examples":["q3Zk9mVx"],"isRequired":true,"uniqueKey":"event_id","typeLabel":"string"},"ui_mode":{"type":"string","description":"`redirect` (hosted page, the default) or `embedded` (laces.js modal).","enum":["redirect","embedded"],"default":"redirect","uniqueKey":"ui_mode","typeLabel":"enum\u003cstring>"},"on_success_url":{"type":"string","description":"Required for `redirect`, optional for `embedded`. Absolute `https` URL whose origin exactly matches one of your return URL domains (`http://localhost:\u003cport>` / `http://127.0.0.1:\u003cport>` only when registered). `{CHECKOUT_SESSION_ID}` (or `%7BCHECKOUT_SESSION_ID%7D`) is replaced with the session id; with no placeholder, `session_id=\u003cid>` is added as a query parameter, overwriting any existing `session_id`.","maxLength":2048,"examples":["https://shop.example.com/thanks?session={CHECKOUT_SESSION_ID}"],"uniqueKey":"on_success_url","typeLabel":"string"},"on_cancel_url":{"type":"string","description":"Required for `redirect`, optional for `embedded`. Same rules; used as given (no id added).","format":"uri","maxLength":2048,"examples":["https://shop.example.com/events/kampala-city-10k"],"uniqueKey":"on_cancel_url","typeLabel":"string\u003curi>"},"embed_origin":{"type":"string","description":"Embedded sessions created with a **bearer token** only: the origin (`https://host[:port]`) of the page that will host the modal. Must be one of your allowed domains (`400 invalid_embed_origin` otherwise). With a publishable key the request's `Origin` is used and this field is ignored.","examples":["https://shop.example.com"],"uniqueKey":"embed_origin","typeLabel":"string"},"client_reference_id":{"type":"string","description":"Your reference, returned when you read the session. Match it on verification.","maxLength":256,"examples":["cart-8841"],"uniqueKey":"client_reference_id","typeLabel":"string"},"prefill":{"type":"object","properties":{"buyer_name":{"type":"string","maxLength":120,"uniqueKey":"prefill.buyer_name","typeLabel":"string"},"buyer_email":{"type":"string","format":"email","maxLength":254,"uniqueKey":"prefill.buyer_email","typeLabel":"string\u003cemail>"},"buyer_phone":{"type":"string","maxLength":32,"uniqueKey":"prefill.buyer_phone","typeLabel":"string"}},"description":"Optional values to pre-fill on the checkout form.","uniqueKey":"prefill","typeLabel":"object"},"theme":{"oneOf":[{"type":"object","description":"Optional branding for this session: accent color, logo and color scheme. Overrides the key-level branding set in the Laces app, field by field. `null` or absent means no override. An invalid or unknown field answers `400 invalid_theme`. See [Brand your checkout](/guides/branding).","properties":{"primary_color":{"oneOf":[{"type":"string","description":"Accent color, exactly `#RRGGBB`. Not used where it is too close to the page or card background to read (checkout falls back instead).","pattern":"^#[0-9A-Fa-f]{6}$","examples":["#3F7A12"],"uniqueKey":"theme.oneOf.0.primary_color.oneOf.0","typeLabel":"string"},{"type":"null","description":"Accent color, exactly `#RRGGBB`. Not used where it is too close to the page or card background to read (checkout falls back instead).","pattern":"^#[0-9A-Fa-f]{6}$","examples":["#3F7A12"],"uniqueKey":"theme.oneOf.0.primary_color.oneOf.1","typeLabel":"null"}],"uniqueKey":"theme.oneOf.0.primary_color","typeLabel":"string | null"},"logo_url":{"oneOf":[{"type":"string","description":"Your logo, loaded by the buyer's browser from your host. `https` only, no `user:password@`, no whitespace, on a domain name (not an IP address, `localhost` or a single-word host).","format":"uri","maxLength":2048,"examples":["https://shop.example.com/logo.png"],"uniqueKey":"theme.oneOf.0.logo_url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","description":"Your logo, loaded by the buyer's browser from your host. `https` only, no `user:password@`, no whitespace, on a domain name (not an IP address, `localhost` or a single-word host).","format":"uri","maxLength":2048,"examples":["https://shop.example.com/logo.png"],"uniqueKey":"theme.oneOf.0.logo_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"theme.oneOf.0.logo_url","typeLabel":"string\u003curi> | null"},"color_scheme":{"oneOf":[{"type":"string","description":"`light`, `dark` or `auto`. Absent means `auto`: follow the buyer's device setting.","enum":["light","dark","auto",null],"default":"auto","uniqueKey":"theme.oneOf.0.color_scheme.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"`light`, `dark` or `auto`. Absent means `auto`: follow the buyer's device setting.","enum":["light","dark","auto",null],"default":"auto","uniqueKey":"theme.oneOf.0.color_scheme.oneOf.1","typeLabel":"null"}],"uniqueKey":"theme.oneOf.0.color_scheme","typeLabel":"enum\u003cstring> | null"}},"additionalProperties":false,"uniqueKey":"theme.oneOf.0","typeLabel":"object"},{"type":"null","description":"Optional branding for this session: accent color, logo and color scheme. Overrides the key-level branding set in the Laces app, field by field. `null` or absent means no override. An invalid or unknown field answers `400 invalid_theme`. See [Brand your checkout](/guides/branding).","uniqueKey":"theme.oneOf.1","typeLabel":"null"}],"uniqueKey":"theme","typeLabel":"object | null"}},"required":["event_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"redirect":{"title":"redirect","summary":"Hosted checkout (redirect)","value":{"event_id":"q3Zk9mVx","ui_mode":"redirect","on_success_url":"https://shop.example.com/thanks?session={CHECKOUT_SESSION_ID}","on_cancel_url":"https://shop.example.com/events/kampala-city-10k","client_reference_id":"cart-8841","prefill":{"buyer_name":"Amina Nakato","buyer_email":"amina@example.com"}}},"embedded":{"title":"embedded","summary":"Embedded checkout, server-created","value":{"event_id":"q3Zk9mVx","ui_mode":"embedded","embed_origin":"https://shop.example.com","client_reference_id":"cart-8841"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"4c51d706-b9ce-44f7-b205-d3982ac28d55":{"description":"The session.","content":{"application/json":{"schema":{"type":"object","required":["code","message","data"],"properties":{"code":{"type":"integer","description":"HTTP status, repeated in the body.","examples":[201],"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","examples":["Checkout session created successfully"],"isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","properties":{"id":{"type":"string","examples":["LCSCS-EXAMPLESESSN234EXAMPL"],"isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"url":{"type":"string","description":"The Laces-hosted checkout page. Redirect the buyer here (or let laces.js open it).","format":"uri","isRequired":true,"uniqueKey":"data.url","typeLabel":"string\u003curi>"},"expires_at":{"type":"string","description":"24 hours after creation. The session is deleted some time after this, so a later read can be `404`.","format":"date-time","isRequired":true,"uniqueKey":"data.expires_at","typeLabel":"string\u003cdate-time>"},"ui_mode":{"type":"string","enum":["redirect","embedded"],"isRequired":true,"uniqueKey":"data.ui_mode","typeLabel":"enum\u003cstring>"}},"required":["id","url","expires_at","ui_mode"],"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":201,"message":"Checkout session created successfully","data":{"id":"LCSCS-EXAMPLESESSN234EXAMPL","url":"https://laces.run/checkout/LCSCS-EXAMPLESESSN234EXAMPL","expires_at":"2026-10-10T08:14:03.000Z","ui_mode":"redirect"}},"examples":{"Example":{"title":"Example","value":{"code":201,"message":"Checkout session created successfully","data":{"id":"LCSCS-EXAMPLESESSN234EXAMPL","url":"https://laces.run/checkout/LCSCS-EXAMPLESESSN234EXAMPL","expires_at":"2026-10-10T08:14:03.000Z","ui_mode":"redirect"}}}},"exampleType":"examples"}},"headers":{"X-Request-Id":{"description":"Unique id of this request (`req_…`). On every response, readable from browsers. Quote it to support.","schema":{"type":"string"},"example":"req_V1StGXR8Z5jdHi6BmyTq"}},"exampleType":"examples"},"784764d3-dcb6-4dc3-b164-d99cb4f5c28a":{"description":"Invalid request.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status, repeated in the body.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Short outcome. Do not branch on it; it may be reworded.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","description":"Human-readable detail. May be reworded; never parse it.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","description":"Stable machine-readable code. **Branch on this.** Present on every Partner API error, including `429 rate_limited`, `404 not_found` for unknown routes and `500 server_error`. See the [error reference](/concepts/errors).","isRequired":true,"uniqueKey":"error_code","typeLabel":"string"},"details":{"type":"object","properties":{"retry_after_seconds":{"type":"integer","uniqueKey":"details.retry_after_seconds","typeLabel":"integer"},"masked_msisdn":{"type":"string","description":"`charge_pending_same_number` only: the number, masked to its last digits.","uniqueKey":"details.masked_msisdn","typeLabel":"string"},"network":{"type":"string","description":"`charge_pending_same_number` only, when known.","uniqueKey":"details.network","typeLabel":"string"}},"description":"Only on `409 prompt_in_progress`, `409 charge_pending_same_number` and `429 payer_prompt_limit`.","uniqueKey":"details","typeLabel":"object"},"request_id":{"type":"string","description":"On `500 server_error` only: the same id as the `X-Request-Id` header. A 500 carries a generic `error` message, never the underlying cause, so quote this id to support.","uniqueKey":"request_id","typeLabel":"string"},"error_details":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error_details.additionalProperties","typeLabel":"string"},"description":"Extra detail on some refusals, as string values: `field` names the offending body field on `unknown_field`, `validation_failed` and the `invalid_*` codes; `price_below_minimum` carries `minimum_price_minor` and `currency`; `registration_external` carries `registration_url`.","uniqueKey":"error_details","typeLabel":"object"}},"required":["code","message","error","error_code"],"description":"The Laces error envelope.","uniqueKey":"","typeLabel":"object"},"examples":{"invalid_request":{"title":"invalid_request","summary":"invalid_request","value":{"code":400,"message":"Bad request","error":"event_id is required","error_code":"invalid_request"}},"invalid_ui_mode":{"title":"invalid_ui_mode","summary":"invalid_ui_mode","value":{"code":400,"message":"Bad request","error":"ui_mode must be redirect or embedded","error_code":"invalid_ui_mode"}},"invalid_return_url":{"title":"invalid_return_url","summary":"invalid_return_url","value":{"code":400,"message":"Bad request","error":"on_success_url origin is not in your return URL domains","error_code":"invalid_return_url"}},"invalid_embed_origin":{"title":"invalid_embed_origin","summary":"invalid_embed_origin","value":{"code":400,"message":"Bad request","error":"embed_origin is not in your allowed domains","error_code":"invalid_embed_origin"}},"invalid_theme":{"title":"invalid_theme","summary":"invalid_theme","value":{"code":400,"message":"Request failed","error":"theme.primary_color must be a hex color in the form #RRGGBB","error_code":"invalid_theme"}},"invalid_json":{"title":"invalid_json","summary":"invalid_json","value":{"code":400,"message":"Validation failed","error":"The request body is not valid JSON","error_code":"invalid_json"}}},"exampleType":"examples"}},"headers":{"X-Request-Id":{"description":"Unique id of this request (`req_…`). On every response, readable from browsers. Quote it to support.","schema":{"type":"string"},"example":"req_V1StGXR8Z5jdHi6BmyTq"}},"exampleType":"examples"},"5cdd31df-bb3a-4037-a835-93d6cfefc44f":{"description":"No credential, an invalid or expired token, or an invalid publishable key. Comes with `WWW-Authenticate: Bearer realm=\"laces-partner\"`. Revoking or regenerating keys can take up to a minute to reach every server.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status, repeated in the body.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Short outcome. Do not branch on it; it may be reworded.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","description":"Human-readable detail. May be reworded; never parse it.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","description":"Stable machine-readable code. **Branch on this.** Present on every Partner API error, including `429 rate_limited`, `404 not_found` for unknown routes and `500 server_error`. See the [error reference](/concepts/errors).","isRequired":true,"uniqueKey":"error_code","typeLabel":"string"},"details":{"type":"object","properties":{"retry_after_seconds":{"type":"integer","uniqueKey":"details.retry_after_seconds","typeLabel":"integer"},"masked_msisdn":{"type":"string","description":"`charge_pending_same_number` only: the number, masked to its last digits.","uniqueKey":"details.masked_msisdn","typeLabel":"string"},"network":{"type":"string","description":"`charge_pending_same_number` only, when known.","uniqueKey":"details.network","typeLabel":"string"}},"description":"Only on `409 prompt_in_progress`, `409 charge_pending_same_number` and `429 payer_prompt_limit`.","uniqueKey":"details","typeLabel":"object"},"request_id":{"type":"string","description":"On `500 server_error` only: the same id as the `X-Request-Id` header. A 500 carries a generic `error` message, never the underlying cause, so quote this id to support.","uniqueKey":"request_id","typeLabel":"string"},"error_details":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error_details.additionalProperties","typeLabel":"string"},"description":"Extra detail on some refusals, as string values: `field` names the offending body field on `unknown_field`, `validation_failed` and the `invalid_*` codes; `price_below_minimum` carries `minimum_price_minor` and `currency`; `registration_external` carries `registration_url`.","uniqueKey":"error_details","typeLabel":"object"}},"required":["code","message","error","error_code"],"description":"The Laces error envelope.","uniqueKey":"","typeLabel":"object"},"examples":{"unauthorized":{"title":"unauthorized","summary":"unauthorized","value":{"code":401,"message":"Unauthorized","error":"Missing credentials","error_code":"unauthorized"}},"invalid_token":{"title":"invalid_token","summary":"invalid_token","value":{"code":401,"message":"Unauthorized","error":"Invalid or expired access token","error_code":"invalid_token"}},"invalid_key":{"title":"invalid_key","summary":"invalid_key","value":{"code":401,"message":"Unauthorized","error":"Invalid publishable key","error_code":"invalid_key"}}},"exampleType":"examples"}},"headers":{"X-Request-Id":{"description":"Unique id of this request (`req_…`). On every response, readable from browsers. Quote it to support.","schema":{"type":"string"},"example":"req_V1StGXR8Z5jdHi6BmyTq"}},"exampleType":"examples"},"289a3bc1-82d7-4e41-8937-637e66decf23":{"description":"The credential is not allowed here, or the organization cannot take payments yet.","headers":{"X-Request-Id":{"description":"Unique id of this request (`req_…`). On every response, readable from browsers. Quote it to support.","schema":{"type":"string"},"example":"req_V1StGXR8Z5jdHi6BmyTq"}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status, repeated in the body.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Short outcome. Do not branch on it; it may be reworded.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","description":"Human-readable detail. May be reworded; never parse it.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","description":"Stable machine-readable code. **Branch on this.** Present on every Partner API error, including `429 rate_limited`, `404 not_found` for unknown routes and `500 server_error`. See the [error reference](/concepts/errors).","isRequired":true,"uniqueKey":"error_code","typeLabel":"string"},"details":{"type":"object","properties":{"retry_after_seconds":{"type":"integer","uniqueKey":"details.retry_after_seconds","typeLabel":"integer"},"masked_msisdn":{"type":"string","description":"`charge_pending_same_number` only: the number, masked to its last digits.","uniqueKey":"details.masked_msisdn","typeLabel":"string"},"network":{"type":"string","description":"`charge_pending_same_number` only, when known.","uniqueKey":"details.network","typeLabel":"string"}},"description":"Only on `409 prompt_in_progress`, `409 charge_pending_same_number` and `429 payer_prompt_limit`.","uniqueKey":"details","typeLabel":"object"},"request_id":{"type":"string","description":"On `500 server_error` only: the same id as the `X-Request-Id` header. A 500 carries a generic `error` message, never the underlying cause, so quote this id to support.","uniqueKey":"request_id","typeLabel":"string"},"error_details":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error_details.additionalProperties","typeLabel":"string"},"description":"Extra detail on some refusals, as string values: `field` names the offending body field on `unknown_field`, `validation_failed` and the `invalid_*` codes; `price_below_minimum` carries `minimum_price_minor` and `currency`; `registration_external` carries `registration_url`.","uniqueKey":"error_details","typeLabel":"object"}},"required":["code","message","error","error_code"],"description":"The Laces error envelope.","uniqueKey":"","typeLabel":"object"},"examples":{"insufficient_scope":{"title":"insufficient_scope","summary":"insufficient_scope","value":{"code":403,"message":"Forbidden","error":"Missing scope: checkout_sessions:write","error_code":"insufficient_scope"}},"origin_not_allowed":{"title":"origin_not_allowed","summary":"origin_not_allowed","value":{"code":403,"message":"Forbidden","error":"This origin is not allowed for this key","error_code":"origin_not_allowed"}},"payments_disabled":{"title":"payments_disabled","summary":"payments_disabled","value":{"code":403,"message":"Request failed","error":"This organizer is not set up to accept payments yet","error_code":"payments_disabled"}}},"exampleType":"examples"}},"exampleType":"examples"},"ba0ad470-bf53-4bce-a838-35ccffaac150":{"description":"Not found, or it belongs to another organization (the same answer, so existence never leaks).","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status, repeated in the body.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Short outcome. Do not branch on it; it may be reworded.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","description":"Human-readable detail. May be reworded; never parse it.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","description":"Stable machine-readable code. **Branch on this.** Present on every Partner API error, including `429 rate_limited`, `404 not_found` for unknown routes and `500 server_error`. See the [error reference](/concepts/errors).","isRequired":true,"uniqueKey":"error_code","typeLabel":"string"},"details":{"type":"object","properties":{"retry_after_seconds":{"type":"integer","uniqueKey":"details.retry_after_seconds","typeLabel":"integer"},"masked_msisdn":{"type":"string","description":"`charge_pending_same_number` only: the number, masked to its last digits.","uniqueKey":"details.masked_msisdn","typeLabel":"string"},"network":{"type":"string","description":"`charge_pending_same_number` only, when known.","uniqueKey":"details.network","typeLabel":"string"}},"description":"Only on `409 prompt_in_progress`, `409 charge_pending_same_number` and `429 payer_prompt_limit`.","uniqueKey":"details","typeLabel":"object"},"request_id":{"type":"string","description":"On `500 server_error` only: the same id as the `X-Request-Id` header. A 500 carries a generic `error` message, never the underlying cause, so quote this id to support.","uniqueKey":"request_id","typeLabel":"string"},"error_details":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error_details.additionalProperties","typeLabel":"string"},"description":"Extra detail on some refusals, as string values: `field` names the offending body field on `unknown_field`, `validation_failed` and the `invalid_*` codes; `price_below_minimum` carries `minimum_price_minor` and `currency`; `registration_external` carries `registration_url`.","uniqueKey":"error_details","typeLabel":"object"}},"required":["code","message","error","error_code"],"description":"The Laces error envelope.","uniqueKey":"","typeLabel":"object"},"examples":{"not_found":{"title":"not_found","summary":"not_found","value":{"code":404,"message":"Not found","error":"Event not found","error_code":"not_found"}}},"exampleType":"examples"}},"headers":{"X-Request-Id":{"description":"Unique id of this request (`req_…`). On every response, readable from browsers. Quote it to support.","schema":{"type":"string"},"example":"req_V1StGXR8Z5jdHi6BmyTq"}},"exampleType":"examples"},"a20ded04-6789-4339-aa9b-54c036f0f5fd":{"description":"Registration is not open.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status, repeated in the body.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Short outcome. Do not branch on it; it may be reworded.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","description":"Human-readable detail. May be reworded; never parse it.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","description":"Stable machine-readable code. **Branch on this.** Present on every Partner API error, including `429 rate_limited`, `404 not_found` for unknown routes and `500 server_error`. See the [error reference](/concepts/errors).","isRequired":true,"uniqueKey":"error_code","typeLabel":"string"},"details":{"type":"object","properties":{"retry_after_seconds":{"type":"integer","uniqueKey":"details.retry_after_seconds","typeLabel":"integer"},"masked_msisdn":{"type":"string","description":"`charge_pending_same_number` only: the number, masked to its last digits.","uniqueKey":"details.masked_msisdn","typeLabel":"string"},"network":{"type":"string","description":"`charge_pending_same_number` only, when known.","uniqueKey":"details.network","typeLabel":"string"}},"description":"Only on `409 prompt_in_progress`, `409 charge_pending_same_number` and `429 payer_prompt_limit`.","uniqueKey":"details","typeLabel":"object"},"request_id":{"type":"string","description":"On `500 server_error` only: the same id as the `X-Request-Id` header. A 500 carries a generic `error` message, never the underlying cause, so quote this id to support.","uniqueKey":"request_id","typeLabel":"string"},"error_details":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error_details.additionalProperties","typeLabel":"string"},"description":"Extra detail on some refusals, as string values: `field` names the offending body field on `unknown_field`, `validation_failed` and the `invalid_*` codes; `price_below_minimum` carries `minimum_price_minor` and `currency`; `registration_external` carries `registration_url`.","uniqueKey":"error_details","typeLabel":"object"}},"required":["code","message","error","error_code"],"description":"The Laces error envelope.","uniqueKey":"","typeLabel":"object"},"examples":{"sale_closed":{"title":"sale_closed","summary":"sale_closed","value":{"code":409,"message":"Conflict","error":"Registration is closed","error_code":"sale_closed"}}},"exampleType":"examples"}},"headers":{"X-Request-Id":{"description":"Unique id of this request (`req_…`). On every response, readable from browsers. Quote it to support.","schema":{"type":"string"},"example":"req_V1StGXR8Z5jdHi6BmyTq"}},"exampleType":"examples"},"741ca95b-e7a8-4d9f-89e7-b114009f33ba":{"description":"The body is over 1 MB.","headers":{"X-Request-Id":{"description":"Unique id of this request (`req_…`). On every response, readable from browsers. Quote it to support.","schema":{"type":"string"},"example":"req_V1StGXR8Z5jdHi6BmyTq"}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status, repeated in the body.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Short outcome. Do not branch on it; it may be reworded.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","description":"Human-readable detail. May be reworded; never parse it.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","description":"Stable machine-readable code. **Branch on this.** Present on every Partner API error, including `429 rate_limited`, `404 not_found` for unknown routes and `500 server_error`. See the [error reference](/concepts/errors).","isRequired":true,"uniqueKey":"error_code","typeLabel":"string"},"details":{"type":"object","properties":{"retry_after_seconds":{"type":"integer","uniqueKey":"details.retry_after_seconds","typeLabel":"integer"},"masked_msisdn":{"type":"string","description":"`charge_pending_same_number` only: the number, masked to its last digits.","uniqueKey":"details.masked_msisdn","typeLabel":"string"},"network":{"type":"string","description":"`charge_pending_same_number` only, when known.","uniqueKey":"details.network","typeLabel":"string"}},"description":"Only on `409 prompt_in_progress`, `409 charge_pending_same_number` and `429 payer_prompt_limit`.","uniqueKey":"details","typeLabel":"object"},"request_id":{"type":"string","description":"On `500 server_error` only: the same id as the `X-Request-Id` header. A 500 carries a generic `error` message, never the underlying cause, so quote this id to support.","uniqueKey":"request_id","typeLabel":"string"},"error_details":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error_details.additionalProperties","typeLabel":"string"},"description":"Extra detail on some refusals, as string values: `field` names the offending body field on `unknown_field`, `validation_failed` and the `invalid_*` codes; `price_below_minimum` carries `minimum_price_minor` and `currency`; `registration_external` carries `registration_url`.","uniqueKey":"error_details","typeLabel":"object"}},"required":["code","message","error","error_code"],"description":"The Laces error envelope.","uniqueKey":"","typeLabel":"object"},"examples":{"payload_too_large":{"title":"payload_too_large","summary":"payload_too_large","value":{"code":413,"message":"Validation failed","error":"The request body is too large","error_code":"payload_too_large"}}},"exampleType":"examples"}},"exampleType":"examples"},"58428ae7-d97d-449c-86d5-ffcac1d3e35e":{"description":"Rate limited. Wait `Retry-After` seconds. Limits are per API client (reads about 300 a minute, writes about 60) and, for publishable keys, also per IP (about 120 a minute).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying. Readable from browsers.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Unique id of this request (`req_…`). On every response, readable from browsers. Quote it to support.","schema":{"type":"string"},"example":"req_V1StGXR8Z5jdHi6BmyTq"}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status, repeated in the body.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Short outcome. Do not branch on it; it may be reworded.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","description":"Human-readable detail. May be reworded; never parse it.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","description":"Stable machine-readable code. **Branch on this.** Present on every Partner API error, including `429 rate_limited`, `404 not_found` for unknown routes and `500 server_error`. See the [error reference](/concepts/errors).","isRequired":true,"uniqueKey":"error_code","typeLabel":"string"},"details":{"type":"object","properties":{"retry_after_seconds":{"type":"integer","uniqueKey":"details.retry_after_seconds","typeLabel":"integer"},"masked_msisdn":{"type":"string","description":"`charge_pending_same_number` only: the number, masked to its last digits.","uniqueKey":"details.masked_msisdn","typeLabel":"string"},"network":{"type":"string","description":"`charge_pending_same_number` only, when known.","uniqueKey":"details.network","typeLabel":"string"}},"description":"Only on `409 prompt_in_progress`, `409 charge_pending_same_number` and `429 payer_prompt_limit`.","uniqueKey":"details","typeLabel":"object"},"request_id":{"type":"string","description":"On `500 server_error` only: the same id as the `X-Request-Id` header. A 500 carries a generic `error` message, never the underlying cause, so quote this id to support.","uniqueKey":"request_id","typeLabel":"string"},"error_details":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error_details.additionalProperties","typeLabel":"string"},"description":"Extra detail on some refusals, as string values: `field` names the offending body field on `unknown_field`, `validation_failed` and the `invalid_*` codes; `price_below_minimum` carries `minimum_price_minor` and `currency`; `registration_external` carries `registration_url`.","uniqueKey":"error_details","typeLabel":"object"}},"required":["code","message","error","error_code"],"description":"The Laces error envelope.","uniqueKey":"","typeLabel":"object"},"example":{"code":429,"message":"Too many requests, please slow down","error":"rate_limited","error_code":"rate_limited"},"examples":{"Example":{"title":"Example","value":{"code":429,"message":"Too many requests, please slow down","error":"rate_limited","error_code":"rate_limited"}}},"exampleType":"examples"}},"exampleType":"examples"},"a41eafbb-0349-4662-8ed8-cf3ea019a3fc":{"description":"Unexpected failure. Retry with backoff, reusing the same `Idempotency-Key`.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status, repeated in the body.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Short outcome. Do not branch on it; it may be reworded.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","description":"Human-readable detail. May be reworded; never parse it.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","description":"Stable machine-readable code. **Branch on this.** Present on every Partner API error, including `429 rate_limited`, `404 not_found` for unknown routes and `500 server_error`. See the [error reference](/concepts/errors).","isRequired":true,"uniqueKey":"error_code","typeLabel":"string"},"details":{"type":"object","properties":{"retry_after_seconds":{"type":"integer","uniqueKey":"details.retry_after_seconds","typeLabel":"integer"},"masked_msisdn":{"type":"string","description":"`charge_pending_same_number` only: the number, masked to its last digits.","uniqueKey":"details.masked_msisdn","typeLabel":"string"},"network":{"type":"string","description":"`charge_pending_same_number` only, when known.","uniqueKey":"details.network","typeLabel":"string"}},"description":"Only on `409 prompt_in_progress`, `409 charge_pending_same_number` and `429 payer_prompt_limit`.","uniqueKey":"details","typeLabel":"object"},"request_id":{"type":"string","description":"On `500 server_error` only: the same id as the `X-Request-Id` header. A 500 carries a generic `error` message, never the underlying cause, so quote this id to support.","uniqueKey":"request_id","typeLabel":"string"},"error_details":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error_details.additionalProperties","typeLabel":"string"},"description":"Extra detail on some refusals, as string values: `field` names the offending body field on `unknown_field`, `validation_failed` and the `invalid_*` codes; `price_below_minimum` carries `minimum_price_minor` and `currency`; `registration_external` carries `registration_url`.","uniqueKey":"error_details","typeLabel":"object"}},"required":["code","message","error","error_code"],"description":"The Laces error envelope.","uniqueKey":"","typeLabel":"object"},"examples":{"server_error":{"title":"server_error","summary":"server_error","value":{"code":500,"message":"An unexpected error occurred","error":"Something went wrong","error_code":"server_error"}}},"exampleType":"examples"}},"headers":{"X-Request-Id":{"description":"Unique id of this request (`req_…`). On every response, readable from browsers. Quote it to support.","schema":{"type":"string"},"example":"req_V1StGXR8Z5jdHi6BmyTq"}},"exampleType":"examples"}},"security":{"2db93995-23b2-43a3-a93b-69c1a8365c42":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"LCSTOK-…-X (opaque)","description":"A token from `POST /oauth/token`, valid 1 hour. Paste it as `LCSTOK-…-X` (without the word Bearer).","scopes":[],"schemeName":"bearerAuth"}},"94b3e13f-b5e8-41f3-9bcf-11a6237917e5":{"oauth2":{"type":"oauth2","description":"OAuth 2.0 client credentials. The token it yields is the `bearerAuth` token.","flows":{"clientCredentials":{"tokenUrl":"https://connect.laces.run/v1/oauth/token","scopes":{"events:read":"List and read events","orders:write":"Create and pay orders","orders:read":"List and read orders, including buyer personal data (off by default)","checkout_sessions:write":"Create and read checkout sessions","events:write":"Create, price and publish events, and set a registration URL (off by default)","payments:write":"Create and quote payments for sales on your own site (off by default; Laces must also turn payments on for the organization)"}}},"scopes":["checkout_sessions:write"],"schemeName":"oauth2"}},"40ed5662-e3fd-4330-af74-c107c95b80ae":{"publishableKey":{"type":"apiKey","in":"header","name":"X-Laces-Publishable-Key","description":"Browser-safe key `LCSPUBK-…-X`. Only works from a browser whose `Origin` is one of your allowed domains, and is capped to `events:read` and creating checkout sessions. **\"Try it\" with a publishable key fails in this playground** (`403 origin_not_allowed`): the request carries no allowed `Origin`. Use a bearer token here.","scopes":[],"schemeName":"publishableKey"}}},"servers":{"587e6dc1-a599-465d-a265-5a773e6941ad":{"url":"https://connect.laces.run/v1","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"LCSTOK-…-X (opaque)","description":"A token from `POST /oauth/token`, valid 1 hour. Paste it as `LCSTOK-…-X` (without the word Bearer).","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A token from `POST /oauth/token`, valid 1 hour. Paste it as `LCSTOK-…-X` (without the word Bearer).","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"},{"schemes":[{"scheme":{"type":"oauth2","description":"OAuth 2.0 client credentials. The token it yields is the `bearerAuth` token.","flows":{"clientCredentials":{"tokenUrl":"https://connect.laces.run/v1/oauth/token","scopes":{"events:read":"List and read events","orders:write":"Create and pay orders","orders:read":"List and read orders, including buyer personal data (off by default)","checkout_sessions:write":"Create and read checkout sessions","events:write":"Create, price and publish events, and set a registration URL (off by default)","payments:write":"Create and quote payments for sales on your own site (off by default; Laces must also turn payments on for the organization)"}}},"scopes":["checkout_sessions:write"],"schemeName":"oauth2"},"schema":{"title":"OAuth2 Auth","type":"string","isRequired":true,"description":"OAuth 2.0 client credentials. The token it yields is the `bearerAuth` token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"oauth2","name":"Authorization"}],"title":"oauth2"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-Laces-Publishable-Key","description":"Browser-safe key `LCSPUBK-…-X`. Only works from a browser whose `Origin` is one of your allowed domains, and is capped to `events:read` and creating checkout sessions. **\"Try it\" with a publishable key fails in this playground** (`403 origin_not_allowed`): the request carries no allowed `Origin`. Use a bearer token here.","scopes":[],"schemeName":"publishableKey"},"schema":{"title":"X-Laces-Publishable-Key","type":"string","description":"Browser-safe key `LCSPUBK-…-X`. Only works from a browser whose `Origin` is one of your allowed domains, and is capped to `events:read` and creating checkout sessions. **\"Try it\" with a publishable key fails in this playground** (`403 origin_not_allowed`): the request carries no allowed `Origin`. Use a bearer token here.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"publishableKey","name":"X-Laces-Publishable-Key"}],"title":"publishableKey"}]},"originalFileLocation":"api-reference/v1/openapi.json"},"subdomain":"laces","siteName":"Laces","title":"Create a hosted or embedded checkout session - Laces","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v1":{"href":"/api-reference/v1/checkout-sessions/create","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T13:07:36.488Z","gitLastModified":"2026-11-24T13:07:26.000Z","originalFileLocation":"api-reference/v1/checkout-sessions/create.mdx"},"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=\"POST /checkout-sessions: start hosted or embedded Laces checkout for one event and get the checkout URL to send the participant to.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Laces\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/laces/ItlQWtu6tZOzyBAg/_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/laces/ItlQWtu6tZOzyBAg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/laces/ItlQWtu6tZOzyBAg/_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/laces/ItlQWtu6tZOzyBAg/_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/laces/ItlQWtu6tZOzyBAg/_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/laces/ItlQWtu6tZOzyBAg/_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/laces/ItlQWtu6tZOzyBAg/_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/laces/ItlQWtu6tZOzyBAg/_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/laces/ItlQWtu6tZOzyBAg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a hosted or embedded checkout session - Laces\">\u003cmeta data-mint-head property=\"og:description\" content=\"POST /checkout-sessions: start hosted or embedded Laces checkout for one event and get the checkout URL to send the participant to.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Laces Partner API Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.laces.run/api-reference/v1/checkout-sessions/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.laces.run/images/og-docs.png\">\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=\"Create a hosted or embedded checkout session - Laces\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"POST /checkout-sessions: start hosted or embedded Laces checkout for one event and get the checkout URL to send the participant to.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.laces.run/images/og-docs.png\">\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/laces/ItlQWtu6tZOzyBAg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Laces\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3F7A12\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.laces.run/api-reference/v1/checkout-sessions/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/v1/checkout-sessions/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://laces.run/#organization\",\"name\":\"Laces\",\"url\":\"https://laces.run\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/laces/TvNmP5tvH8tqleQI/logo/light.svg?fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=59fec4e8ca5a456634120acc1591b0e3\"},\"sameAs\":[\"https://www.wikidata.org/wiki/Q141960146\",\"https://www.instagram.com/lacesdotrun/\",\"https://x.com/lacesdotrun\",\"https://play.google.com/store/apps/details?id=com.apteza.laces\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.laces.run#website\",\"name\":\"Laces\",\"url\":\"https://docs.laces.run\",\"publisher\":{\"@id\":\"https://laces.run/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.laces.run/api-reference/v1/checkout-sessions/create#webpage\",\"url\":\"https://docs.laces.run/api-reference/v1/checkout-sessions/create\",\"name\":\"Create a hosted or embedded checkout session\",\"description\":\"POST /checkout-sessions: start hosted or embedded Laces checkout for one event and get the checkout URL to send the participant to.\",\"dateModified\":\"2026-11-24T13:07:26.000Z\",\"isPartOf\":{\"@id\":\"https://docs.laces.run#website\"},\"breadcrumb\":{\"@id\":\"https://docs.laces.run/api-reference/v1/checkout-sessions/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.laces.run/api-reference/v1/checkout-sessions/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Laces\",\"item\":\"https://docs.laces.run\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a hosted or embedded checkout session\",\"item\":\"https://docs.laces.run/api-reference/v1/checkout-sessions/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.laces.run/api-reference/v1/checkout-sessions/create#apireference\",\"headline\":\"Create a hosted or embedded checkout session\",\"name\":\"Create a hosted or embedded checkout session\",\"description\":\"POST /checkout-sessions: start hosted or embedded Laces checkout for one event and get the checkout URL to send the participant to.\",\"url\":\"https://docs.laces.run/api-reference/v1/checkout-sessions/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.laces.run/api-reference/v1/checkout-sessions/create#webpage\"},\"image\":\"https://docs.laces.run/images/og-docs.png\",\"dateModified\":\"2026-11-24T13:07:26.000Z\",\"publisher\":{\"@id\":\"https://laces.run/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.laces.run#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Laces\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Laces\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/v1/checkout-sessions/create.md","siteName":"Laces","nav":{"global":null,"tabs":[{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","icon":"square-terminal","versions":[{"version":"v1","default":true,"groups":[{"group":"Overview","pages":[{"title":"Laces Partner API v1 reference: base URL and auth","sidebarTitle":"Introduction","href":"/api-reference/v1/introduction"},{"title":"Health check: Laces API liveness probe","sidebarTitle":"Health check","openapi":"api-reference/v1/openapi.json GET /health","href":"/api-reference/v1/health"}]},{"group":"Authentication","pages":[{"title":"Create an OAuth access token (client credentials)","sidebarTitle":"Create an access token","openapi":"api-reference/v1/openapi.json POST /oauth/token","href":"/api-reference/v1/oauth/token"}]},{"group":"Events","pages":[{"title":"List on-sale events with ticket types and prices","sidebarTitle":"List events","openapi":"api-reference/v1/openapi.json GET /events","href":"/api-reference/v1/events/list"},{"title":"Get an event with its ticket types and fees","sidebarTitle":"Get an event","openapi":"api-reference/v1/openapi.json GET /events/{eventId}","href":"/api-reference/v1/events/get"},{"title":"Create a draft event with the Laces API","sidebarTitle":"Create an event","openapi":"api-reference/v1/openapi.json POST /events","href":"/api-reference/v1/events/create"},{"title":"Add a paid ticket type to a Laces event","sidebarTitle":"Add a ticket type","openapi":"api-reference/v1/openapi.json POST /events/{eventId}/ticket-types","href":"/api-reference/v1/events/create-ticket-type"},{"title":"Publish an event and open registration","sidebarTitle":"Publish an event","openapi":"api-reference/v1/openapi.json POST /events/{eventId}/publish","href":"/api-reference/v1/events/publish"},{"title":"Set or clear an event's registration URL","sidebarTitle":"Set or clear the registration URL","openapi":"api-reference/v1/openapi.json PATCH /events/{eventId}","description":"PATCH /events/{eventId}: send buyers to your own registration site, or return the event to Laces registration. Needs events:write.","href":"/api-reference/v1/events/update"}]},{"group":"Checkout sessions","pages":[{"title":"Create a hosted or embedded checkout session","sidebarTitle":"Create a checkout session","openapi":"api-reference/v1/openapi.json POST /checkout-sessions","href":"/api-reference/v1/checkout-sessions/create"},{"title":"Get a checkout session and verify completion","sidebarTitle":"Get a checkout session","openapi":"api-reference/v1/openapi.json GET /checkout-sessions/{id}","description":"GET /checkout-sessions/{id}: verify on your server whether a hosted or embedded Laces checkout was completed, before you fulfil the order.","href":"/api-reference/v1/checkout-sessions/get"}]},{"group":"Payments","pages":[{"title":"Quote a payment: fee and total per method","sidebarTitle":"Quote a payment","openapi":"api-reference/v1/openapi.json POST /payments/quote","href":"/api-reference/v1/payments/quote"},{"title":"Create a payment for a sale on your own site","sidebarTitle":"Create a payment","openapi":"api-reference/v1/openapi.json POST /payments","href":"/api-reference/v1/payments/create"}]},{"group":"Orders","pages":[{"title":"Create an order and hold registration places","sidebarTitle":"Create an order","openapi":"api-reference/v1/openapi.json POST /orders","href":"/api-reference/v1/orders/create"},{"title":"Pay an order: mobile money prompt, card or free","sidebarTitle":"Pay an order","openapi":"api-reference/v1/openapi.json POST /orders/{orderId}/pay","href":"/api-reference/v1/orders/pay"},{"title":"List your organization's orders, newest first","sidebarTitle":"List orders","openapi":"api-reference/v1/openapi.json GET /orders","href":"/api-reference/v1/orders/list"},{"title":"Get an order with registrations and payment status","sidebarTitle":"Get an order","openapi":"api-reference/v1/openapi.json GET /orders/{orderId}","href":"/api-reference/v1/orders/get"}]},{"group":"Webhook events","pages":[{"title":"order.paid webhook: order payment confirmed","sidebarTitle":"order.paid","openapi":"api-reference/v1/openapi.json webhook order.paid","href":"/api-reference/v1/webhooks/order-paid"},{"title":"order.failed webhook: payment failed or expired","sidebarTitle":"order.failed","openapi":"api-reference/v1/openapi.json webhook order.failed","href":"/api-reference/v1/webhooks/order-failed"},{"title":"order.refunded webhook: refund completed","sidebarTitle":"order.refunded","openapi":"api-reference/v1/openapi.json webhook order.refunded","href":"/api-reference/v1/webhooks/order-refunded"},{"title":"ping webhook: test event for your endpoint","sidebarTitle":"ping","openapi":"api-reference/v1/openapi.json webhook ping","href":"/api-reference/v1/webhooks/ping"}]}]}]}]},"basePath":"","title":"Create a hosted or embedded checkout session - Laces","deploymentId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","buildId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B564ZPEC.js","snippetPresets-L1o8HcxD.js","utils-CztB6GTn.js","style-to-object-BY3JEAdk.js","utils-CvVTgJWk.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DYi6_847.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DthbVJn_.js","_Uint8Array-G4MDMcnE.js","isObject-FP1Yky1u.js","ApiExamples-BnQo4SxZ.js","usePlaygroundInputsStore-Dsmj0Yg6.js","shallow-Bp_wEvgz.js","isEqual-BwXlkqOR.js","CodeSnippets-D6Fi8DmN.js","CodeSnippet-DANVAYTI.js","use-playground-group-access-DaUWE1Sg.js","Page-Cwg6gQ2F.js","api-description-markdown-DFvICuUq.js","DynamicMarkdown-DHV3eOcf.js","SectionHeading-DLRZDaDn.js","MethodPill-CgqQYk5N.js","getPastedJson-k_txzq3J.js","Check2Icon-CO8ho5Tt.js","axios-CsQoIw0U.js","Markdown-C8ZpmBko.js","AssistantPageLink-AWAGfbYY.js","dist-CAcI43Vk.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}