Quickstart: your first Laces API call and checkout
Get your Laces API keys, list your events with one request and complete a real registration through Laces checkout in about ten minutes.
Selling tickets?
You’re in the right place. Carry on below.
Just collecting payments?
No Laces event needed. Go to Collect payments.
By the end of this page you’ll have fetched your organization’s events from
your terminal, sent yourself through a Laces checkout and verified the result
the way your server will.
Your API keys come from the Laces app. Open it on a computer at
app.laces.run, or download it for your phone at
laces.run/app. Sign in with an account that is an
owner or admin of your organization and open Settings → Developers.
That is the only place to create API keys and webhook endpoints: there is no
separate developer portal, and the Partner API has no routes for creating
them. If you can’t see Developers, your account isn’t an owner or admin.
You need: the Laces app (app.laces.run or laces.run/app) with owner or admin access to a Laces organization, a terminal with
curl, and a website you control on https to come back to (any page will
do, for example https://shop.example.com).
The Partner API has one environment: production. This walkthrough takes a
real registration. Use a free or low-price ticket on an unlisted test
event, and ask Laces to refund a paid one afterwards. See
Testing your integration.
Every key, token and id on this site is a made-up example value. Your real
keys are issued to you in the Laces app, under Settings → Developers.
1
Create a test event (2 minutes)
In the Laces app, create an event to test with: set its visibility to
unlisted so it stays off the public listings, open registration, and
add a free ticket type (or one at the lowest price you’re happy to pay). Your organization must be cleared to take payments for paid
tickets.
A 401 invalid_client means the id or secret is wrong (check for a missing
character or changed case). A 401 partner_credential_not_accepted means
you called a host other than connect.laces.run. See
Authentication.
Copy your test event’s event_id. (Events you create with the API
return theirs in the response; see
Create and publish events.) Then look at its
tickets and fees:
An empty list means your organization has no event that is open or
scheduled, public or unlisted, and not yet ended.
payments_enabled: false means your organization isn’t cleared to take
payments yet, so checkout will be refused with payments_disabled.
5
Start a checkout (2 minutes)
Create a hosted checkout session. Your server would make this call; here
it’s curl:
Open data.url in your browser, register with your own details, and pay
with mobile money (or confirm, for a free ticket). Laces sends you back to
https://shop.example.com/?session=LCSCS-….
The Laces checkout page that data.url opens, labelled with your organization's name.
400 invalid_return_url? The URL’s origin isn’t in Return URL domains
exactly as typed (scheme, host and port).
status: "complete" with order.status: "paid" means the registration is
paid. That’s a working checkout. If you paid for it, you can ask Laces to
refund it.
Never fulfil an order on the browser’s word alone. A redirect to your
success page, or an onSuccess callback in the page, is user experience,
not proof of payment. Anyone can type your success URL. Before you mark
anything paid, confirm it on your server: read the session with
GET /checkout-sessions/{id}
and require status: "complete", or act on a signed
order.paid webhook.
Next steps
Hosted checkout in depth
A Register button on your page, return URLs, client_reference_id and errors.
Webhooks
Get order.paid pushed to your server instead of asking.
Embedded checkout
The same checkout in a modal on your page, with laces.js.
Custom UI
Your own checkout form, with native mobile money.
Last modified on November 26, 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":"quickstart","slug":"/quickstart","pageMetadata":{"title":"Quickstart: your first Laces API call and checkout","sidebarTitle":"Quickstart","description":"Get your Laces API keys, list your events with one request and complete a real registration through Laces checkout in about ten minutes.","keywords":["quickstart","getting started","first request","checkout","tutorial"],"href":"/quickstart"},"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: \"Get your Laces API keys, list your events with one request and complete a real registration through Laces checkout in about ten minutes.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Card,CodeBlock,Columns,Frame,Heading,Info,OptimizedImage,Step,Steps,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Columns)_missingMdxReference(`Columns`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(Columns,{cols:2,children:[_jsx(Card,{title:`Selling tickets?`,icon:`ticket`,children:_jsx(_components.p,{children:`You’re in the right place. Carry on below.`})}),_jsx(Card,{title:`Just collecting payments?`,icon:`wallet`,href:`/guides/collect-payments`,children:_jsx(_components.p,{children:`No Laces event needed. Go to Collect payments.`})})]}),`\n`,_jsx(_components.p,{children:`By the end of this page you’ll have fetched your organization’s events from\nyour terminal, sent yourself through a Laces checkout and verified the result\nthe way your server will.`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Your API keys come from the Laces app.`}),` Open it on a computer at\n`,_jsx(_components.a,{href:`https://app.laces.run`,children:`app.laces.run`}),`, or download it for your phone at\n`,_jsx(_components.a,{href:`https://laces.run/app`,children:`laces.run/app`}),`. Sign in with an account that is an\n`,_jsx(_components.strong,{children:`owner or admin`}),` of your organization and open `,_jsx(_components.strong,{children:`Settings → Developers`}),`.\nThat is the only place to create API keys and webhook endpoints: there is no\nseparate developer portal, and the Partner API has no routes for creating\nthem. If you can’t see `,_jsx(_components.strong,{children:`Developers`}),`, your account isn’t an owner or admin.`]})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`You need:`}),` the Laces app (`,_jsx(_components.a,{href:`https://app.laces.run`,children:`app.laces.run`}),` or `,_jsx(_components.a,{href:`https://laces.run/app`,children:`laces.run/app`}),`) with owner or admin access to a Laces organization, a terminal with\n`,_jsx(_components.code,{children:`curl`}),`, and a website you control on `,_jsx(_components.code,{children:`https`}),` to come back to (any page will\ndo, for example `,_jsx(_components.code,{children:`https://shop.example.com`}),`).`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The Partner API has one environment: production. This walkthrough takes a\n`,_jsx(_components.strong,{children:`real`}),` registration. Use a free or low-price ticket on an unlisted test\nevent, and `,_jsx(_components.a,{href:`/concepts/fees#refunds`,children:`ask Laces to refund`}),` a paid one afterwards. See\n`,_jsx(_components.a,{href:`/concepts/testing`,children:`Testing your integration`}),`.`]})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Every key, token and id on this site is a made-up example value. Your real\nkeys are issued to you in the Laces app, under `,_jsx(_components.strong,{children:`Settings → Developers`}),`.`]})}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Create a test event (2 minutes)`,children:_jsxs(_components.p,{children:[`In the Laces app, create an event to test with: set its visibility to\n`,_jsx(_components.strong,{children:`unlisted`}),` so it stays off the public listings, open registration, and\nadd a free ticket type (or one at the lowest price you’re happy to pay). Your organization must be cleared to take payments for paid\ntickets.`]})}),_jsxs(Step,{title:`Get your keys (2 minutes)`,children:[_jsxs(_components.p,{children:[`In the Laces app (open `,_jsx(_components.a,{href:`https://app.laces.run`,children:`app.laces.run`}),` or `,_jsx(_components.a,{href:`https://laces.run/app`,children:`download it`}),`): `,_jsx(_components.strong,{children:`Settings → Developers → Create API key`}),`.`]}),_jsx(Frame,{caption:`Settings → Get help → Developers`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/laces/TvNmP5tvH8tqleQI/images/app/settings-developers-tile.png?fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=3d7a5800a8fdf080ca4be78062bb260a`,alt:`The Laces app Settings screen showing the Developers tile below the Get help section`,\"data-og-width\":`1206`,width:`1206`,\"data-og-height\":`1800`,height:`1800`,\"data-path\":`images/app/settings-developers-tile.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/laces/TvNmP5tvH8tqleQI/images/app/settings-developers-tile.png?w=280\u0026fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=edc06c617618cd2644cd348b6563ea88 280w, https://mintcdn.com/laces/TvNmP5tvH8tqleQI/images/app/settings-developers-tile.png?w=560\u0026fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=db3f5e505adf44cd1d4e879ce23c556d 560w, https://mintcdn.com/laces/TvNmP5tvH8tqleQI/images/app/settings-developers-tile.png?w=840\u0026fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=d2b9017f6a1e38ff25e56aa45091d372 840w, https://mintcdn.com/laces/TvNmP5tvH8tqleQI/images/app/settings-developers-tile.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=676bb9fa73dcd22cb926ac089ad7dc67 1100w, https://mintcdn.com/laces/TvNmP5tvH8tqleQI/images/app/settings-developers-tile.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=34e2cc81670c8ffdf449cc18054716c5 1650w, https://mintcdn.com/laces/TvNmP5tvH8tqleQI/images/app/settings-developers-tile.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=ab4d03850b22fdfcd127cd108dd4d071 2500w`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Name`}),`: “Quickstart”.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Permissions`}),`: leave the defaults (Read events, Create orders, Start\nhosted checkout).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Return URL domains`}),`: add your site’s origin, for example\n`,_jsx(_components.code,{children:`https://shop.example.com`}),`.`]}),`\n`]}),_jsxs(_components.p,{children:[`Tap `,_jsx(_components.strong,{children:`Create key`}),`, then `,_jsx(_components.strong,{children:`Copy all`}),`. The secret is shown once. In your\nterminal:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` LACES_BASE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://connect.laces.run/v1\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` LACES_CLIENT_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LCSCLI-EXAMPLECLNT2345EXAMP\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` LACES_CLIENT_SECRET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LCSSECK-EXAMPLESECRET2345678EXAMPLESECRET2345678EXAMPLESECRE-X\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` LACES_PK`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LCSPUBK-ABCDEFGHJKLMNPQRSTUVWXYZ23456789-X\"`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Details: `,_jsx(_components.a,{href:`/api-keys`,children:`Getting your API keys`}),`.`]})]}),_jsxs(Step,{title:`Get an access token (1 minute)`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$LACES_BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/oauth/token\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -u`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$LACES_CLIENT_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$LACES_CLIENT_SECRET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"grant_type=client_credentials\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"access_token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LCSTOK-EXAMPLETKN23456789EXAMPLETKN23456789EXAMPLETKN234567-X\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"token_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expires_in\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3600`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"scope\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"events:read orders:write checkout_sessions:write\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` TOKEN`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cpaste access_token here>\"`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`401 invalid_client`}),` means the id or secret is wrong (check for a missing\ncharacter or changed case). A `,_jsx(_components.code,{children:`401 partner_credential_not_accepted`}),` means\nyou called a host other than `,_jsx(_components.code,{children:`connect.laces.run`}),`. See\n`,_jsx(_components.a,{href:`/authentication`,children:`Authentication`}),`.`]})]}),_jsxs(Step,{title:`List your events (1 minute)`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$LACES_BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/events\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Events retrieved successfully\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"events\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"event_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"q3Zk9mVx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Quickstart test run\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"open\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"visibility\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unlisted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"starts_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-15T04:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"UGX\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payments_enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"has_more\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Copy your test event’s `,_jsx(_components.code,{children:`event_id`}),`. (Events you create with the API\nreturn theirs in the response; see\n`,_jsx(_components.a,{href:`/guides/create-events`,children:`Create and publish events`}),`.) Then look at its\ntickets and fees:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$LACES_BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/events/q3Zk9mVx\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`An empty list means your organization has no event that is open or\nscheduled, public or unlisted, and not yet ended.\n`,_jsx(_components.code,{children:`payments_enabled: false`}),` means your organization isn’t cleared to take\npayments yet, so checkout will be refused with `,_jsx(_components.code,{children:`payments_disabled`}),`.`]})]}),_jsxs(Step,{title:`Start a checkout (2 minutes)`,children:[_jsx(_components.p,{children:`Create a hosted checkout session. Your server would make this call; here\nit’s curl:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$LACES_BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/checkout-sessions\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"event_id\": \"q3Zk9mVx\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"on_success_url\": \"https://shop.example.com/?session={CHECKOUT_SESSION_ID}\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"on_cancel_url\": \"https://shop.example.com/\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`201`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Checkout session created successfully\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LCSCS-EXAMPLESESSN234EXAMPL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://laces.run/checkout/LCSCS-EXAMPLESESSN234EXAMPL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expires_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-02T09:30:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ui_mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"redirect\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Open `,_jsx(_components.code,{children:`data.url`}),` in your browser, register with your own details, and pay\nwith mobile money (or confirm, for a free ticket). Laces sends you back to\n`,_jsx(_components.code,{children:`https://shop.example.com/?session=LCSCS-…`}),`.`]}),_jsx(Frame,{caption:`The Laces checkout page that data.url opens, labelled with your organization's name.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/laces/TvNmP5tvH8tqleQI/images/hosted/checkout-form-prefilled.png?fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=00e9b02f80b20da611a124604ff055b1`,alt:`Laces checkout headed 'Checkout for Kampala Road Runners' with a Register and Pay form`,\"data-og-width\":`1130`,width:`1130`,\"data-og-height\":`713`,height:`713`,\"data-path\":`images/hosted/checkout-form-prefilled.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/laces/TvNmP5tvH8tqleQI/images/hosted/checkout-form-prefilled.png?w=280\u0026fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=36206e7c934f3bc3b3471b906ffbd32a 280w, https://mintcdn.com/laces/TvNmP5tvH8tqleQI/images/hosted/checkout-form-prefilled.png?w=560\u0026fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=6e3ef352041906b64f1492cb7f986220 560w, https://mintcdn.com/laces/TvNmP5tvH8tqleQI/images/hosted/checkout-form-prefilled.png?w=840\u0026fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=b6007fe87b7bedbe4f8cb001cebfe07d 840w, https://mintcdn.com/laces/TvNmP5tvH8tqleQI/images/hosted/checkout-form-prefilled.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=7396f0980fc32fa04983a31920d344ac 1100w, https://mintcdn.com/laces/TvNmP5tvH8tqleQI/images/hosted/checkout-form-prefilled.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=aae2f16dd2de9b36e252f3e3be8b7039 1650w, https://mintcdn.com/laces/TvNmP5tvH8tqleQI/images/hosted/checkout-form-prefilled.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TvNmP5tvH8tqleQI\u0026q=85\u0026s=99a9c21a75c6764b6f26921b4e69749d 2500w`})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`400 invalid_return_url`}),`? The URL’s origin isn’t in `,_jsx(_components.strong,{children:`Return URL domains`}),`\nexactly as typed (scheme, host and port).`]})]}),_jsxs(Step,{title:`Verify the result (1 minute)`,children:[_jsx(_components.p,{children:`Your server confirms the result. Here it’s curl:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$LACES_BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/checkout-sessions/LCSCS-EXAMPLESESSN234EXAMPL\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Checkout session retrieved successfully\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LCSCS-EXAMPLESESSN234EXAMPL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"complete\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ui_mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"redirect\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"event_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"q3Zk9mVx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"client_reference_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"order\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hk2mQ8vR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LC-7K2M9X\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"paid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`52500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"UGX\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`status: \"complete\"`}),` with `,_jsx(_components.code,{children:`order.status: \"paid\"`}),` means the registration is\npaid. That’s a working checkout. If you paid for it, you can `,_jsx(_components.a,{href:`/concepts/fees#refunds`,children:`ask Laces to\nrefund it`}),`.`]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Never fulfil an order on the browser’s word alone.`}),` A redirect to your\nsuccess page, or an `,_jsx(_components.code,{children:`onSuccess`}),` callback in the page, is user experience,\nnot proof of payment. Anyone can type your success URL. Before you mark\nanything paid, confirm it on your `,_jsx(_components.strong,{children:`server`}),`: read the session with\n`,_jsx(_components.a,{href:`/api-reference/v1/checkout-sessions/get`,children:_jsx(_components.code,{children:`GET /checkout-sessions/{id}`})}),`\nand require `,_jsx(_components.code,{children:`status: \"complete\"`}),`, or act on a signed\n`,_jsxs(_components.a,{href:`/guides/webhooks`,children:[_jsx(_components.code,{children:`order.paid`}),` webhook`]}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(Columns,{cols:2,children:[_jsx(Card,{title:`Hosted checkout in depth`,icon:`arrow-up-right-from-square`,href:`/guides/hosted-checkout`,children:_jsxs(_components.p,{children:[`A Register button on your page, return URLs, `,_jsx(_components.code,{children:`client_reference_id`}),` and errors.`]})}),_jsx(Card,{title:`Webhooks`,icon:`bell`,href:`/guides/webhooks`,children:_jsxs(_components.p,{children:[`Get `,_jsx(_components.code,{children:`order.paid`}),` pushed to your server instead of asking.`]})}),_jsx(Card,{title:`Embedded checkout`,icon:`window-restore`,href:`/guides/embedded-checkout`,children:_jsxs(_components.p,{children:[`The same checkout in a modal on your page, with `,_jsx(_components.code,{children:`laces.js`}),`.`]})}),_jsx(Card,{title:`Custom UI`,icon:`code`,href:`/guides/custom-ui`,children:_jsx(_components.p,{children:`Your own checkout form, with native mobile money.`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Quickstart: your first Laces API call and checkout","sidebarTitle":"Quickstart","description":"Get your Laces API keys, list your events with one request and complete a real registration through Laces checkout in about ten minutes.","keywords":["quickstart","getting started","first request","checkout","tutorial"],"href":"/quickstart"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"laces","siteName":"Laces","title":"Quickstart: your first Laces API call and checkout - Laces","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-26T21:36:59.926Z","gitLastModified":"2026-11-26T21:36:49.000Z","originalFileLocation":"quickstart.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=\"Get your Laces API keys, list your events with one request and complete a real registration through Laces checkout in about ten minutes.\">\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=\"Quickstart: your first Laces API call and checkout - Laces\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get your Laces API keys, list your events with one request and complete a real registration through Laces checkout in about ten minutes.\">\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/quickstart\">\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=\"Quickstart: your first Laces API call and checkout - Laces\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get your Laces API keys, list your events with one request and complete a real registration through Laces checkout in about ten minutes.\">\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/quickstart\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/quickstart.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/quickstart#webpage\",\"url\":\"https://docs.laces.run/quickstart\",\"name\":\"Quickstart: your first Laces API call and checkout\",\"description\":\"Get your Laces API keys, list your events with one request and complete a real registration through Laces checkout in about ten minutes.\",\"dateModified\":\"2026-11-26T21:36:49.000Z\",\"isPartOf\":{\"@id\":\"https://docs.laces.run#website\"},\"breadcrumb\":{\"@id\":\"https://docs.laces.run/quickstart#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.laces.run/quickstart#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting started\",\"item\":\"https://docs.laces.run\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quickstart: your first Laces API call and checkout\",\"item\":\"https://docs.laces.run/quickstart\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.laces.run/quickstart#article\",\"headline\":\"Quickstart: your first Laces API call and checkout\",\"name\":\"Quickstart: your first Laces API call and checkout\",\"description\":\"Get your Laces API keys, list your events with one request and complete a real registration through Laces checkout in about ten minutes.\",\"url\":\"https://docs.laces.run/quickstart\",\"mainEntityOfPage\":{\"@id\":\"https://docs.laces.run/quickstart#webpage\"},\"image\":\"https://docs.laces.run/images/og-docs.png\",\"dateModified\":\"2026-11-26T21:36:49.000Z\",\"keywords\":\"quickstart, getting started, first request, checkout, tutorial\",\"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":"/quickstart.md","siteName":"Laces","nav":{"global":null,"tabs":[{"tab":"Guides","icon":"book-open","groups":[{"group":"Getting started","pages":[{"title":"Laces Partner API for event registration and payments","sidebarTitle":"Introduction","description":"Laces Partner API docs: list your events, take registrations and mobile money payments on your own site, with hosted, embedded or custom checkout.","href":""},{"title":"Quickstart: your first Laces API call and checkout","sidebarTitle":"Quickstart","href":"/quickstart"},{"title":"Get Laces API keys, scopes and allowed domains","sidebarTitle":"Getting your API keys","description":"Create a Laces API key in the organizer app, copy the one-time secret, choose scopes and allowed domains, then regenerate or revoke the key later.","href":"/api-keys"},{"title":"Laces API authentication: OAuth and publishable keys","sidebarTitle":"Authentication","href":"/authentication"}]},{"group":"Payments only","pages":[{"title":"Collect payments on your own site with Laces","sidebarTitle":"Overview and quickstart","href":"/guides/collect-payments"},{"title":"Mobile money payments on your site with Laces","sidebarTitle":"Mobile money","href":"/payments/mobile-money"},{"title":"Card payments and return URLs with Laces","sidebarTitle":"Card and return URLs","href":"/payments/card"},{"title":"Payment countries and currencies with Laces","sidebarTitle":"Countries and currencies","href":"/payments/countries-and-currencies"},{"title":"Webhooks for payments: verify and fulfil once","sidebarTitle":"Webhooks","href":"/payments/webhooks"},{"title":"Payment errors: every error_code and what to do","sidebarTitle":"Errors","href":"/payments/errors"},{"title":"Payments only: going live checklist for Laces","sidebarTitle":"Going live","href":"/payments/going-live"},{"title":"Move from event orders to payments only on Laces","sidebarTitle":"Move from event orders","href":"/payments/move-from-event-orders"}]},{"group":"Integration guides","pages":[{"title":"Hosted checkout: send participants to Laces to pay","sidebarTitle":"Hosted checkout","href":"/guides/hosted-checkout"},{"title":"Embedded checkout: a Laces checkout modal with laces.js","sidebarTitle":"Embedded checkout","href":"/guides/embedded-checkout"},{"title":"Custom UI: build your own checkout on the Laces API","sidebarTitle":"Custom UI","href":"/guides/custom-ui"},{"title":"Create and publish events with the Laces API","sidebarTitle":"Create and publish events","href":"/guides/create-events"},{"title":"Brand your Laces checkout: color, logo and theme","sidebarTitle":"Brand your checkout","href":"/guides/branding"},{"title":"Laces webhooks: verify signatures and handle events","sidebarTitle":"Webhooks","href":"/guides/webhooks"}]},{"group":"Concepts","pages":[{"title":"Laces API scopes: what each key permission allows","sidebarTitle":"Scopes","href":"/concepts/scopes"},{"title":"Laces API errors: error codes and HTTP statuses","sidebarTitle":"Errors","href":"/concepts/errors"},{"title":"Idempotency keys: retry Laces API requests safely","sidebarTitle":"Idempotency","href":"/concepts/idempotency"},{"title":"Pagination: cursor-based paging in the Laces API","sidebarTitle":"Pagination","href":"/concepts/pagination"},{"title":"Laces API rate limits and handling 429 responses","sidebarTitle":"Rate limits","href":"/concepts/rate-limits"},{"title":"Testing your Laces integration without a sandbox","sidebarTitle":"Testing your integration","href":"/concepts/testing"},{"title":"Fees and totals: what participants pay on Laces","sidebarTitle":"Fees and totals","href":"/concepts/fees"}]},{"group":"Launch","pages":[{"title":"Going live: Laces API integration launch checklist","sidebarTitle":"Going live","href":"/going-live"},{"title":"Laces Partner API changelog and release notes","sidebarTitle":"Changelog","href":"/changelog"}]}]},{"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}","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}","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":"Quickstart: your first Laces API call and checkout - Laces","deploymentId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","buildId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-B7jmggek.js","DynamicMarkdown-DHV3eOcf.js","zoom-image-lightbox-CK2spQ6G.js","lightbox-handle-r17bVUz3.js"]}