Creates a transaction that buys from one merchant with one of the buyer’s saved cards. Declare what it buys in purchase: ucp_checkout sends the merchant’s UCP checkout, which Sapiom drives; browser_checkout states the merchant and total of a checkout page your agent completes in a browser. Name the card in funding. Follow the response’s nextAction with Get a transaction. A retry with the same Idempotency-Key and body returns the same transaction. Requires a buyer key.
Pick purchase.type by merchant. Call Check a merchant first: when status is supported, send ucp_checkout. For any other merchant, send browser_checkout. Both need a browser session with Browser Pay attached to enter the card.
ucp_checkout
browser_checkout
Who states the items and total
The merchant. purchase.assertedBy is merchant.
Your agent. Sapiom doesn’t check them. purchase.assertedBy is agent.
Your unique ID for this transaction. A retry with the same key returns the same transaction instead of buying twice. Required for a ucp_checkout. The older spelling x-idempotency-key still works; sending both with different keys returns 400 invalid_request.
Only with ucp_checkout: the address and contact Sapiom fills into the merchant checkout wherever checkout leaves them out. Anything in checkout wins. Refused with browser_checkout; enter the address on the checkout page.
The next step in one vocabulary (type + actor: wait, buyer_security_code, approval, payment_ready, closed, …), always present for a purchase. For a transaction that buys nothing, only an approval or security-code step, absent when nobody needs to act. Links are derived at read time.
For a purchase: what is bought, from whom, for how much, and who said so (assertedBy: merchant for the merchant's own checkout answer, agent for the agent's unchecked statement). Read from durable records; absent for a transaction that buys nothing.
For a purchase: the merchant-confirmed order outcome (confirmed, not_confirmed, unknown). With confirmed, the merchant's confirmation from its completed answer, for the platform to show the cardholder: id, label (the order number the buyer sees), permalinkUrl (the order on the merchant's site) and links (its refund, shipping, terms, privacy and contact pages, { type, url, title? }), each null or empty when the merchant sent none. Null for a browser purchase, which has no order confirmation.
Agent information if transaction is associated with an agent
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Sapiom Pay","description":"Let your AI agent buy for each of your users with their own saved card. Sapiom vaults each user's card, authorizes every transaction against real checkout facts, and fills the card into checkout without your agent ever seeing it.","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/sapiom-1f975ca2/K4zW5IjQAMJutZvi/logo/light.svg?fit=max\u0026auto=format\u0026n=K4zW5IjQAMJutZvi\u0026q=85\u0026s=37d04ab53c9792ff376364fd56a2799e","dark":"https://mintcdn.com/sapiom-1f975ca2/K4zW5IjQAMJutZvi/logo/dark.svg?fit=max\u0026auto=format\u0026n=K4zW5IjQAMJutZvi\u0026q=85\u0026s=bee7a03b976b9be9e5944daf9ca380ba"},"favicon":"https://mintcdn.com/sapiom-1f975ca2/7k2CTIHfQZNyln5W/favicon.svg?fit=max\u0026auto=format\u0026n=7k2CTIHfQZNyln5W\u0026q=85\u0026s=ffac7db148c05d663b25d3e420b2a24d","api":{"playground":{"display":"simple"}},"navbar":{"primary":{"type":"button","label":"Request access","href":"/request-access"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"markdown":{"instructions":["Sapiom Pay is for platforms whose agent shops for many end users. Each end user is a buyer with their own Sapiom key and saved cards.","Use the buyer's key for every call made on that buyer's behalf. Never use one buyer's key for another user, and never give the agent the platform key.","Backends call the REST API at https://api.sapiom.ai/v1. Agents can also call the hosted MCP tools at https://api.sapiom.ai/v1/mcp/pay. Both take the key in an x-api-key header.","Keys that start with sk_test_ reach the sandbox, a separate test environment with its own buyers and cards, at the same addresses. Use test card numbers only there.","Never ask a buyer for a card number, expiry date or CVV in chat. Buyers enter card details only on Sapiom's hosted pages.","Check the merchant before buying. Use purchase.type ucp_checkout only when the merchant check returns supported. Otherwise use browser_checkout.","Follow the nextAction in each transaction result. Action links are secrets for the intended buyer only.","Use one idempotency key per transaction. Resume an unanswered create with the same request and key. If a UCP update or cancellation is uncertain, stop and hand off to a person. If a browser cancellation is uncertain, read the transaction and resend the same cancellation, with the same key, only if it is not closed. Never start a new transaction to escape an uncertain outcome.","For a ucp_checkout purchase, report an order as placed only when order.outcome is confirmed; if it is unknown, stop and hand off to a person. A browser_checkout purchase has no order confirmation (order is null): confirm the order on the merchant's page."]},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sapiom-1f975ca2","hasAudioNarration":false,"actualSubdomain":"sapiom-1f975ca2","customDomains":["docs.sapiom.ai"],"gitSource":{"type":"github","owner":"sapiom","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af26bd6ee9917a20ed54bf3","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API reference","count":26},{"language":"default","tag":"REST API","count":22},{"language":"default","tag":"Docs","count":20},{"language":"default","tag":"Transactions","count":15},{"language":"default","tag":"Cards","count":8},{"language":"default","tag":"Buyers","count":7},{"language":"default","tag":"Get started","count":4},{"language":"default","tag":"Pay in the browser","count":4},{"language":"default","tag":"MCP and SDK","count":2},{"language":"default","tag":"Early access","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/transactions/create-a-transaction","slug":"/api-reference/transactions/create-a-transaction","pageMetadata":{"title":"Create a transaction","description":"Creates a transaction that buys from one merchant with one of the buyer's saved cards. Declare what it buys in `purchase`: `ucp_checkout` sends the merchant's UCP checkout, which Sapiom drives; `browser_checkout` states the merchant and total of a checkout page your agent completes in a browser. Name the card in `funding`. Follow the response's `nextAction` with [Get a transaction](/api-reference/transactions/get-a-transaction). A retry with the same `Idempotency-Key` and body returns the same transaction. Requires a [buyer key](/api-reference/overview#authentication).","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/transactions","href":"/api-reference/transactions/create-a-transaction","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Creates a transaction that buys from one merchant with one of the buyer’s saved cards. Declare what it buys in \", _jsx(_components.code, {\n children: \"purchase\"\n }), \": \", _jsx(_components.code, {\n children: \"ucp_checkout\"\n }), \" sends the merchant’s UCP checkout, which Sapiom drives; \", _jsx(_components.code, {\n children: \"browser_checkout\"\n }), \" states the merchant and total of a checkout page your agent completes in a browser. Name the card in \", _jsx(_components.code, {\n children: \"funding\"\n }), \". Follow the response’s \", _jsx(_components.code, {\n children: \"nextAction\"\n }), \" with \", _jsx(_components.a, {\n href: \"/api-reference/transactions/get-a-transaction\",\n children: \"Get a transaction\"\n }), \". A retry with the same \", _jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \" and body returns the same transaction. Requires a \", _jsx(_components.a, {\n href: \"/api-reference/overview#authentication\",\n children: \"buyer key\"\n }), \".\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Note,Table}=_components;if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`Pick `,_jsx(_components.code,{children:`purchase.type`}),` by merchant. Call `,_jsx(_components.a,{href:`/api-reference/merchants/check-a-merchant`,children:`Check a merchant`}),` first: when `,_jsx(_components.code,{children:`status`}),` is `,_jsx(_components.code,{children:`supported`}),`, send `,_jsx(_components.code,{children:`ucp_checkout`}),`. For any other merchant, send `,_jsx(_components.code,{children:`browser_checkout`}),`. Both need a browser session with `,_jsx(_components.a,{href:`/transactions/browser-pay`,children:`Browser Pay`}),` attached to enter the card.`]})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:_jsx(_components.code,{children:`ucp_checkout`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`browser_checkout`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Who states the items and total`}),_jsxs(_components.td,{children:[`The merchant. `,_jsx(_components.code,{children:`purchase.assertedBy`}),` is `,_jsx(_components.code,{children:`merchant`}),`.`]}),_jsxs(_components.td,{children:[`Your agent. Sapiom doesn’t check them. `,_jsx(_components.code,{children:`purchase.assertedBy`}),` is `,_jsx(_components.code,{children:`agent`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`shipping`})}),_jsx(_components.td,{children:`Optional`}),_jsx(_components.td,{children:`Refused. Enter the address on the checkout page.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Idempotency-Key`})}),_jsx(_components.td,{children:`Required`}),_jsx(_components.td,{children:`Optional. Send one.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Change the purchase`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/transactions/replace-the-checkout`,children:`Replace the checkout`})}),_jsx(_components.td,{children:`Not possible. Cancel and create a new transaction.`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a transaction","description":"Creates a transaction that buys from one merchant with one of the buyer's saved cards. Declare what it buys in `purchase`: `ucp_checkout` sends the merchant's UCP checkout, which Sapiom drives; `browser_checkout` states the merchant and total of a checkout page your agent completes in a browser. Name the card in `funding`. Follow the response's `nextAction` with [Get a transaction](/api-reference/transactions/get-a-transaction). A retry with the same `Idempotency-Key` and body returns the same transaction. Requires a [buyer key](/api-reference/overview#authentication).","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/transactions","href":"/api-reference/transactions/create-a-transaction","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Creates a transaction that buys from one merchant with one of the buyer's saved cards. Declare what it buys in `purchase`: `ucp_checkout` sends the merchant's UCP checkout, which Sapiom drives; `browser_checkout` states the merchant and total of a checkout page your agent completes in a browser. Name the card in `funding`. Follow the response's `nextAction` with [Get a transaction](/api-reference/transactions/get-a-transaction). A retry with the same `Idempotency-Key` and body returns the same transaction. Requires a [buyer key](/api-reference/overview#authentication).","operationId":"TransactionController_createTransaction","parameters":["3b8425cb-32fe-4eee-916c-a7645c90376c"],"requestBody":"9bad8cd8-715d-4d98-97a6-e3f0f407bd69","responses":{"201":"f0cf1506-8d51-4584-ac65-d8e376c49002","400":"0ac90454-0c62-4d57-bcf2-efc421357ec4","401":"8b6d4da6-e397-4a48-b9bf-d5f0fa918055","409":"6633fe71-4f4f-4fb9-ba1c-07f057418822"},"security":["21d3aa3a-8f72-4ffc-b99e-ce898369cde9"],"summary":"Create a transaction","tags":["Transactions"],"x-mint":{"content":"\u003cNote>\nPick `purchase.type` by merchant. Call [Check a merchant](/api-reference/merchants/check-a-merchant) first: when `status` is `supported`, send `ucp_checkout`. For any other merchant, send `browser_checkout`. Both need a browser session with [Browser Pay](/transactions/browser-pay) attached to enter the card.\n\u003c/Note>\n\n| | `ucp_checkout` | `browser_checkout` |\n| --- | --- | --- |\n| Who states the items and total | The merchant. `purchase.assertedBy` is `merchant`. | Your agent. Sapiom doesn't check them. `purchase.assertedBy` is `agent`. |\n| `shipping` | Optional | Refused. Enter the address on the checkout page. |\n| `Idempotency-Key` | Required | Optional. Send one. |\n| Change the purchase | [Replace the checkout](/api-reference/transactions/replace-the-checkout) | Not possible. Cancel and create a new transaction. |"},"method":"post","type":"path","servers":["96df3c0a-5b5d-4163-b956-f849b279a52f"],"path":"/v1/transactions","baseUrlOptions":["https://api.sapiom.ai"],"title":"Create a transaction","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"3b8425cb-32fe-4eee-916c-a7645c90376c":{"name":"Idempotency-Key","required":false,"in":"header","schema":{"type":"string","isRequired":false,"description":"Your unique ID for this transaction. A retry with the same key returns the same transaction instead of buying twice. Required for a `ucp_checkout`. The older spelling `x-idempotency-key` still works; sending both with different keys returns `400 invalid_request`.","uniqueKey":"","typeLabel":"string"},"description":"Your unique ID for this transaction. A retry with the same key returns the same transaction instead of buying twice. Required for a `ucp_checkout`. The older spelling `x-idempotency-key` still works; sending both with different keys returns `400 invalid_request`."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["purchase","funding"],"properties":{"purchase":{"oneOf":[{"type":"object","title":"UCP checkout","description":"What the transaction buys. Each `type` takes only its own fields.","required":["type","merchant","checkout"],"example":{"type":"ucp_checkout","merchant":{"origin":"https://shop.example"},"checkout":{"currency":"USD","line_items":[{"item":{"id":"merchant-product-id"},"quantity":1}]}},"properties":{"type":{"type":"string","enum":["ucp_checkout"],"description":"Sapiom drives the merchant's UCP checkout, and opens it in this call.","isRequired":true,"uniqueKey":"purchase.oneOf.0.type","typeLabel":"enum\u003cstring>"},"merchant":{"type":"object","required":["origin"],"additionalProperties":false,"properties":{"origin":{"type":"string","maxLength":200,"description":"The merchant's origin.","example":"https://shop.example","isRequired":true,"uniqueKey":"purchase.oneOf.0.merchant.origin","typeLabel":"string"}},"isRequired":true,"uniqueKey":"purchase.oneOf.0.merchant","typeLabel":"object"},"checkout":{"type":"object","description":"The merchant's UCP checkout create request, such as `currency` and `line_items`, without payment data. If you send `shipping`, leave `buyer` out.","example":{"currency":"USD","line_items":[{"item":{"id":"merchant-product-id"},"quantity":1}]},"isRequired":true,"uniqueKey":"purchase.oneOf.0.checkout","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"purchase.oneOf.0","typeLabel":"UCP checkout · object"},{"type":"object","title":"Browser checkout","description":"What the transaction buys. Each `type` takes only its own fields.","required":["type","merchant","total"],"example":{"type":"browser_checkout","merchant":{"origin":"https://store.example","name":"Example Store"},"total":{"amount":"54.18","currency":"USD"},"description":"Trail running shoes, size 10, standard shipping","claimedLineItems":[{"title":"Trail running shoes, size 10","quantity":1,"unitAmount":"48.00"}],"pageUrl":"https://store.example/checkout"},"properties":{"type":{"type":"string","enum":["browser_checkout"],"description":"Your agent checks out on the merchant's page and states what it's buying. Don't send `shipping`: your agent enters it on the page.","isRequired":true,"uniqueKey":"purchase.oneOf.1.type","typeLabel":"enum\u003cstring>"},"merchant":{"type":"object","required":["origin"],"additionalProperties":false,"properties":{"origin":{"type":"string","format":"uri","maxLength":200,"description":"The checkout page's origin, with no path, query or fragment. The card is relayed only from a page on this origin.","example":"https://store.example","isRequired":true,"uniqueKey":"purchase.oneOf.1.merchant.origin","typeLabel":"string\u003curi>"},"name":{"type":"string","minLength":1,"maxLength":256,"description":"The merchant's name, shown to the buyer on the approval and security-code pages. Defaults to the origin's hostname.","example":"Example Store","uniqueKey":"purchase.oneOf.1.merchant.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"purchase.oneOf.1.merchant","typeLabel":"object"},"total":{"type":"object","required":["amount","currency"],"additionalProperties":false,"description":"The full amount the checkout page will charge, including shipping and tax. Your rules and the buyer approve this amount. Sapiom can't hold the merchant to it.","properties":{"amount":{"type":"string","maxLength":100,"pattern":"^\\d+(\\.\\d{1,2})?$","description":"A decimal string with at most two decimals, more than zero.","example":"54.18","isRequired":true,"uniqueKey":"purchase.oneOf.1.total.amount","typeLabel":"string"},"currency":{"type":"string","enum":["USD"],"isRequired":true,"uniqueKey":"purchase.oneOf.1.total.currency","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"purchase.oneOf.1.total","typeLabel":"object"},"description":{"type":"string","minLength":1,"maxLength":4000,"description":"What is being bought, in your agent's words.","uniqueKey":"purchase.oneOf.1.description","typeLabel":"string"},"claimedLineItems":{"type":"array","maxItems":64,"description":"The items being bought, as your agent read them from the page. The buyer sees each `title` and `quantity` on the approval and security-code pages.","items":{"type":"object","required":["title","quantity"],"properties":{"title":{"type":"string","minLength":1,"maxLength":4000,"isRequired":true,"uniqueKey":"purchase.oneOf.1.claimedLineItems.items.[INDEX].title","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"purchase.oneOf.1.claimedLineItems.items.[INDEX].quantity","typeLabel":"integer"},"unitAmount":{"type":"string","maxLength":100,"pattern":"^\\d+(\\.\\d{1,2})?$","description":"The price of one, in USD.","uniqueKey":"purchase.oneOf.1.claimedLineItems.items.[INDEX].unitAmount","typeLabel":"string"}},"uniqueKey":"purchase.oneOf.1.claimedLineItems.items.[INDEX]","typeLabel":"object"},"uniqueKey":"purchase.oneOf.1.claimedLineItems","typeLabel":"object[]"},"pageUrl":{"type":"string","format":"uri","maxLength":2048,"description":"The checkout page's URL, kept for the record.","uniqueKey":"purchase.oneOf.1.pageUrl","typeLabel":"string\u003curi>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"purchase.oneOf.1","typeLabel":"Browser checkout · object"}],"isRequired":true,"uniqueKey":"purchase","typeLabel":"UCP checkout · object | Browser checkout · object"},"funding":{"type":"object","description":"The buyer's card that pays. Omit `paymentCardId` to use the buyer's default card.","required":["source"],"properties":{"source":{"type":"string","enum":["external_card"],"description":"Pay with one of the tenant's own payment cards","isRequired":true,"uniqueKey":"funding.source","typeLabel":"enum\u003cstring>"},"paymentCardId":{"type":"string","format":"uuid","description":"The card fixed for this transaction. Omitted: resolve the tenant's default once at transaction creation.","uniqueKey":"funding.paymentCardId","typeLabel":"string\u003cuuid>"}},"isRequired":true,"uniqueKey":"funding","typeLabel":"object"},"shipping":{"type":"object","description":"Only with `ucp_checkout`: the address and contact Sapiom fills into the merchant checkout wherever `checkout` leaves them out. Anything in `checkout` wins. Refused with `browser_checkout`; enter the address on the checkout page.","properties":{"address":{"type":"object","properties":{"street_address":{"type":"string","maxLength":255,"example":"1 Market St","isRequired":true,"uniqueKey":"shipping.address.street_address","typeLabel":"string"},"address_locality":{"type":"string","maxLength":255,"description":"City or locality","example":"San Francisco","isRequired":true,"uniqueKey":"shipping.address.address_locality","typeLabel":"string"},"address_country":{"type":"string","pattern":"/^[A-Z]{2}$/","description":"ISO 3166-1 alpha-2 country code","example":"US","isRequired":true,"uniqueKey":"shipping.address.address_country","typeLabel":"string"},"first_name":{"type":"string","maxLength":255,"example":"Jane","uniqueKey":"shipping.address.first_name","typeLabel":"string"},"last_name":{"type":"string","maxLength":255,"example":"Buyer","uniqueKey":"shipping.address.last_name","typeLabel":"string"},"extended_address":{"type":"string","maxLength":255,"description":"Apartment, suite, unit","example":"Suite 300","uniqueKey":"shipping.address.extended_address","typeLabel":"string"},"address_region":{"type":"string","maxLength":255,"description":"State, province or region","example":"CA","uniqueKey":"shipping.address.address_region","typeLabel":"string"},"postal_code":{"type":"string","maxLength":32,"example":"94105","uniqueKey":"shipping.address.postal_code","typeLabel":"string"}},"required":["street_address","address_locality","address_country"],"uniqueKey":"shipping.address","typeLabel":"object"},"contact":{"type":"object","properties":{"email":{"type":"string","format":"email","example":"jane@example.com","uniqueKey":"shipping.contact.email","typeLabel":"string\u003cemail>"},"phone_number":{"type":"string","maxLength":32,"description":"Some merchants require a phone number for delivery","example":"+14155550100","uniqueKey":"shipping.contact.phone_number","typeLabel":"string"}},"uniqueKey":"shipping.contact","typeLabel":"object"}},"uniqueKey":"shipping","typeLabel":"object"},"returnUrl":{"type":"string","maxLength":2048,"description":"Return destination after hosted approval and card confirmation. Must use an origin or app scheme registered by the organization.","uniqueKey":"returnUrl","typeLabel":"string"},"metadata":{"type":"object","description":"Additional metadata for the transaction","uniqueKey":"metadata","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ucp_checkout":{"title":"ucp_checkout","value":{"purchase":{"type":"ucp_checkout","merchant":{"origin":"https://shop.example"},"checkout":{"currency":"USD","line_items":[{"item":{"id":"merchant-product-id"},"quantity":1}]}},"funding":{"source":"external_card","paymentCardId":"00000000-0000-4000-8000-000000000001"}}},"browser_checkout":{"title":"browser_checkout","value":{"purchase":{"type":"browser_checkout","merchant":{"origin":"https://store.example","name":"Example Store"},"total":{"amount":"54.18","currency":"USD"},"description":"Trail running shoes, size 10, standard shipping","claimedLineItems":[{"title":"Trail running shoes, size 10","quantity":1,"unitAmount":"48.00"}],"pageUrl":"https://store.example/checkout"},"funding":{"source":"external_card","paymentCardId":"00000000-0000-4000-8000-000000000001"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"f0cf1506-8d51-4584-ac65-d8e376c49002":{"description":"Transaction created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Transaction ID","example":"123e4567-e89b-12d3-a456-426614174000","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"tenantId":{"type":"string","description":"Organization ID","example":"123e4567-e89b-12d3-a456-426614174000","isRequired":true,"uniqueKey":"tenantId","typeLabel":"string"},"serviceName":{"type":"string","description":"Service identifier","example":"openai","isRequired":true,"uniqueKey":"serviceName","typeLabel":"string"},"actionName":{"type":"string","description":"Action being performed","example":"completion","isRequired":true,"uniqueKey":"actionName","typeLabel":"string"},"resourceName":{"type":"string","description":"Resource being accessed","example":"gpt-4","isRequired":true,"uniqueKey":"resourceName","typeLabel":"string"},"status":{"enum":["pending","preparing","waiting_approval","authorized","completed","denied","cancelled","needs_revision"],"type":"string","description":"Transaction status","example":"authorized","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"requiresPayment":{"type":"boolean","description":"Whether the transaction requires payment","example":true,"isRequired":true,"uniqueKey":"requiresPayment","typeLabel":"boolean"},"createdAt":{"format":"date-time","type":"string","description":"Creation timestamp","example":"2024-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"format":"date-time","type":"string","description":"Last update timestamp","example":"2024-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"returnUrl":{"oneOf":[{"type":"string","description":"Integrator-provided return destination for hosted transaction steps","uniqueKey":"returnUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"Integrator-provided return destination for hosted transaction steps","uniqueKey":"returnUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"returnUrl","typeLabel":"string | null"},"nextAction":{"type":"object","description":"The next step in one vocabulary (`type` + `actor`: `wait`, `buyer_security_code`, `approval`, `payment_ready`, `closed`, …), always present for a purchase. For a transaction that buys nothing, only an approval or security-code step, absent when nobody needs to act. Links are derived at read time.","uniqueKey":"nextAction","typeLabel":"object"},"purchase":{"type":"object","description":"For a purchase: what is bought, from whom, for how much, and who said so (`assertedBy`: `merchant` for the merchant's own checkout answer, `agent` for the agent's unchecked statement). Read from durable records; absent for a transaction that buys nothing.","example":{"type":"ucp_checkout","assertedBy":"merchant","merchant":{"origin":"https://shop.example"},"total":{"amount":"19.99","currency":"USD"},"lineItems":[{"title":"Mug","itemId":"item_123","quantity":1,"unitAmount":"19.99"}],"revision":1},"uniqueKey":"purchase","typeLabel":"object"},"order":{"oneOf":[{"type":"object","description":"For a purchase: the merchant-confirmed order outcome (`confirmed`, `not_confirmed`, `unknown`). With `confirmed`, the merchant's confirmation from its completed answer, for the platform to show the cardholder: `id`, `label` (the order number the buyer sees), `permalinkUrl` (the order on the merchant's site) and `links` (its refund, shipping, terms, privacy and contact pages, `{ type, url, title? }`), each null or empty when the merchant sent none. Null for a browser purchase, which has no order confirmation.","example":{"outcome":"confirmed","id":"gid://shopify/Order/1","label":"#1008","permalinkUrl":"https://shop.example/orders/1","links":[{"type":"refund_policy","url":"https://shop.example/policies/refund-policy","title":"Refund policy"}]},"uniqueKey":"order.oneOf.0","typeLabel":"object"},{"type":"null","description":"For a purchase: the merchant-confirmed order outcome (`confirmed`, `not_confirmed`, `unknown`). With `confirmed`, the merchant's confirmation from its completed answer, for the platform to show the cardholder: `id`, `label` (the order number the buyer sees), `permalinkUrl` (the order on the merchant's site) and `links` (its refund, shipping, terms, privacy and contact pages, `{ type, url, title? }`), each null or empty when the merchant sent none. Null for a browser purchase, which has no order confirmation.","example":{"outcome":"confirmed","id":"gid://shopify/Order/1","label":"#1008","permalinkUrl":"https://shop.example/orders/1","links":[{"type":"refund_policy","url":"https://shop.example/policies/refund-policy","title":"Refund policy"}]},"uniqueKey":"order.oneOf.1","typeLabel":"null"}],"uniqueKey":"order","typeLabel":"object | null"},"version":{"type":"string","description":"For a purchase: changes whenever anything the caller acts on changes. Pass it back as `since` to wait for the next change.","uniqueKey":"version","typeLabel":"string"},"approvals":{"type":"object","description":"Approval obligations and linked successor attempts; inspect an approval for current authority","uniqueKey":"approvals","typeLabel":"object"},"serviceId":{"oneOf":[{"type":"string","description":"Service entity ID (foreign key reference)","example":"123e4567-e89b-12d3-a456-426614174000","uniqueKey":"serviceId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Service entity ID (foreign key reference)","example":"123e4567-e89b-12d3-a456-426614174000","uniqueKey":"serviceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"serviceId","typeLabel":"string | null"},"qualifiers":{"type":"object","description":"Additional qualifiers for the transaction","example":{"model":"gpt-4","tokens":1000},"uniqueKey":"qualifiers","typeLabel":"object"},"metadata":{"type":"object","description":"Additional metadata for the transaction","uniqueKey":"metadata","typeLabel":"object"},"authorizedAt":{"format":"date-time","type":"string","description":"Authorization timestamp","example":"2024-01-01T00:00:00.000Z","uniqueKey":"authorizedAt","typeLabel":"string\u003cdate-time>"},"completedAt":{"format":"date-time","type":"string","description":"Completion timestamp","example":"2024-01-01T00:00:00.000Z","uniqueKey":"completedAt","typeLabel":"string\u003cdate-time>"},"outcome":{"enum":["success","error"],"type":"string","description":"Transaction outcome (set when completed)","example":"success","uniqueKey":"outcome","typeLabel":"enum\u003cstring>"},"currentPaymentTransactionId":{"oneOf":[{"type":"string","description":"Current payment transaction ID if transaction requires payment","example":"123e4567-e89b-12d3-a456-426614174000","uniqueKey":"currentPaymentTransactionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Current payment transaction ID if transaction requires payment","example":"123e4567-e89b-12d3-a456-426614174000","uniqueKey":"currentPaymentTransactionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"currentPaymentTransactionId","typeLabel":"string | null"},"payment":{"type":"object","description":"Payment transaction details when transaction requires payment","required":["id","transactionId","fiatAmount","status","createdAt","updatedAt"],"properties":{"id":{"type":"string","description":"Payment transaction ID","example":"123e4567-e89b-12d3-a456-426614174000","isRequired":true,"uniqueKey":"payment.id","typeLabel":"string"},"transactionId":{"type":"string","description":"Transaction ID this payment belongs to","example":"123e4567-e89b-12d3-a456-426614174000","isRequired":true,"uniqueKey":"payment.transactionId","typeLabel":"string"},"fiatAmount":{"type":"string","description":"The payment amount in USD, as a decimal string.","isRequired":true,"uniqueKey":"payment.fiatAmount","typeLabel":"string"},"status":{"enum":["pending","preparing","authorized","settling","completed","failed","cancelled"],"type":"string","description":"Payment status","example":"authorized","isRequired":true,"uniqueKey":"payment.status","typeLabel":"enum\u003cstring>"},"createdAt":{"format":"date-time","type":"string","description":"Creation timestamp","example":"2024-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"payment.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"format":"date-time","type":"string","description":"Last update timestamp","example":"2024-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"payment.updatedAt","typeLabel":"string\u003cdate-time>"},"fundingSource":{"type":"string","description":"`external_card`: the buyer's saved card pays.","enum":["external_card"],"uniqueKey":"payment.fundingSource","typeLabel":"enum\u003cstring>"},"paymentCardId":{"oneOf":[{"type":"string","description":"The card paying a card-funded payment","format":"uuid","uniqueKey":"payment.paymentCardId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","description":"The card paying a card-funded payment","format":"uuid","uniqueKey":"payment.paymentCardId.oneOf.1","typeLabel":"null"}],"uniqueKey":"payment.paymentCardId","typeLabel":"string\u003cuuid> | null"},"credentialRoute":{"oneOf":[{"type":"string","description":"`real_card_number`: the relay puts the real card into the merchant's payment request.","enum":["real_card_number"],"uniqueKey":"payment.credentialRoute.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"`real_card_number`: the relay puts the real card into the merchant's payment request.","enum":["real_card_number"],"uniqueKey":"payment.credentialRoute.oneOf.1","typeLabel":"null"}],"uniqueKey":"payment.credentialRoute","typeLabel":"enum\u003cstring> | null"},"placeholder":{"type":"object","description":"An authorized card payment's placeholder card, while it can still be relayed. Submit it in the merchant's card form; the relay swaps it for the real credential once.","required":["number","expMonth","expYear","cvc","brand","expiresAt","injectionRef","transactionId"],"properties":{"number":{"type":"string","description":"Card number shaped like the real card's brand; not a real card","example":"4000123412341234","isRequired":true,"uniqueKey":"payment.placeholder.number","typeLabel":"string"},"expMonth":{"type":"number","example":7,"isRequired":true,"uniqueKey":"payment.placeholder.expMonth","typeLabel":"number"},"expYear":{"type":"number","example":2029,"isRequired":true,"uniqueKey":"payment.placeholder.expYear","typeLabel":"number"},"cvc":{"type":"string","example":"123","isRequired":true,"uniqueKey":"payment.placeholder.cvc","typeLabel":"string"},"brand":{"type":"string","example":"visa","isRequired":true,"uniqueKey":"payment.placeholder.brand","typeLabel":"string"},"expiresAt":{"type":"string","description":"After this the placeholder no longer relays","example":"2026-10-13T13:00:00.000Z","isRequired":true,"uniqueKey":"payment.placeholder.expiresAt","typeLabel":"string"},"injectionRef":{"type":"string","description":"The armed injection the relay looks the placeholder up by","isRequired":true,"uniqueKey":"payment.placeholder.injectionRef","typeLabel":"string"},"transactionId":{"type":"string","description":"The transaction the placeholder is relayed through","isRequired":true,"uniqueKey":"payment.placeholder.transactionId","typeLabel":"string"}},"uniqueKey":"payment.placeholder","typeLabel":"object"},"reason":{"oneOf":[{"type":"string","description":"Why the payment failed, when it is a public code: `sapiom_error` (a fault on Sapiom's side; report the transaction's requestId). Absent otherwise; a transaction's checkout `nextAction` says why it ended.","enum":["sapiom_error"],"example":"sapiom_error","uniqueKey":"payment.reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Why the payment failed, when it is a public code: `sapiom_error` (a fault on Sapiom's side; report the transaction's requestId). Absent otherwise; a transaction's checkout `nextAction` says why it ended.","enum":["sapiom_error"],"example":"sapiom_error","uniqueKey":"payment.reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"payment.reason","typeLabel":"enum\u003cstring> | null"},"authorizedAt":{"oneOf":[{"format":"date-time","type":"string","description":"Authorization timestamp","example":"2024-01-01T00:00:00.000Z","uniqueKey":"payment.authorizedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","description":"Authorization timestamp","example":"2024-01-01T00:00:00.000Z","uniqueKey":"payment.authorizedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"payment.authorizedAt","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"payment","typeLabel":"object"},"trace":{"type":"object","description":"Trace information for workflow grouping","required":["id"],"properties":{"id":{"type":"string","description":"Trace ID","example":"123e4567-e89b-12d3-a456-426614174000","isRequired":true,"uniqueKey":"trace.id","typeLabel":"string"},"externalId":{"oneOf":[{"type":"string","description":"Optional user-supplied external ID for trace correlation","example":"checkout-session-abc123","uniqueKey":"trace.externalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional user-supplied external ID for trace correlation","example":"checkout-session-abc123","uniqueKey":"trace.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"trace.externalId","typeLabel":"string | null"}},"uniqueKey":"trace","typeLabel":"object"},"agentId":{"oneOf":[{"type":"string","description":"Agent ID if transaction is associated with an agent","example":"123e4567-e89b-12d3-a456-426614174000","uniqueKey":"agentId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Agent ID if transaction is associated with an agent","example":"123e4567-e89b-12d3-a456-426614174000","uniqueKey":"agentId.oneOf.1","typeLabel":"null"}],"uniqueKey":"agentId","typeLabel":"string | null"},"agent":{"type":"object","description":"Agent information if transaction is associated with an agent","required":["id","tenantId","label","name","status","createdAt","updatedAt"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"agent.id","typeLabel":"string"},"tenantId":{"type":"string","isRequired":true,"uniqueKey":"agent.tenantId","typeLabel":"string"},"label":{"type":"string","isRequired":true,"uniqueKey":"agent.label","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"agent.name","typeLabel":"string"},"status":{"type":"string","isRequired":true,"uniqueKey":"agent.status","typeLabel":"string"},"createdAt":{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"agent.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"agent.updatedAt","typeLabel":"string\u003cdate-time>"},"description":{"oneOf":[{"type":"string","uniqueKey":"agent.description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"agent.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.description","typeLabel":"string | null"}},"uniqueKey":"agent","typeLabel":"object"}},"required":["id","tenantId","serviceName","actionName","resourceName","status","requiresPayment","createdAt","updatedAt"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"123e4567-e89b-12d3-a456-426614174000","tenantId":"123e4567-e89b-12d3-a456-426614174000","serviceName":"openai","actionName":"completion","resourceName":"gpt-4","status":"authorized","requiresPayment":true,"createdAt":"2024-01-01T00:00:00.000Z","updatedAt":"2024-01-01T00:00:00.000Z","returnUrl":"\u003cstring>","nextAction":{},"purchase":{"type":"ucp_checkout","assertedBy":"merchant","merchant":{"origin":"https://shop.example"},"total":{"amount":"19.99","currency":"USD"},"lineItems":[{"title":"Mug","itemId":"item_123","quantity":1,"unitAmount":"19.99"}],"revision":1},"order":{"outcome":"confirmed","id":"gid://shopify/Order/1","label":"#1008","permalinkUrl":"https://shop.example/orders/1","links":[{"type":"refund_policy","url":"https://shop.example/policies/refund-policy","title":"Refund policy"}]},"version":"\u003cstring>","approvals":{},"serviceId":"123e4567-e89b-12d3-a456-426614174000","qualifiers":{"model":"gpt-4","tokens":1000},"metadata":{},"authorizedAt":"2024-01-01T00:00:00.000Z","completedAt":"2024-01-01T00:00:00.000Z","outcome":"success","currentPaymentTransactionId":"123e4567-e89b-12d3-a456-426614174000","payment":{"id":"123e4567-e89b-12d3-a456-426614174000","transactionId":"123e4567-e89b-12d3-a456-426614174000","fiatAmount":"\u003cstring>","status":"authorized","createdAt":"2024-01-01T00:00:00.000Z","updatedAt":"2024-01-01T00:00:00.000Z","fundingSource":"external_card","paymentCardId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","credentialRoute":"real_card_number","placeholder":{"number":"4000123412341234","expMonth":7,"expYear":2029,"cvc":"123","brand":"visa","expiresAt":"2026-10-13T13:00:00.000Z","injectionRef":"\u003cstring>","transactionId":"\u003cstring>"},"reason":"sapiom_error","authorizedAt":"2024-01-01T00:00:00.000Z"},"trace":{"id":"123e4567-e89b-12d3-a456-426614174000","externalId":"checkout-session-abc123"},"agentId":"123e4567-e89b-12d3-a456-426614174000","agent":{"id":"\u003cstring>","tenantId":"\u003cstring>","label":"\u003cstring>","name":"\u003cstring>","status":"\u003cstring>","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z","description":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"0ac90454-0c62-4d57-bcf2-efc421357ec4":{"description":"Invalid request data. Card funding that names no card, for a tenant with no saved card that can pay, is refused with `code: \"no_saved_card\"`: send the cardholder a card setup link, then create the transaction again. A card that can't pay is refused with `code: \"card_unavailable\"` and a `cardReason` (`missing`, `removed`, `failed`, `pending`, `setup_pending`, `wrong_environment`), or with `code: \"no_card_route\"`. A `purchase` that is wrong is refused with `code` `unsupported_purchase_type`, `invalid_purchase`, `field_not_allowed` or `field_required`, and `field` naming what to fix. Different keys in `Idempotency-Key` and `x-idempotency-key` are refused with `code: \"invalid_request\"`.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"8b6d4da6-e397-4a48-b9bf-d5f0fa918055":{"description":"Unauthorized - invalid or missing API key","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"6633fe71-4f4f-4fb9-ba1c-07f057418822":{"description":"`idempotency_conflict`: the purchase replays an `Idempotency-Key` first used for a different request.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"21d3aa3a-8f72-4ffc-b99e-ce898369cde9":{"api-key":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your platform key for buyer management, or a buyer key for everything else.","scopes":[],"schemeName":"api-key"}}},"servers":{"96df3c0a-5b5d-4163-b956-f849b279a52f":{"url":"https://api.sapiom.ai","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your platform key for buyer management, or a buyer key for everything else.","scopes":[],"schemeName":"api-key"},"schema":{"title":"x-api-key","type":"string","description":"Your platform key for buyer management, or a buyer key for everything else.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"api-key","name":"x-api-key"}],"title":"api-key"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"sapiom-1f975ca2","siteName":"Sapiom Pay","title":"Create a transaction - Sapiom Pay","contextualStarterQuestions":[{"_id":"6aed01b6232f96e0946f5c6a","deploymentId":"6ad7ec02d3b4a79828e24ed4","questionText":"When should I use ucp_checkout?","status":"active","generatedBy":"contextual","path":"api-reference/transactions/create-a-transaction","createdAt":"2026-11-05T22:22:46.052Z","updatedAt":"2026-11-05T22:22:46.052Z","__v":0},{"_id":"6aed01b6232f96e0946f5c6b","deploymentId":"6ad7ec02d3b4a79828e24ed4","questionText":"How do I retry a transaction?","status":"active","generatedBy":"contextual","path":"api-reference/transactions/create-a-transaction","createdAt":"2026-11-05T22:22:46.052Z","updatedAt":"2026-11-05T22:22:46.052Z","__v":0},{"_id":"6aed01b6232f96e0946f5c6c","deploymentId":"6ad7ec02d3b4a79828e24ed4","questionText":"Can I change a purchase?","status":"active","generatedBy":"contextual","path":"api-reference/transactions/create-a-transaction","createdAt":"2026-11-05T22:22:46.052Z","updatedAt":"2026-11-05T22:22:46.052Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T01:36:30.919Z","originalFileLocation":"api-reference/transactions/create-a-transaction.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=\"Creates a transaction that buys from one merchant with one of the buyer\u0026#x27;s saved cards. Declare what it buys in purchase: ucp_checkout sends the merchant\u0026#x27;s UCP checkout, which Sapiom drives; browser_checkout states the merchant and total of a checkout page your agent completes in a browser. Name the card in funding. Follow the response\u0026#x27;s nextAction with Get a transaction. A retry with the same Idempotency-Key and body returns the same transaction. Requires a buyer key.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Sapiom Pay\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sapiom-1f975ca2/YgmZC92WGBAfsBaa/_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/sapiom-1f975ca2/YgmZC92WGBAfsBaa/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sapiom-1f975ca2/YgmZC92WGBAfsBaa/_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/sapiom-1f975ca2/YgmZC92WGBAfsBaa/_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/sapiom-1f975ca2/YgmZC92WGBAfsBaa/_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/sapiom-1f975ca2/YgmZC92WGBAfsBaa/_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/sapiom-1f975ca2/YgmZC92WGBAfsBaa/_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/sapiom-1f975ca2/YgmZC92WGBAfsBaa/_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/sapiom-1f975ca2/YgmZC92WGBAfsBaa/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a transaction - Sapiom Pay\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a transaction that buys from one merchant with one of the buyer\u0026#x27;s saved cards. Declare what it buys in purchase: ucp_checkout sends the merchant\u0026#x27;s UCP checkout, which Sapiom drives; browser_checkout states the merchant and total of a checkout page your agent completes in a browser. Name the card in funding. Follow the response\u0026#x27;s nextAction with Get a transaction. A retry with the same Idempotency-Key and body returns the same transaction. Requires a buyer key.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Sapiom Pay\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sapiom.ai/api-reference/transactions/create-a-transaction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sapiom-1f975ca2.mintlify.site/_mintlify/api/og/v2?division=Transactions\u0026amp;title=Create+a+transaction\u0026amp;description=Creates+a+transaction+that+buys+from+one+merchant+with+one+of+the+buyer%27s+saved+cards.+Declare+what+it+buys+in+%60purchase%60%3A+%60ucp_checkout%60+sends+the+merchant%27s+U\u0026amp;theme=e82bf3ae0cd73b9b01c326a0\u0026amp;signature=45c9c52de35b8445e07684c1b7ecc4b64e0173cf08be908fe2a2f3f9cb4700ab\">\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 transaction - Sapiom Pay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a transaction that buys from one merchant with one of the buyer\u0026#x27;s saved cards. Declare what it buys in purchase: ucp_checkout sends the merchant\u0026#x27;s UCP checkout, which Sapiom drives; browser_checkout states the merchant and total of a checkout page your agent completes in a browser. Name the card in funding. Follow the response\u0026#x27;s nextAction with Get a transaction. A retry with the same Idempotency-Key and body returns the same transaction. Requires a buyer key.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sapiom-1f975ca2.mintlify.site/_mintlify/api/og/v2?division=Transactions\u0026amp;title=Create+a+transaction\u0026amp;description=Creates+a+transaction+that+buys+from+one+merchant+with+one+of+the+buyer%27s+saved+cards.+Declare+what+it+buys+in+%60purchase%60%3A+%60ucp_checkout%60+sends+the+merchant%27s+U\u0026amp;theme=e82bf3ae0cd73b9b01c326a0\u0026amp;signature=45c9c52de35b8445e07684c1b7ecc4b64e0173cf08be908fe2a2f3f9cb4700ab\">\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/sapiom-1f975ca2/YgmZC92WGBAfsBaa/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Sapiom Pay\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sapiom.ai/api-reference/transactions/create-a-transaction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/transactions/create-a-transaction.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sapiom.ai/#organization\",\"name\":\"Sapiom Pay\",\"url\":\"https://docs.sapiom.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sapiom-1f975ca2/K4zW5IjQAMJutZvi/logo/light.svg?fit=max\u0026auto=format\u0026n=K4zW5IjQAMJutZvi\u0026q=85\u0026s=37d04ab53c9792ff376364fd56a2799e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sapiom.ai#website\",\"name\":\"Sapiom Pay\",\"url\":\"https://docs.sapiom.ai\",\"publisher\":{\"@id\":\"https://docs.sapiom.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sapiom.ai/api-reference/transactions/create-a-transaction#webpage\",\"url\":\"https://docs.sapiom.ai/api-reference/transactions/create-a-transaction\",\"name\":\"Create a transaction\",\"description\":\"Creates a transaction that buys from one merchant with one of the buyer's saved cards. Declare what it buys in purchase: ucp_checkout sends the merchant's UCP checkout, which Sapiom drives; browser_checkout states the merchant and total of a checkout page your agent completes in a browser. Name the card in funding. Follow the response's nextAction with Get a transaction. A retry with the same Idempotency-Key and body returns the same transaction. Requires a buyer key.\",\"dateModified\":\"2026-11-04T01:36:30.919Z\",\"isPartOf\":{\"@id\":\"https://docs.sapiom.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sapiom.ai/api-reference/transactions/create-a-transaction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sapiom.ai/api-reference/transactions/create-a-transaction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"REST API\",\"item\":\"https://docs.sapiom.ai/api-reference/buyers/create-a-buyer\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a transaction\",\"item\":\"https://docs.sapiom.ai/api-reference/transactions/create-a-transaction\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.sapiom.ai/api-reference/transactions/create-a-transaction#apireference\",\"headline\":\"Create a transaction\",\"name\":\"Create a transaction\",\"description\":\"Creates a transaction that buys from one merchant with one of the buyer's saved cards. Declare what it buys in purchase: ucp_checkout sends the merchant's UCP checkout, which Sapiom drives; browser_checkout states the merchant and total of a checkout page your agent completes in a browser. Name the card in funding. Follow the response's nextAction with Get a transaction. A retry with the same Idempotency-Key and body returns the same transaction. Requires a buyer key.\",\"url\":\"https://docs.sapiom.ai/api-reference/transactions/create-a-transaction\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sapiom.ai/api-reference/transactions/create-a-transaction#webpage\"},\"dateModified\":\"2026-11-04T01:36:30.919Z\",\"publisher\":{\"@id\":\"https://docs.sapiom.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sapiom.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Sapiom Pay\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Sapiom Pay","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":""}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"Sapiom Pay API overview","sidebarTitle":"Overview","href":"/api-reference/overview"}]},{"group":"REST API","pages":[{"group":"Buyers","pages":[{"title":"Create a buyer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tenants","href":"/api-reference/buyers/create-a-buyer"},{"title":"List buyers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tenants","href":"/api-reference/buyers/list-buyers"},{"title":"Delete a buyer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/tenants/{tenantId}","href":"/api-reference/buyers/delete-a-buyer"},{"title":"Create a buyer key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tenants/{tenantId}/api-keys","href":"/api-reference/buyers/create-a-buyer-key"}]},{"group":"Cards","pages":[{"title":"Create a setup link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payment-cards/setup-links","href":"/api-reference/cards/create-a-setup-link"},{"title":"Get a setup link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payment-cards/setup-links/{linkId}","href":"/api-reference/cards/get-a-setup-link"},{"title":"List cards","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payment-cards","href":"/api-reference/cards/list-cards"},{"title":"Get a card","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payment-cards/{cardId}","href":"/api-reference/cards/get-a-card"},{"title":"Set the default card","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/payment-cards/{cardId}/default","href":"/api-reference/cards/set-the-default-card"},{"title":"Remove a card","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/payment-cards/{cardId}","href":"/api-reference/cards/remove-a-card"}]},{"group":"Spending limits","pages":[{"title":"Get spending limits","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payment-cards/{cardId}/spending-limits","href":"/api-reference/spending-limits/get-spending-limits"},{"title":"Set spending limits","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/payment-cards/{cardId}/spending-limits","href":"/api-reference/spending-limits/set-spending-limits"}]},{"group":"Merchants","pages":[{"title":"Check a merchant","description":"Checks whether a merchant offers a UCP checkout Sapiom can drive. When `status` is `supported`, create the transaction with `purchase.type: \"ucp_checkout\"`. Otherwise, use `browser_checkout` and complete the merchant's checkout page in a browser with Browser Pay attached. Requires a [buyer key](/api-reference/overview#authentication).","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/transaction-compatibility","href":"/api-reference/merchants/check-a-merchant"}]},{"group":"Transactions","pages":[{"title":"Create a transaction","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/transactions","href":"/api-reference/transactions/create-a-transaction"},{"title":"Get a transaction","description":"Returns the transaction's `purchase`, `order`, `version` and `nextAction`. `nextAction` uses the same `type` and `actor` values as the MCP tools. To wait for a change, pass `maxWaitSeconds` and your last `version` as `since`. Requires a [buyer key](/api-reference/overview#authentication).","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/transactions/{transactionId}","href":"/api-reference/transactions/get-a-transaction"},{"title":"Cancel a transaction","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/transactions/{transactionId}/cancel","href":"/api-reference/transactions/cancel-a-transaction"},{"title":"Open the checkout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/transactions/{transactionId}/ucp/checkout","href":"/api-reference/transactions/open-the-checkout"},{"title":"Get the checkout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/transactions/{transactionId}/ucp/checkout","href":"/api-reference/transactions/get-the-checkout"},{"title":"Replace the checkout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/transactions/{transactionId}/ucp/checkout","href":"/api-reference/transactions/replace-the-checkout"},{"title":"Cancel the checkout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/transactions/{transactionId}/ucp/checkout/cancel","href":"/api-reference/transactions/cancel-the-checkout"},{"title":"Refresh the checkout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/transactions/{transactionId}/ucp/checkout/refresh","href":"/api-reference/transactions/refresh-the-checkout"}]},{"group":"Browser Pay relay","pages":[{"title":"Relay a card request","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/transactions/{transactionId}/payment/relay","href":"/api-reference/browser-pay-relay/relay-a-card-request"}]}]},{"group":"MCP and SDK","pages":[{"title":"Sapiom Pay MCP tools reference","sidebarTitle":"MCP tools","href":"/api-reference/mcp-tools"},{"title":"Browser Pay SDK reference","sidebarTitle":"Browser Pay SDK","href":"/api-reference/browser-pay-sdk"}]},{"group":"Errors","pages":[{"title":"Sapiom Pay errors and how to handle them","sidebarTitle":"Errors","href":"/api-reference/errors"}]}]}]},"basePath":"","title":"Create a transaction - Sapiom Pay","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}