POST /payments: create a Laces payment for something sold on your own site, with no event. Nothing is charged until you pay the order. Needs payments:write.
A token from POST /oauth/token, valid 1 hour. Paste it as LCSTOK-…-X (without the word Bearer).
Scopes
payments:write
Create and quote payments for sales on your own site (off by default; Laces must also turn payments on for the organization)
Headers
Idempotency-Key
string
required
Any unique string you generate (a UUID is ideal), stored with your cart and reused on every retry of the same action. Scoped to your API client.
Maximum string length: 255
Body
application/json
The organization comes from the token. Never send an organization id or an event id.
amount
integer
required
The item price before the Laces fee, a whole number in minor units of your organization's currency (UGX has none, so 50000 is UGX 50,000). The whole payment: send one summed amount.
Required range: x >= 1
Example:
50000
partner_reference
string
required
Your own id. One line. Laces does not check that it is unique.
Required string length: 1 - 128
Example:
"SHOP-ORDER-8812"
description
string
required
What was bought. One line, shown to the buyer in emails. No web address (:// or www.).
Required string length: 1 - 200
Example:
"Club jersey, size L"
customer
object
required
The buyer.
Show child attributes
currency
string
Optional. If sent, must be your organization's currency, else 400 currency_mismatch.
Example:
"UGX"
payer_country
string
Optional. The country the buyer pays from: one of UG, KE, GH, RW, ZM today. Sets the currency, fee and methods. Left out: your organization's country. Anything else is 400 unsupported_country.
Example:
"KE"
payment_method
enum<string>
Sets the fee, and can't be changed later. momo is mobile money (in Uganda: MTN), airtel is Airtel Money in Uganda (elsewhere the same price as momo). Left out: momo, or card for a US, GB or EU organization. Use only what the quote's payment_methods lists.
Available options:
momo,
airtel,
card
product
string
A grouping label: the same value for everything you want totalled together. No web address.
Maximum string length: 80
Example:
"jersey"
metadata
object
Your own data, flat, strings only, at most 4096 bytes of JSON. A key may not start and end with __. Returned on the order and webhooks, never shown to the buyer. Send ids, not personal data.
Show child attributes
Example:
{ "cart_id": "c-8812", "size": "L" }
source_url
string<uri>
The page on your site the buyer came from. Emails link to it. https, origin in the key's Return URL domains, not a link shortener or shared host. Without it, the key's default site is used.
Maximum string length: 2048
on_success_url
string<uri>
Where a card buyer returns after paying. Origin in the key's Return URL domains; at most 2048 characters with the order id and status added. {LACES_ORDER_ID} and {LACES_STATUS} are filled in; otherwise laces_order_id and laces_status are added to the query. Without it, the key's default is used. Never proof of payment.
Maximum string length: 2048
on_failure_url
string<uri>
Where a card buyer returns when the payment failed or they give up. Same rules as on_success_url.
Maximum string length: 2048
Response
Idempotent replay: the original payment.
code
integer
required
HTTP status, repeated in the body.
Example:
200
message
string
required
data
object
required
Show child attributes
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":"api-reference/v1/payments/create","slug":"/api-reference/v1/payments/create","pageMetadata":{"title":"Create a payment for a sale on your own site","sidebarTitle":"Create a payment","openapi":"api-reference/v1/openapi.json POST /payments","description":"POST /payments: create a Laces payment for something sold on your own site, with no event. Nothing is charged until you pay the order. Needs payments:write.","href":"/api-reference/v1/payments/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 /payments: create a Laces payment for something sold on your own site, with no event. Nothing is charged until you pay the order. Needs payments:write.\"\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 payment for a sale on your own site","sidebarTitle":"Create a payment","openapi":"api-reference/v1/openapi.json POST /payments","description":"POST /payments: create a Laces payment for something sold on your own site, with no event. Nothing is charged until you pay the order. Needs payments:write.","href":"/api-reference/v1/payments/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createPayment","tags":["Payments"],"summary":"Create a payment","description":"POST /payments: create a Laces payment for something sold on your own site, with no event. Nothing is charged until you pay the order. Needs payments:write.","security":["03cb811e-298d-4d2b-9672-70994ca57260","7665eb7b-0bb9-44cc-ad0d-2f84bf251767"],"parameters":["bae0fea8-1c7e-496e-82f6-5a196406a73a"],"requestBody":"26cab9ca-e832-4fa7-ac36-4561831e9060","responses":{"200":"78a088f1-f666-435d-a15f-d91c28f2bb04","201":"b8b29d7e-a65b-44ba-9060-df24af4720a8","400":"f516ad8d-45f5-484c-be2d-4e2966335844","401":"022e26a2-3eb9-47f1-bb40-d483aebe0554","403":"49056e5f-4fb1-4774-af43-e6740cc85c1a","404":"5531cefd-eb27-4578-a436-4c9593574974","409":"bac61455-d5ae-4520-b97f-8f231989de17","413":"8d059118-a134-40ca-923a-0a401801bee2","422":"92f1f8ed-5df1-4f38-8a78-382ca165b2e5","429":"6e5954c2-4a50-4b6a-87ab-79b60d1fe34e","500":"0cd344d0-0c40-4735-9cda-b69b751b50d6","503":"14e1e1c6-1832-43f2-bf24-9add3ec57029"},"method":"post","type":"path","servers":["587e6dc1-a599-465d-a265-5a773e6941ad"],"path":"/payments","baseUrlOptions":["https://connect.laces.run/v1"],"title":"Create a payment","codeSamples":[],"requestExampleLanguages":["bash","javascript","python","php"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.amount":50000,"body.partner_reference":"SHOP-ORDER-8812","body.description":"Club jersey, size L","body.customer.name":"Amina Nakato","body.customer.email":"amina@example.com","body.customer.phone":"+256763494235","body.currency":"UGX","body.payment_method":"momo","body.product":"jersey","body.metadata.cart_id":"c-8812","body.metadata.size":"L","body.source_url":"https://shop.example.com/jerseys/home","body.on_success_url":"https://shop.example.com/thanks","body.on_failure_url":"https://shop.example.com/cart"},{"body.amount":50000,"body.partner_reference":"SHOP-ORDER-8813","body.description":"Club jersey, size M","body.customer.name":"Amina Nakato","body.customer.email":"amina@example.com","body.customer.phone":"+256763494235","body.currency":"UGX","body.payment_method":"card","body.product":"jersey","body.metadata.cart_id":"c-8813","body.metadata.size":"M","body.source_url":"https://shop.example.com/jerseys/home","body.on_success_url":"https://shop.example.com/thanks","body.on_failure_url":"https://shop.example.com/cart"},{"body.amount":225000,"body.partner_reference":"REG-20417","body.description":"Camp 2026: 1 adult and 2 children","body.customer.name":"Amina Nakato","body.customer.email":"amina@example.com","body.customer.phone":"+256763494235","body.currency":"UGX","body.payment_method":"momo","body.product":"camp-2026","body.metadata.registration_id":"reg-20417","body.metadata.adults":"1","body.metadata.children":"2","body.source_url":"https://camp.example.org/register"},{"body.amount":50000,"body.partner_reference":"SHOP-ORDER-8814","body.description":"Club jersey, size S","body.customer.name":"Amina Nakato","body.customer.email":"amina@example.com","body.currency":"UGX","body.payer_country":"KE","body.payment_method":"momo","body.product":"jersey","body.metadata.cart_id":"c-8814","body.source_url":"https://shop.example.com/jerseys/home"}]},"dependencies":{"parameters":{"bae0fea8-1c7e-496e-82f6-5a196406a73a":{"name":"Idempotency-Key","in":"header","required":true,"description":"Any unique string you generate (a UUID is ideal), stored with your cart and **reused on every retry** of the same action. Scoped to your API client.","schema":{"type":"string","maxLength":255,"isRequired":true,"description":"Any unique string you generate (a UUID is ideal), stored with your cart and **reused on every retry** of the same action. Scoped to your API client.","uniqueKey":"","typeLabel":"string"},"example":"6f1c3c9e-2f4b-4c64-9a2f-0d1c5a8b7e11"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["amount","partner_reference","description","customer"],"description":"The organization comes from the token. Never send an organization id or an event id.","properties":{"amount":{"type":"integer","minimum":1,"description":"The item price **before the Laces fee**, a whole number in minor units of your organization's currency (UGX has none, so `50000` is UGX 50,000). The whole payment: send one summed amount.","examples":[50000],"isRequired":true,"uniqueKey":"amount","typeLabel":"integer"},"partner_reference":{"type":"string","minLength":1,"maxLength":128,"description":"Your own id. One line. Laces does not check that it is unique.","examples":["SHOP-ORDER-8812"],"isRequired":true,"uniqueKey":"partner_reference","typeLabel":"string"},"description":{"type":"string","minLength":1,"maxLength":200,"description":"What was bought. One line, shown to the buyer in emails. No web address (`://` or `www.`).","examples":["Club jersey, size L"],"isRequired":true,"uniqueKey":"description","typeLabel":"string"},"customer":{"type":"object","required":["name","email"],"description":"The buyer.","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"One line. No web address.","examples":["Amina Nakato"],"isRequired":true,"uniqueKey":"customer.name","typeLabel":"string"},"email":{"type":"string","format":"email","maxLength":254,"description":"The receipt goes here.","isRequired":true,"uniqueKey":"customer.email","typeLabel":"string\u003cemail>"},"phone":{"type":"string","maxLength":32,"description":"A contact, not the number charged. Send the country code (`+256763494235`): required for US, GB and EU organizations. A local number is read in `payer_country`, else in your organization's country.","examples":["+256763494235"],"uniqueKey":"customer.phone","typeLabel":"string"}},"isRequired":true,"uniqueKey":"customer","typeLabel":"object"},"currency":{"type":"string","description":"Optional. If sent, must be your organization's currency, else `400 currency_mismatch`.","examples":["UGX"],"uniqueKey":"currency","typeLabel":"string"},"payer_country":{"type":"string","description":"Optional. The country the buyer pays from: one of `UG`, `KE`, `GH`, `RW`, `ZM` today. Sets the currency, fee and methods. Left out: your organization's country. Anything else is `400 unsupported_country`.","examples":["KE"],"uniqueKey":"payer_country","typeLabel":"string"},"payment_method":{"type":"string","enum":["momo","airtel","card"],"description":"Sets the fee, and can't be changed later. `momo` is mobile money (in Uganda: MTN), `airtel` is Airtel Money in Uganda (elsewhere the same price as `momo`). Left out: `momo`, or `card` for a US, GB or EU organization. Use only what the quote's `payment_methods` lists.","uniqueKey":"payment_method","typeLabel":"enum\u003cstring>"},"product":{"type":"string","maxLength":80,"description":"A grouping label: the same value for everything you want totalled together. No web address.","examples":["jersey"],"uniqueKey":"product","typeLabel":"string"},"metadata":{"type":"object","maxProperties":20,"propertyNames":{"pattern":"^[A-Za-z0-9_.-]{1,40}$"},"additionalProperties":{"type":"string","maxLength":500,"uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"description":"Your own data, flat, strings only, at most 4096 bytes of JSON. A key may not start and end with `__`. Returned on the order and webhooks, never shown to the buyer. Send ids, not personal data.","examples":[{"cart_id":"c-8812","size":"L"}],"uniqueKey":"metadata","typeLabel":"object"},"source_url":{"type":"string","format":"uri","maxLength":2048,"description":"The page on your site the buyer came from. Emails link to it. `https`, origin in the key's Return URL domains, not a link shortener or shared host. Without it, the key's default site is used.","uniqueKey":"source_url","typeLabel":"string\u003curi>"},"on_success_url":{"type":"string","format":"uri","maxLength":2048,"description":"Where a card buyer returns after paying. Origin in the key's Return URL domains; at most 2048 characters with the order id and status added. `{LACES_ORDER_ID}` and `{LACES_STATUS}` are filled in; otherwise `laces_order_id` and `laces_status` are added to the query. Without it, the key's default is used. **Never proof of payment.**","uniqueKey":"on_success_url","typeLabel":"string\u003curi>"},"on_failure_url":{"type":"string","format":"uri","maxLength":2048,"description":"Where a card buyer returns when the payment failed or they give up. Same rules as `on_success_url`.","uniqueKey":"on_failure_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"product":{"title":"product","summary":"A product, mobile money","value":{"amount":50000,"currency":"UGX","payment_method":"momo","partner_reference":"SHOP-ORDER-8812","description":"Club jersey, size L","product":"jersey","customer":{"name":"Amina Nakato","email":"amina@example.com","phone":"+256763494235"},"metadata":{"cart_id":"c-8812","size":"L"},"source_url":"https://shop.example.com/jerseys/home","on_success_url":"https://shop.example.com/thanks","on_failure_url":"https://shop.example.com/cart"}},"card":{"title":"card","summary":"Card, with return URLs","value":{"amount":50000,"currency":"UGX","payment_method":"card","partner_reference":"SHOP-ORDER-8813","description":"Club jersey, size M","product":"jersey","customer":{"name":"Amina Nakato","email":"amina@example.com","phone":"+256763494235"},"metadata":{"cart_id":"c-8813","size":"M"},"source_url":"https://shop.example.com/jerseys/home","on_success_url":"https://shop.example.com/thanks","on_failure_url":"https://shop.example.com/cart"}},"own_event":{"title":"own_event","summary":"Several places at an event on your own site","value":{"amount":225000,"currency":"UGX","payment_method":"momo","partner_reference":"REG-20417","description":"Camp 2026: 1 adult and 2 children","product":"camp-2026","customer":{"name":"Amina Nakato","email":"amina@example.com","phone":"+256763494235"},"metadata":{"registration_id":"reg-20417","adults":"1","children":"2"},"source_url":"https://camp.example.org/register"}},"other_country":{"title":"other_country","summary":"A buyer in another country","value":{"amount":50000,"currency":"UGX","payer_country":"KE","payment_method":"momo","partner_reference":"SHOP-ORDER-8814","description":"Club jersey, size S","product":"jersey","customer":{"name":"Amina Nakato","email":"amina@example.com"},"metadata":{"cart_id":"c-8814"},"source_url":"https://shop.example.com/jerseys/home"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"78a088f1-f666-435d-a15f-d91c28f2bb04":{"description":"Idempotent replay: the original payment.","content":{"application/json":{"schema":{"type":"object","required":["code","message","data"],"properties":{"code":{"type":"integer","description":"HTTP status, repeated in the body.","examples":[200],"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","required":["order","checkout_lines","is_free","is_test_mode","fee_rate"],"properties":{"order":{"type":"object","properties":{"id":{"type":"string","description":"Order id. Pass it to pay and read.","examples":["Hk2mQ8vR"],"isRequired":true,"uniqueKey":"data.order.id","typeLabel":"string"},"order_code":{"type":"string","description":"Human-readable order code shown to the buyer.","examples":["LC-7K2M9X"],"isRequired":true,"uniqueKey":"data.order.order_code","typeLabel":"string"},"order_type":{"type":"string","const":"partner_payment","description":"Always `partner_payment`. Ticket orders have no `order_type`.","isRequired":true,"uniqueKey":"data.order.order_type","typeLabel":"string"},"status":{"type":"string","description":"Order status. Fulfil only on `paid`.","enum":["cart","payment_initiated","prompt_sent","paid","failed","expired","cancelled","refunded","partially_refunded","chargeback_flagged"],"isRequired":true,"uniqueKey":"data.order.status","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","description":"What the buyer pays in. Differs from `requested_currency` when they pay from another country.","examples":["UGX"],"isRequired":true,"uniqueKey":"data.order.currency","typeLabel":"string"},"subtotal":{"type":"integer","description":"The price before the fee, in `currency`, minor units.","isRequired":true,"uniqueKey":"data.order.subtotal","typeLabel":"integer"},"discount_total":{"type":"integer","description":"Always 0 on a payment.","isRequired":true,"uniqueKey":"data.order.discount_total","typeLabel":"integer"},"donation_total":{"type":"integer","description":"Always 0 on a payment.","isRequired":true,"uniqueKey":"data.order.donation_total","typeLabel":"integer"},"laces_fee":{"type":"integer","description":"The Laces fee the buyer pays on top, minor units.","isRequired":true,"uniqueKey":"data.order.laces_fee","typeLabel":"integer"},"total":{"type":"integer","description":"**Authoritative** amount the buyer pays, in `currency`, minor units. It can change if the buyer changes how they pay on the Laces card page: compare `requested_amount` with your price instead.","isRequired":true,"uniqueKey":"data.order.total","typeLabel":"integer"},"failure_kind":{"oneOf":[{"type":"string","enum":["provider_not_reached","timed_out","declined","other",null],"description":"Why the latest payment attempt failed, as a sanitized bucket; `null` unless the order is `failed` or `expired`. Never the payment provider's own wording.\n\n- `provider_not_reached`: the charge never reached the payment provider. **Nothing was charged**; the buyer can try again.\n- `timed_out`: the payer didn't approve in time, or the prompt expired.\n- `declined`: the payer declined or cancelled, or can't pay (balance, PIN, limit).\n- `other`: anything else.\n\nTreat an unknown value as `other`. See [When it fails](/payments/mobile-money#step-5-when-it-fails).","examples":[null],"isRequired":true,"uniqueKey":"data.order.failure_kind.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["provider_not_reached","timed_out","declined","other",null],"description":"Why the latest payment attempt failed, as a sanitized bucket; `null` unless the order is `failed` or `expired`. Never the payment provider's own wording.\n\n- `provider_not_reached`: the charge never reached the payment provider. **Nothing was charged**; the buyer can try again.\n- `timed_out`: the payer didn't approve in time, or the prompt expired.\n- `declined`: the payer declined or cancelled, or can't pay (balance, PIN, limit).\n- `other`: anything else.\n\nTreat an unknown value as `other`. See [When it fails](/payments/mobile-money#step-5-when-it-fails).","examples":[null],"isRequired":true,"uniqueKey":"data.order.failure_kind.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.failure_kind","typeLabel":"enum\u003cstring> | null"},"partner_reference":{"oneOf":[{"type":"string","description":"Your reference. Also in `attribution.partner_reference`.","examples":["SHOP-ORDER-8812"],"isRequired":true,"uniqueKey":"data.order.partner_reference.oneOf.0","typeLabel":"string"},{"type":"null","description":"Your reference. Also in `attribution.partner_reference`.","examples":["SHOP-ORDER-8812"],"isRequired":true,"uniqueKey":"data.order.partner_reference.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.partner_reference","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"What was bought, as you sent it.","examples":["Club jersey, size L"],"isRequired":true,"uniqueKey":"data.order.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What was bought, as you sent it.","examples":["Club jersey, size L"],"isRequired":true,"uniqueKey":"data.order.description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.description","typeLabel":"string | null"},"requested_amount":{"oneOf":[{"type":"integer","description":"The `amount` you asked for, in `requested_currency`, whatever the buyer is charged in. **Compare this with your price.** `null` only when the stored record can't be read: check by hand.","examples":[50000],"isRequired":true,"uniqueKey":"data.order.requested_amount.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The `amount` you asked for, in `requested_currency`, whatever the buyer is charged in. **Compare this with your price.** `null` only when the stored record can't be read: check by hand.","examples":[50000],"isRequired":true,"uniqueKey":"data.order.requested_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.requested_amount","typeLabel":"integer | null"},"requested_currency":{"oneOf":[{"type":"string","description":"Your organization's currency.","examples":["UGX"],"isRequired":true,"uniqueKey":"data.order.requested_currency.oneOf.0","typeLabel":"string"},{"type":"null","description":"Your organization's currency.","examples":["UGX"],"isRequired":true,"uniqueKey":"data.order.requested_currency.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.requested_currency","typeLabel":"string | null"},"buyer":{"type":"object","properties":{"name":{"type":"string","uniqueKey":"data.order.buyer.name","typeLabel":"string"},"email":{"type":"string","format":"email","uniqueKey":"data.order.buyer.email","typeLabel":"string\u003cemail>"},"phone":{"type":"string","description":"E.164, for example `+256763494235`.","examples":["+256763494235"],"uniqueKey":"data.order.buyer.phone","typeLabel":"string"}},"description":"The buyer. `phone` is E.164, absent when you sent none. **Personal data.**","isRequired":true,"uniqueKey":"data.order.buyer","typeLabel":"object"},"attribution":{"type":"object","properties":{"channel":{"oneOf":[{"type":"string","description":"`partner_api` (custom UI), `partner_hosted` (hosted or embedded checkout), or null for an order that did not come through the Partner API.","enum":["partner_api","partner_hosted",null],"isRequired":true,"uniqueKey":"data.order.attribution.channel.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"`partner_api` (custom UI), `partner_hosted` (hosted or embedded checkout), or null for an order that did not come through the Partner API.","enum":["partner_api","partner_hosted",null],"isRequired":true,"uniqueKey":"data.order.attribution.channel.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.attribution.channel","typeLabel":"enum\u003cstring> | null"},"api_client_id":{"oneOf":[{"type":"string","description":"The API client that created the order.","examples":["LCSCLI-EXAMPLECLNT2345EXAMP"],"isRequired":true,"uniqueKey":"data.order.attribution.api_client_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The API client that created the order.","examples":["LCSCLI-EXAMPLECLNT2345EXAMP"],"isRequired":true,"uniqueKey":"data.order.attribution.api_client_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.attribution.api_client_id","typeLabel":"string | null"},"checkout_session_id":{"oneOf":[{"type":"string","description":"The checkout session the order came from.","examples":[null],"isRequired":true,"uniqueKey":"data.order.attribution.checkout_session_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The checkout session the order came from.","examples":[null],"isRequired":true,"uniqueKey":"data.order.attribution.checkout_session_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.attribution.checkout_session_id","typeLabel":"string | null"},"partner_reference":{"oneOf":[{"type":"string","description":"Your `partner_reference` from order creation.","examples":["cart-8841"],"isRequired":true,"uniqueKey":"data.order.attribution.partner_reference.oneOf.0","typeLabel":"string"},{"type":"null","description":"Your `partner_reference` from order creation.","examples":["cart-8841"],"isRequired":true,"uniqueKey":"data.order.attribution.partner_reference.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.attribution.partner_reference","typeLabel":"string | null"}},"required":["channel","api_client_id","checkout_session_id","partner_reference"],"description":"How the order came in.","isRequired":true,"uniqueKey":"data.order.attribution","typeLabel":"object"},"hold_expires_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the payment window ends if the order is not paid (15 minutes after creation).","isRequired":true,"uniqueKey":"data.order.hold_expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the payment window ends if the order is not paid (15 minutes after creation).","isRequired":true,"uniqueKey":"data.order.hold_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.hold_expires_at","typeLabel":"string\u003cdate-time> | null"},"prompt_expires_at":{"oneOf":[{"type":"string","description":"When the \"approve on your phone\" window of the order's newest live mobile money prompt ends: the start of that prompt attempt plus 180 seconds (the window the Laces payment page counts down for MTN and Airtel). ISO 8601 UTC. `null` for free, card and bank transfer orders, when no prompt is live, and once the order is finished.\n\n- A conservative **lower bound**: it can end a few seconds before the prompt reaches the phone (it is stamped when the pay request starts), never after.\n- **Not a failure signal.** When it passes, don't declare the payment failed: re-read the order or wait for `order.paid` / `order.failed`. A late approval can still arrive.\n- It can be **later than `hold_expires_at`**: a prompt started before the hold ended can still be approved and paid after it, so keep the timer running until `prompt_expires_at`.\n- A retry on a new prompt gives a new value.\n- Compare with your own clock allowing for skew, or count down from when you received the response.\n\nSee [Show the buyer a timer](/guides/custom-ui#show-the-buyer-a-timer).","format":"date-time","isRequired":true,"uniqueKey":"data.order.prompt_expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"When the \"approve on your phone\" window of the order's newest live mobile money prompt ends: the start of that prompt attempt plus 180 seconds (the window the Laces payment page counts down for MTN and Airtel). ISO 8601 UTC. `null` for free, card and bank transfer orders, when no prompt is live, and once the order is finished.\n\n- A conservative **lower bound**: it can end a few seconds before the prompt reaches the phone (it is stamped when the pay request starts), never after.\n- **Not a failure signal.** When it passes, don't declare the payment failed: re-read the order or wait for `order.paid` / `order.failed`. A late approval can still arrive.\n- It can be **later than `hold_expires_at`**: a prompt started before the hold ended can still be approved and paid after it, so keep the timer running until `prompt_expires_at`.\n- A retry on a new prompt gives a new value.\n- Compare with your own clock allowing for skew, or count down from when you received the response.\n\nSee [Show the buyer a timer](/guides/custom-ui#show-the-buyer-a-timer).","format":"date-time","isRequired":true,"uniqueKey":"data.order.prompt_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.prompt_expires_at","typeLabel":"string\u003cdate-time> | null"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.order.created_at","typeLabel":"string\u003cdate-time>"},"product":{"type":"string","description":"Your grouping label. Absent when you sent none.","examples":["jersey"],"uniqueKey":"data.order.product","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"data.order.metadata.additionalProperties","typeLabel":"string"},"description":"Exactly what you sent. Absent when you sent none.","examples":[{"cart_id":"c-8812"}],"uniqueKey":"data.order.metadata","typeLabel":"object"},"source_url":{"type":"string","format":"uri","description":"The page you sent. Absent when you sent none.","uniqueKey":"data.order.source_url","typeLabel":"string\u003curi>"},"source_site":{"type":"string","description":"The host of `source_url`, else of the key's default site. Absent when there is neither. Declared by you: attribution, not proof.","examples":["shop.example.com"],"uniqueKey":"data.order.source_site","typeLabel":"string"},"payer_country":{"type":"string","description":"Present when you sent it.","examples":["KE"],"uniqueKey":"data.order.payer_country","typeLabel":"string"}},"required":["id","order_code","order_type","status","currency","subtotal","discount_total","donation_total","laces_fee","total","failure_kind","partner_reference","description","requested_amount","requested_currency","attribution","hold_expires_at","prompt_expires_at","created_at","buyer"],"description":"A payment, as the Partner API shows it: an order with no `event_id`, `ticket_count` or `registrations`. Tell it apart by `order_type`.","isRequired":true,"uniqueKey":"data.order","typeLabel":"object"},"checkout_lines":{"type":"array","description":"Display lines: Subtotal, Laces Service Fee, Total.","items":{"type":"object","properties":{"label":{"type":"string","isRequired":true,"uniqueKey":"data.checkout_lines.items.[INDEX].label","typeLabel":"string"},"amount":{"type":"integer","isRequired":true,"uniqueKey":"data.checkout_lines.items.[INDEX].amount","typeLabel":"integer"}},"required":["label","amount"],"uniqueKey":"data.checkout_lines.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.checkout_lines","typeLabel":"object[]"},"is_free":{"type":"boolean","description":"Always `false`: a payment is at least 1.","isRequired":true,"uniqueKey":"data.is_free","typeLabel":"boolean"},"is_test_mode":{"type":"boolean","description":"Always `false` for partner integrations: every order is real.","isRequired":true,"uniqueKey":"data.is_test_mode","typeLabel":"boolean"},"fee_rate":{"type":"object","properties":{"flat_fee":{"type":"integer","isRequired":true,"uniqueKey":"data.fee_rate.flat_fee","typeLabel":"integer"},"percent_fee":{"type":"number","isRequired":true,"uniqueKey":"data.fee_rate.percent_fee","typeLabel":"number"},"currency":{"type":"string","isRequired":true,"uniqueKey":"data.fee_rate.currency","typeLabel":"string"},"payment_method":{"type":"string","enum":["momo","card","airtel"],"uniqueKey":"data.fee_rate.payment_method","typeLabel":"enum\u003cstring>"}},"required":["flat_fee","percent_fee","currency"],"isRequired":true,"uniqueKey":"data.fee_rate","typeLabel":"object"},"payment_gateway":{"type":"string","description":"Internal routing hint. Omitted when unknown; ignore it.","uniqueKey":"data.payment_gateway","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"replay":{"title":"replay","value":{"code":200,"message":"Payment already created (idempotent replay)","data":{"order":{"id":"Pm4xT9cL","order_code":"LC-3N8V5K","order_type":"partner_payment","status":"cart","currency":"UGX","subtotal":50000,"discount_total":0,"donation_total":0,"laces_fee":2500,"total":52500,"failure_kind":null,"partner_reference":"SHOP-ORDER-8812","description":"Club jersey, size L","product":"jersey","metadata":{"cart_id":"c-8812","size":"L"},"source_url":"https://shop.example.com/jerseys/home","source_site":"shop.example.com","requested_amount":50000,"requested_currency":"UGX","buyer":{"name":"Amina Nakato","email":"amina@example.com","phone":"+256763494235"},"attribution":{"channel":"partner_api","api_client_id":"LCSCLI-EXAMPLECLNT2345EXAMP","checkout_session_id":null,"partner_reference":"SHOP-ORDER-8812"},"hold_expires_at":"2026-11-25T08:29:03.000Z","prompt_expires_at":null,"created_at":"2026-11-25T08:14:03.000Z"},"checkout_lines":[{"label":"Subtotal","amount":50000},{"label":"Laces Service Fee","amount":2500},{"label":"Total","amount":52500}],"is_free":false,"is_test_mode":false,"fee_rate":{"flat_fee":500,"percent_fee":4,"currency":"UGX","payment_method":"momo"}}}}},"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"},"b8b29d7e-a65b-44ba-9060-df24af4720a8":{"description":"Payment created.","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","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","required":["order","checkout_lines","is_free","is_test_mode","fee_rate"],"properties":{"order":{"type":"object","properties":{"id":{"type":"string","description":"Order id. Pass it to pay and read.","examples":["Hk2mQ8vR"],"isRequired":true,"uniqueKey":"data.order.id","typeLabel":"string"},"order_code":{"type":"string","description":"Human-readable order code shown to the buyer.","examples":["LC-7K2M9X"],"isRequired":true,"uniqueKey":"data.order.order_code","typeLabel":"string"},"order_type":{"type":"string","const":"partner_payment","description":"Always `partner_payment`. Ticket orders have no `order_type`.","isRequired":true,"uniqueKey":"data.order.order_type","typeLabel":"string"},"status":{"type":"string","description":"Order status. Fulfil only on `paid`.","enum":["cart","payment_initiated","prompt_sent","paid","failed","expired","cancelled","refunded","partially_refunded","chargeback_flagged"],"isRequired":true,"uniqueKey":"data.order.status","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","description":"What the buyer pays in. Differs from `requested_currency` when they pay from another country.","examples":["UGX"],"isRequired":true,"uniqueKey":"data.order.currency","typeLabel":"string"},"subtotal":{"type":"integer","description":"The price before the fee, in `currency`, minor units.","isRequired":true,"uniqueKey":"data.order.subtotal","typeLabel":"integer"},"discount_total":{"type":"integer","description":"Always 0 on a payment.","isRequired":true,"uniqueKey":"data.order.discount_total","typeLabel":"integer"},"donation_total":{"type":"integer","description":"Always 0 on a payment.","isRequired":true,"uniqueKey":"data.order.donation_total","typeLabel":"integer"},"laces_fee":{"type":"integer","description":"The Laces fee the buyer pays on top, minor units.","isRequired":true,"uniqueKey":"data.order.laces_fee","typeLabel":"integer"},"total":{"type":"integer","description":"**Authoritative** amount the buyer pays, in `currency`, minor units. It can change if the buyer changes how they pay on the Laces card page: compare `requested_amount` with your price instead.","isRequired":true,"uniqueKey":"data.order.total","typeLabel":"integer"},"failure_kind":{"oneOf":[{"type":"string","enum":["provider_not_reached","timed_out","declined","other",null],"description":"Why the latest payment attempt failed, as a sanitized bucket; `null` unless the order is `failed` or `expired`. Never the payment provider's own wording.\n\n- `provider_not_reached`: the charge never reached the payment provider. **Nothing was charged**; the buyer can try again.\n- `timed_out`: the payer didn't approve in time, or the prompt expired.\n- `declined`: the payer declined or cancelled, or can't pay (balance, PIN, limit).\n- `other`: anything else.\n\nTreat an unknown value as `other`. See [When it fails](/payments/mobile-money#step-5-when-it-fails).","examples":[null],"isRequired":true,"uniqueKey":"data.order.failure_kind.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["provider_not_reached","timed_out","declined","other",null],"description":"Why the latest payment attempt failed, as a sanitized bucket; `null` unless the order is `failed` or `expired`. Never the payment provider's own wording.\n\n- `provider_not_reached`: the charge never reached the payment provider. **Nothing was charged**; the buyer can try again.\n- `timed_out`: the payer didn't approve in time, or the prompt expired.\n- `declined`: the payer declined or cancelled, or can't pay (balance, PIN, limit).\n- `other`: anything else.\n\nTreat an unknown value as `other`. See [When it fails](/payments/mobile-money#step-5-when-it-fails).","examples":[null],"isRequired":true,"uniqueKey":"data.order.failure_kind.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.failure_kind","typeLabel":"enum\u003cstring> | null"},"partner_reference":{"oneOf":[{"type":"string","description":"Your reference. Also in `attribution.partner_reference`.","examples":["SHOP-ORDER-8812"],"isRequired":true,"uniqueKey":"data.order.partner_reference.oneOf.0","typeLabel":"string"},{"type":"null","description":"Your reference. Also in `attribution.partner_reference`.","examples":["SHOP-ORDER-8812"],"isRequired":true,"uniqueKey":"data.order.partner_reference.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.partner_reference","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"What was bought, as you sent it.","examples":["Club jersey, size L"],"isRequired":true,"uniqueKey":"data.order.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What was bought, as you sent it.","examples":["Club jersey, size L"],"isRequired":true,"uniqueKey":"data.order.description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.description","typeLabel":"string | null"},"requested_amount":{"oneOf":[{"type":"integer","description":"The `amount` you asked for, in `requested_currency`, whatever the buyer is charged in. **Compare this with your price.** `null` only when the stored record can't be read: check by hand.","examples":[50000],"isRequired":true,"uniqueKey":"data.order.requested_amount.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The `amount` you asked for, in `requested_currency`, whatever the buyer is charged in. **Compare this with your price.** `null` only when the stored record can't be read: check by hand.","examples":[50000],"isRequired":true,"uniqueKey":"data.order.requested_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.requested_amount","typeLabel":"integer | null"},"requested_currency":{"oneOf":[{"type":"string","description":"Your organization's currency.","examples":["UGX"],"isRequired":true,"uniqueKey":"data.order.requested_currency.oneOf.0","typeLabel":"string"},{"type":"null","description":"Your organization's currency.","examples":["UGX"],"isRequired":true,"uniqueKey":"data.order.requested_currency.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.requested_currency","typeLabel":"string | null"},"buyer":{"type":"object","properties":{"name":{"type":"string","uniqueKey":"data.order.buyer.name","typeLabel":"string"},"email":{"type":"string","format":"email","uniqueKey":"data.order.buyer.email","typeLabel":"string\u003cemail>"},"phone":{"type":"string","description":"E.164, for example `+256763494235`.","examples":["+256763494235"],"uniqueKey":"data.order.buyer.phone","typeLabel":"string"}},"description":"The buyer. `phone` is E.164, absent when you sent none. **Personal data.**","isRequired":true,"uniqueKey":"data.order.buyer","typeLabel":"object"},"attribution":{"type":"object","properties":{"channel":{"oneOf":[{"type":"string","description":"`partner_api` (custom UI), `partner_hosted` (hosted or embedded checkout), or null for an order that did not come through the Partner API.","enum":["partner_api","partner_hosted",null],"isRequired":true,"uniqueKey":"data.order.attribution.channel.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"`partner_api` (custom UI), `partner_hosted` (hosted or embedded checkout), or null for an order that did not come through the Partner API.","enum":["partner_api","partner_hosted",null],"isRequired":true,"uniqueKey":"data.order.attribution.channel.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.attribution.channel","typeLabel":"enum\u003cstring> | null"},"api_client_id":{"oneOf":[{"type":"string","description":"The API client that created the order.","examples":["LCSCLI-EXAMPLECLNT2345EXAMP"],"isRequired":true,"uniqueKey":"data.order.attribution.api_client_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The API client that created the order.","examples":["LCSCLI-EXAMPLECLNT2345EXAMP"],"isRequired":true,"uniqueKey":"data.order.attribution.api_client_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.attribution.api_client_id","typeLabel":"string | null"},"checkout_session_id":{"oneOf":[{"type":"string","description":"The checkout session the order came from.","examples":[null],"isRequired":true,"uniqueKey":"data.order.attribution.checkout_session_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The checkout session the order came from.","examples":[null],"isRequired":true,"uniqueKey":"data.order.attribution.checkout_session_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.attribution.checkout_session_id","typeLabel":"string | null"},"partner_reference":{"oneOf":[{"type":"string","description":"Your `partner_reference` from order creation.","examples":["cart-8841"],"isRequired":true,"uniqueKey":"data.order.attribution.partner_reference.oneOf.0","typeLabel":"string"},{"type":"null","description":"Your `partner_reference` from order creation.","examples":["cart-8841"],"isRequired":true,"uniqueKey":"data.order.attribution.partner_reference.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.attribution.partner_reference","typeLabel":"string | null"}},"required":["channel","api_client_id","checkout_session_id","partner_reference"],"description":"How the order came in.","isRequired":true,"uniqueKey":"data.order.attribution","typeLabel":"object"},"hold_expires_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the payment window ends if the order is not paid (15 minutes after creation).","isRequired":true,"uniqueKey":"data.order.hold_expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the payment window ends if the order is not paid (15 minutes after creation).","isRequired":true,"uniqueKey":"data.order.hold_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.hold_expires_at","typeLabel":"string\u003cdate-time> | null"},"prompt_expires_at":{"oneOf":[{"type":"string","description":"When the \"approve on your phone\" window of the order's newest live mobile money prompt ends: the start of that prompt attempt plus 180 seconds (the window the Laces payment page counts down for MTN and Airtel). ISO 8601 UTC. `null` for free, card and bank transfer orders, when no prompt is live, and once the order is finished.\n\n- A conservative **lower bound**: it can end a few seconds before the prompt reaches the phone (it is stamped when the pay request starts), never after.\n- **Not a failure signal.** When it passes, don't declare the payment failed: re-read the order or wait for `order.paid` / `order.failed`. A late approval can still arrive.\n- It can be **later than `hold_expires_at`**: a prompt started before the hold ended can still be approved and paid after it, so keep the timer running until `prompt_expires_at`.\n- A retry on a new prompt gives a new value.\n- Compare with your own clock allowing for skew, or count down from when you received the response.\n\nSee [Show the buyer a timer](/guides/custom-ui#show-the-buyer-a-timer).","format":"date-time","isRequired":true,"uniqueKey":"data.order.prompt_expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"When the \"approve on your phone\" window of the order's newest live mobile money prompt ends: the start of that prompt attempt plus 180 seconds (the window the Laces payment page counts down for MTN and Airtel). ISO 8601 UTC. `null` for free, card and bank transfer orders, when no prompt is live, and once the order is finished.\n\n- A conservative **lower bound**: it can end a few seconds before the prompt reaches the phone (it is stamped when the pay request starts), never after.\n- **Not a failure signal.** When it passes, don't declare the payment failed: re-read the order or wait for `order.paid` / `order.failed`. A late approval can still arrive.\n- It can be **later than `hold_expires_at`**: a prompt started before the hold ended can still be approved and paid after it, so keep the timer running until `prompt_expires_at`.\n- A retry on a new prompt gives a new value.\n- Compare with your own clock allowing for skew, or count down from when you received the response.\n\nSee [Show the buyer a timer](/guides/custom-ui#show-the-buyer-a-timer).","format":"date-time","isRequired":true,"uniqueKey":"data.order.prompt_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.order.prompt_expires_at","typeLabel":"string\u003cdate-time> | null"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.order.created_at","typeLabel":"string\u003cdate-time>"},"product":{"type":"string","description":"Your grouping label. Absent when you sent none.","examples":["jersey"],"uniqueKey":"data.order.product","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"data.order.metadata.additionalProperties","typeLabel":"string"},"description":"Exactly what you sent. Absent when you sent none.","examples":[{"cart_id":"c-8812"}],"uniqueKey":"data.order.metadata","typeLabel":"object"},"source_url":{"type":"string","format":"uri","description":"The page you sent. Absent when you sent none.","uniqueKey":"data.order.source_url","typeLabel":"string\u003curi>"},"source_site":{"type":"string","description":"The host of `source_url`, else of the key's default site. Absent when there is neither. Declared by you: attribution, not proof.","examples":["shop.example.com"],"uniqueKey":"data.order.source_site","typeLabel":"string"},"payer_country":{"type":"string","description":"Present when you sent it.","examples":["KE"],"uniqueKey":"data.order.payer_country","typeLabel":"string"}},"required":["id","order_code","order_type","status","currency","subtotal","discount_total","donation_total","laces_fee","total","failure_kind","partner_reference","description","requested_amount","requested_currency","attribution","hold_expires_at","prompt_expires_at","created_at","buyer"],"description":"A payment, as the Partner API shows it: an order with no `event_id`, `ticket_count` or `registrations`. Tell it apart by `order_type`.","isRequired":true,"uniqueKey":"data.order","typeLabel":"object"},"checkout_lines":{"type":"array","description":"Display lines: Subtotal, Laces Service Fee, Total.","items":{"type":"object","properties":{"label":{"type":"string","isRequired":true,"uniqueKey":"data.checkout_lines.items.[INDEX].label","typeLabel":"string"},"amount":{"type":"integer","isRequired":true,"uniqueKey":"data.checkout_lines.items.[INDEX].amount","typeLabel":"integer"}},"required":["label","amount"],"uniqueKey":"data.checkout_lines.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.checkout_lines","typeLabel":"object[]"},"is_free":{"type":"boolean","description":"Always `false`: a payment is at least 1.","isRequired":true,"uniqueKey":"data.is_free","typeLabel":"boolean"},"is_test_mode":{"type":"boolean","description":"Always `false` for partner integrations: every order is real.","isRequired":true,"uniqueKey":"data.is_test_mode","typeLabel":"boolean"},"fee_rate":{"type":"object","properties":{"flat_fee":{"type":"integer","isRequired":true,"uniqueKey":"data.fee_rate.flat_fee","typeLabel":"integer"},"percent_fee":{"type":"number","isRequired":true,"uniqueKey":"data.fee_rate.percent_fee","typeLabel":"number"},"currency":{"type":"string","isRequired":true,"uniqueKey":"data.fee_rate.currency","typeLabel":"string"},"payment_method":{"type":"string","enum":["momo","card","airtel"],"uniqueKey":"data.fee_rate.payment_method","typeLabel":"enum\u003cstring>"}},"required":["flat_fee","percent_fee","currency"],"isRequired":true,"uniqueKey":"data.fee_rate","typeLabel":"object"},"payment_gateway":{"type":"string","description":"Internal routing hint. Omitted when unknown; ignore it.","uniqueKey":"data.payment_gateway","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"product":{"title":"product","summary":"A product, mobile money","value":{"code":201,"message":"Payment created successfully","data":{"order":{"id":"Pm4xT9cL","order_code":"LC-3N8V5K","order_type":"partner_payment","status":"cart","currency":"UGX","subtotal":50000,"discount_total":0,"donation_total":0,"laces_fee":2500,"total":52500,"failure_kind":null,"partner_reference":"SHOP-ORDER-8812","description":"Club jersey, size L","product":"jersey","metadata":{"cart_id":"c-8812","size":"L"},"source_url":"https://shop.example.com/jerseys/home","source_site":"shop.example.com","requested_amount":50000,"requested_currency":"UGX","buyer":{"name":"Amina Nakato","email":"amina@example.com","phone":"+256763494235"},"attribution":{"channel":"partner_api","api_client_id":"LCSCLI-EXAMPLECLNT2345EXAMP","checkout_session_id":null,"partner_reference":"SHOP-ORDER-8812"},"hold_expires_at":"2026-11-25T08:29:03.000Z","prompt_expires_at":null,"created_at":"2026-11-25T08:14:03.000Z"},"checkout_lines":[{"label":"Subtotal","amount":50000},{"label":"Laces Service Fee","amount":2500},{"label":"Total","amount":52500}],"is_free":false,"is_test_mode":false,"fee_rate":{"flat_fee":500,"percent_fee":4,"currency":"UGX","payment_method":"momo"}}}},"card":{"title":"card","summary":"Card","value":{"code":201,"message":"Payment created successfully","data":{"order":{"id":"Qd7rW2yB","order_code":"LC-6H2J9P","order_type":"partner_payment","status":"cart","currency":"UGX","subtotal":50000,"discount_total":0,"donation_total":0,"laces_fee":4400,"total":54400,"failure_kind":null,"partner_reference":"SHOP-ORDER-8813","description":"Club jersey, size M","product":"jersey","metadata":{"cart_id":"c-8813","size":"M"},"source_url":"https://shop.example.com/jerseys/home","source_site":"shop.example.com","requested_amount":50000,"requested_currency":"UGX","buyer":{"name":"Amina Nakato","email":"amina@example.com","phone":"+256763494235"},"attribution":{"channel":"partner_api","api_client_id":"LCSCLI-EXAMPLECLNT2345EXAMP","checkout_session_id":null,"partner_reference":"SHOP-ORDER-8813"},"hold_expires_at":"2026-11-25T08:29:03.000Z","prompt_expires_at":null,"created_at":"2026-11-25T08:14:03.000Z"},"checkout_lines":[{"label":"Subtotal","amount":50000},{"label":"Laces Service Fee","amount":4400},{"label":"Total","amount":54400}],"is_free":false,"is_test_mode":false,"fee_rate":{"flat_fee":1500,"percent_fee":5.8,"currency":"UGX","payment_method":"card"}}}},"own_event":{"title":"own_event","summary":"Several places, own event","value":{"code":201,"message":"Payment created successfully","data":{"order":{"id":"Zs5kF8nA","order_code":"LC-4T7X2M","order_type":"partner_payment","status":"cart","currency":"UGX","subtotal":225000,"discount_total":0,"donation_total":0,"laces_fee":9500,"total":234500,"failure_kind":null,"partner_reference":"REG-20417","description":"Camp 2026: 1 adult and 2 children","product":"camp-2026","metadata":{"registration_id":"reg-20417","adults":"1","children":"2"},"source_url":"https://camp.example.org/register","source_site":"camp.example.org","requested_amount":225000,"requested_currency":"UGX","buyer":{"name":"Amina Nakato","email":"amina@example.com","phone":"+256763494235"},"attribution":{"channel":"partner_api","api_client_id":"LCSCLI-EXAMPLECLNT2345EXAMP","checkout_session_id":null,"partner_reference":"REG-20417"},"hold_expires_at":"2026-11-25T08:29:03.000Z","prompt_expires_at":null,"created_at":"2026-11-25T08:14:03.000Z"},"checkout_lines":[{"label":"Subtotal","amount":225000},{"label":"Laces Service Fee","amount":9500},{"label":"Total","amount":234500}],"is_free":false,"is_test_mode":false,"fee_rate":{"flat_fee":500,"percent_fee":4,"currency":"UGX","payment_method":"momo"}}}},"other_country":{"title":"other_country","summary":"A buyer in another country","value":{"code":201,"message":"Payment created successfully","data":{"order":{"id":"Tb6vC3hN","order_code":"LC-8M4D7Q","order_type":"partner_payment","status":"cart","currency":"KES","subtotal":172000,"discount_total":0,"donation_total":0,"laces_fee":6988,"total":178988,"failure_kind":null,"partner_reference":"SHOP-ORDER-8814","description":"Club jersey, size S","product":"jersey","metadata":{"cart_id":"c-8814"},"source_url":"https://shop.example.com/jerseys/home","source_site":"shop.example.com","requested_amount":50000,"requested_currency":"UGX","payer_country":"KE","buyer":{"name":"Amina Nakato","email":"amina@example.com"},"attribution":{"channel":"partner_api","api_client_id":"LCSCLI-EXAMPLECLNT2345EXAMP","checkout_session_id":null,"partner_reference":"SHOP-ORDER-8814"},"hold_expires_at":"2026-11-25T08:29:03.000Z","prompt_expires_at":null,"created_at":"2026-11-25T08:14:03.000Z"},"checkout_lines":[{"label":"Subtotal","amount":172000},{"label":"Laces Service Fee","amount":6988},{"label":"Total","amount":178988}],"is_free":false,"is_test_mode":false,"fee_rate":{"flat_fee":2000,"percent_fee":2.9,"currency":"KES","payment_method":"momo"}}}}},"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"},"f516ad8d-45f5-484c-be2d-4e2966335844":{"description":"Invalid request. `bank_transfer` is not offered in any country.","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":{"idempotency_key_required":{"title":"idempotency_key_required","summary":"idempotency_key_required","value":{"code":400,"message":"idempotency_key_required","error":"An Idempotency-Key header is required on this endpoint","error_code":"idempotency_key_required"}},"invalid_request":{"title":"invalid_request","summary":"invalid_request","value":{"code":400,"message":"invalid_request","error":"description is required","error_code":"invalid_request"}},"invalid_amount":{"title":"invalid_amount","summary":"invalid_amount","value":{"code":400,"message":"invalid_amount","error":"amount must be a positive integer in minor units","error_code":"invalid_amount"}},"amount_too_large":{"title":"amount_too_large","summary":"amount_too_large","value":{"code":400,"message":"amount_too_large","error":"amount must be at most 5000000","error_code":"amount_too_large"}},"currency_mismatch":{"title":"currency_mismatch","summary":"currency_mismatch","value":{"code":400,"message":"currency_mismatch","error":"currency must be UGX","error_code":"currency_mismatch"}},"unsupported_country":{"title":"unsupported_country","summary":"unsupported_country","value":{"code":400,"message":"unsupported_country","error":"payer_country must be one of: UG, KE, GH, RW, ZM","error_code":"unsupported_country"}},"invalid_payment_method":{"title":"invalid_payment_method","summary":"invalid_payment_method","value":{"code":400,"message":"invalid_payment_method","error":"payment_method must be one of: momo, card, airtel, bank_transfer","error_code":"invalid_payment_method"}},"rail_unavailable":{"title":"rail_unavailable","summary":"rail_unavailable","value":{"code":400,"message":"rail_unavailable","error":"Card payments aren't available for events in Zambia yet. Please pay with mobile money.","error_code":"rail_unavailable"}},"invalid_metadata":{"title":"invalid_metadata","summary":"invalid_metadata","value":{"code":400,"message":"invalid_metadata","error":"metadata must be an object of string values","error_code":"invalid_metadata"}},"invalid_source_url":{"title":"invalid_source_url","summary":"invalid_source_url","value":{"code":400,"message":"invalid_source_url","error":"source_url must be an https URL (at most 2048 characters) whose origin is in this client's return_url_origins","error_code":"invalid_source_url"}},"invalid_return_url":{"title":"invalid_return_url","summary":"invalid_return_url","value":{"code":400,"message":"invalid_return_url","error":"on_success_url must be an https URL (at most 2048 characters with the order id and status added) whose origin is in this client's return_url_origins","error_code":"invalid_return_url"}},"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"}},"exampleType":"examples"},"022e26a2-3eb9-47f1-bb40-d483aebe0554":{"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"},"49056e5f-4fb1-4774-af43-e6740cc85c1a":{"description":"Payments are off or stopped for the organization, or the credential may not call this.","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":{"shop_payments_not_enabled":{"title":"shop_payments_not_enabled","summary":"shop_payments_not_enabled","value":{"code":403,"message":"shop_payments_not_enabled","error":"Payments are not enabled for this organization","error_code":"shop_payments_not_enabled"}},"shop_payments_blocked":{"title":"shop_payments_blocked","summary":"shop_payments_blocked","value":{"code":403,"message":"shop_payments_blocked","error":"Payments are not available for this organization","error_code":"shop_payments_blocked"}},"payments_disabled":{"title":"payments_disabled","summary":"payments_disabled","value":{"code":403,"message":"payments_disabled","error":"This organizer is not set up to accept payments yet","error_code":"payments_disabled"}},"insufficient_scope":{"title":"insufficient_scope","summary":"insufficient_scope","value":{"code":403,"message":"Forbidden","error":"Missing scope: payments:write","error_code":"insufficient_scope"}},"credential_not_permitted":{"title":"credential_not_permitted","summary":"credential_not_permitted","value":{"code":403,"message":"Forbidden","error":"This endpoint does not accept a publishable key","error_code":"credential_not_permitted"}}},"exampleType":"examples"}},"exampleType":"examples"},"5531cefd-eb27-4578-a436-4c9593574974":{"description":"The token's organization no longer exists.","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":{"org_not_found":{"title":"org_not_found","summary":"org_not_found","value":{"code":404,"message":"org_not_found","error":"Organization not found","error_code":"org_not_found"}}},"exampleType":"examples"}},"exampleType":"examples"},"bac61455-d5ae-4520-b97f-8f231989de17":{"description":"Can't be created now.","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":{"idempotency_in_progress":{"title":"idempotency_in_progress","summary":"idempotency_in_progress","value":{"code":409,"message":"idempotency_in_progress","error":"A request with this idempotency key is still being processed","error_code":"idempotency_in_progress"}},"sale_closed":{"title":"sale_closed","summary":"sale_closed","value":{"code":409,"message":"sale_closed","error":"Payments are closed for this organization","error_code":"sale_closed"}},"shop_event_conflict":{"title":"shop_event_conflict","summary":"shop_event_conflict","value":{"code":409,"message":"shop_event_conflict","error":"Payments are unavailable for this organization","error_code":"shop_event_conflict"}}},"exampleType":"examples"}},"exampleType":"examples"},"8d059118-a134-40ca-923a-0a401801bee2":{"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"},"92f1f8ed-5df1-4f38-8a78-382ca165b2e5":{"description":"The key was used with a different body, or the method has no price there.","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":{"idempotency_key_reuse":{"title":"idempotency_key_reuse","summary":"idempotency_key_reuse","value":{"code":422,"message":"idempotency_key_reuse","error":"This idempotency key was already used with different parameters","error_code":"idempotency_key_reuse"}},"no_rate_for_method":{"title":"no_rate_for_method","summary":"no_rate_for_method","value":{"code":422,"message":"no_rate_for_method","error":"That payment method is not available for this payment.","error_code":"no_rate_for_method"}}},"exampleType":"examples"}},"exampleType":"examples"},"6e5954c2-4a50-4b6a-87ab-79b60d1fe34e":{"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"},"0cd344d0-0c40-4735-9cda-b69b751b50d6":{"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"},"14e1e1c6-1832-43f2-bf24-9add3ec57029":{"description":"No exchange rate right now. Retry shortly.","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":{"fx_unavailable":{"title":"fx_unavailable","summary":"fx_unavailable","value":{"code":503,"message":"fx_unavailable","error":"We cannot price this in KES right now. Please try again in a moment.","error_code":"fx_unavailable"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"03cb811e-298d-4d2b-9672-70994ca57260":{"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"}},"7665eb7b-0bb9-44cc-ad0d-2f84bf251767":{"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":["payments:write"],"schemeName":"oauth2"}}},"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":["payments: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"}]},"originalFileLocation":"api-reference/v1/openapi.json"},"subdomain":"laces","siteName":"Laces","title":"Create a payment for a sale on your own site - Laces","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v1":{"href":"/api-reference/v1/payments/create","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-26T21:36:59.926Z","gitLastModified":"2026-11-26T21:36:49.000Z","originalFileLocation":"api-reference/v1/payments/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 /payments: create a Laces payment for something sold on your own site, with no event. Nothing is charged until you pay the order. Needs payments:write.\">\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 payment for a sale on your own site - Laces\">\u003cmeta data-mint-head property=\"og:description\" content=\"POST /payments: create a Laces payment for something sold on your own site, with no event. Nothing is charged until you pay the order. Needs payments:write.\">\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/payments/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 payment for a sale on your own site - Laces\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"POST /payments: create a Laces payment for something sold on your own site, with no event. Nothing is charged until you pay the order. Needs payments:write.\">\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/payments/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/payments/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/payments/create#webpage\",\"url\":\"https://docs.laces.run/api-reference/v1/payments/create\",\"name\":\"Create a payment for a sale on your own site\",\"description\":\"POST /payments: create a Laces payment for something sold on your own site, with no event. Nothing is charged until you pay the order. Needs payments:write.\",\"dateModified\":\"2026-11-26T21:36:49.000Z\",\"isPartOf\":{\"@id\":\"https://docs.laces.run#website\"},\"breadcrumb\":{\"@id\":\"https://docs.laces.run/api-reference/v1/payments/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.laces.run/api-reference/v1/payments/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Payments\",\"item\":\"https://docs.laces.run/api-reference/v1/payments/quote\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a payment for a sale on your own site\",\"item\":\"https://docs.laces.run/api-reference/v1/payments/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.laces.run/api-reference/v1/payments/create#apireference\",\"headline\":\"Create a payment for a sale on your own site\",\"name\":\"Create a payment for a sale on your own site\",\"description\":\"POST /payments: create a Laces payment for something sold on your own site, with no event. Nothing is charged until you pay the order. Needs payments:write.\",\"url\":\"https://docs.laces.run/api-reference/v1/payments/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.laces.run/api-reference/v1/payments/create#webpage\"},\"image\":\"https://docs.laces.run/images/og-docs.png\",\"dateModified\":\"2026-11-26T21:36:49.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/payments/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}","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","description":"POST /payments/quote: the Laces fee and the total the buyer pays for an amount, on every payment method available. Creates nothing. Needs payments:write.","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","description":"POST /orders: create a Laces cart for an event and hold the places. No money moves until you pay the order. Supports an Idempotency-Key.","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 payment for a sale on your own site - 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"]}