{
"error": "Only pending payments can be cancelled (current status: completed)"
}
Cancels a pending checkout session — the hosted page then treats it as closed and no deposit will be accepted.No API key required (possession of the payment id is the gate for this public checkout flow).
Any other non-pending state returns 409, e.g. Only pending payments can be cancelled (current status: completed).
Sessions that simply run out of time are marked expired automatically (see expires_at on the session) — you don’t need to cancel those. To expire one early yourself, cancel it while it’s still pending.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Tribridge","description":"Accept Solana and Sui crypto payments with one API. Automatic settlement, real-time webhooks, and a 5-minute integration.","colors":{"primary":"#2b6bff","light":"#FFFFFF","dark":"#2b6bff"},"logo":{"light":"https://mintcdn.com/tribridge/ez2qRTSP_I_EOQfC/logo/light.png?fit=max\u0026auto=format\u0026n=ez2qRTSP_I_EOQfC\u0026q=85\u0026s=b6c9747d6d25b7a8ba7e0cd287ad77f8","dark":"https://mintcdn.com/tribridge/ez2qRTSP_I_EOQfC/logo/dark.png?fit=max\u0026auto=format\u0026n=ez2qRTSP_I_EOQfC\u0026q=85\u0026s=32ad49372b5511e70f36739733fdc3a1"},"favicon":"https://mintcdn.com/tribridge/ez2qRTSP_I_EOQfC/favicon.png?fit=max\u0026auto=format\u0026n=ez2qRTSP_I_EOQfC\u0026q=85\u0026s=288cf39ffc8ee7bdb7888bda4136d268","api":{"openapi":["openapi/openapi.json"],"mdx":{"auth":{"method":"key","name":"x-api-key"},"server":"https://api.tribridge.xyz"}},"appearance":{"default":"system"},"navbar":{"links":[{"href":"https://calendly.com/worgubelieve/30min","label":"Book a Demo"},{"href":"https://tribridge.xyz/overview","label":"Dashboard"}],"primary":{"type":"button","label":"Get started","href":"https://tribridge.xyz/signup"}},"footer":{"socials":{"x":"https://x.com/usetribridge","github":"https://github.com/usetribridge","linkedin":"https://linkedin.com/company/usetribridge"}},"fonts":{"family":"Inter"},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"markdown":{"instructions":"Tribridge is a crypto payment gateway for Solana and Sui (TON is coming soon). API base URL is https://api.tribridge.xyz. The API Reference documents ONLY the public endpoint surface: checkout sessions (create/get/generate-wallet/customer/simulate/verify/cancel), the two public payment-link endpoints, health probes, and the changelog. Server-side calls that create payments authenticate with the x-api-key header using a tri_test_... key (fully simulated test mode, no real funds) or tri_live_... key (real mainnet payments) - never expose keys client-side; all other documented endpoints are public with no auth. Dashboard, admin, OTP/auth, payouts, wallets, and webhook-management endpoints are intentionally NOT part of the public docs - they are dashboard-only and must not be presented as public API. Merchant test mode is simulated, not testnet. Refunds are automatic only (underpaid/overpaid), there is no manual refund endpoint. Always verify webhook HMAC-SHA256 signatures from the X-Tribridge-Signature header before trusting payloads. If you are an AI agent: fetch https://docs.tribridge.xyz/llms-full.txt for all documentation in one file, https://docs.tribridge.xyz/openapi/openapi.json for the machine-readable OpenAPI spec, or connect to the read-only MCP server at https://docs.tribridge.xyz/mcp. Any page is available as Markdown by appending .md to its URL. Use only the documented endpoints and fields; do not invent SDK packages or endpoints."},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tribridge","hasAudioNarration":false,"actualSubdomain":"tribridge","customDomains":["docs.tribridge.xyz"],"gitSource":{"type":"github","owner":"code-ninjax","repo":"tribridge","deployBranch":"main","contentDirectory":"tribridge-docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6adcb8ada22308d93b4ea553","collectionId":"4b2dc334-4ed9-46e5-83b1-d49df8917450","liveDeploymentHistoryId":"6adcb8ada22308d93b4ea553","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6adcb8ada22308d93b4ea553","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"API Reference","count":17},{"language":"default","tag":"Guides","count":9},{"language":"default","tag":"Checkout Sessions","count":7},{"language":"default","tag":"Get Started","count":5},{"language":"default","tag":"Core Concepts","count":4},{"language":"default","tag":"Payment Links","count":3},{"language":"default","tag":"Developers","count":3},{"language":"default","tag":"Status","count":2},{"language":"default","tag":"Webhooks \u0026 Refunds","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":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","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":"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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"cancel-payment","slug":"/cancel-payment","pageMetadata":{"title":"Cancel checkout session","description":"Cancel a pending checkout session. Idempotent.","openapi":"POST /payments/checkout/{id}/cancel","href":"/cancel-payment"},"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: \"Cancel a pending checkout session. Idempotent.\"\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={code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Note}=_components;if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Cancels a `,_jsx(_components.strong,{children:`pending`}),` checkout session — the hosted page then treats it as closed and no deposit will be accepted.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`No API key required`}),` (possession of the payment id is the gate for this public checkout flow).`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Idempotent`}),` — cancelling an already-cancelled session returns `,_jsx(_components.code,{children:`200 { \"status\": \"cancelled\" }`}),` again.`]}),`\n`,_jsxs(_components.li,{children:[`Any other non-pending state returns `,_jsx(_components.code,{children:`409`}),`, e.g. `,_jsx(_components.code,{children:`Only pending payments can be cancelled (current status: completed)`}),`.`]}),`\n`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Sessions that simply run out of time are marked `,_jsx(_components.code,{children:`expired`}),` automatically (see `,_jsx(_components.code,{children:`expires_at`}),` on the session) — you don’t need to cancel those. To expire one early yourself, cancel it while it’s still pending.`]})})]})}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":"Cancel checkout session","description":"Cancel a pending checkout session. Idempotent.","openapi":"POST /payments/checkout/{id}/cancel","href":"/cancel-payment"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Checkout Sessions"],"summary":"Cancel checkout session","operationId":"cancelCheckoutPayment","description":"Cancel a pending checkout session. Idempotent.","parameters":["b4f72b9e-cd71-4b23-aaaf-89a46ef6eae0"],"responses":{"200":"3bdb54be-cf53-49b6-a852-f158297a1763","404":"1d769a06-2b5f-44be-baa6-f16e6ae82979","409":"581df684-3faf-4e92-8f41-b888b7fd5128"},"method":"post","type":"path","servers":["b987a922-a93b-4850-a879-013b5980daa8"],"security":[],"path":"/payments/checkout/{id}/cancel","baseUrlOptions":["https://api.tribridge.xyz"],"title":"Cancel checkout session","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"b4f72b9e-cd71-4b23-aaaf-89a46ef6eae0":{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"},"example":"b3f1c2a0-1d4e-4f2a-9c8b-2e7a6f5d4c3b"}},"responses":{"3bdb54be-cf53-49b6-a852-f158297a1763":{"description":"Cancelled (or already cancelled)","content":{"application/json":{"example":{"status":"cancelled"},"examples":{"Example":{"title":"Example","value":{"status":"cancelled"}}},"exampleType":"examples"}},"exampleType":"examples"},"1d769a06-2b5f-44be-baa6-f16e6ae82979":{"description":"Unknown payment id","content":{"application/json":{"example":{"error":"Payment not found"},"examples":{"Example":{"title":"Example","value":{"error":"Payment not found"}}},"exampleType":"examples"}},"exampleType":"examples"},"581df684-3faf-4e92-8f41-b888b7fd5128":{"description":"Payment is not pending","content":{"application/json":{"example":{"error":"Only pending payments can be cancelled (current status: completed)"},"examples":{"Example":{"title":"Example","value":{"error":"Only pending payments can be cancelled (current status: completed)"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"d1f315b4-0644-42d6-9ca7-a89728aadad9":{"Key":{"name":"x-api-key","type":"apiKey","in":"header"}}},"servers":{"b987a922-a93b-4850-a879-013b5980daa8":{"url":"https://api.tribridge.xyz"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"name":"x-api-key","type":"apiKey","in":"header"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"Key","name":"x-api-key"}],"title":"Key"}]},"originalFileLocation":"openapi/openapi.json"},"subdomain":"tribridge","siteName":"Tribridge","title":"Cancel checkout session - Tribridge","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-08T13:24:53.220Z","originalFileLocation":"cancel-payment.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=\"Cancel a pending checkout session. Idempotent.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Tribridge\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tribridge/8G7qooEnVr7Gok2Z/_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/tribridge/8G7qooEnVr7Gok2Z/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tribridge/8G7qooEnVr7Gok2Z/_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/tribridge/8G7qooEnVr7Gok2Z/_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/tribridge/8G7qooEnVr7Gok2Z/_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/tribridge/8G7qooEnVr7Gok2Z/_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/tribridge/8G7qooEnVr7Gok2Z/_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/tribridge/8G7qooEnVr7Gok2Z/_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/tribridge/8G7qooEnVr7Gok2Z/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cancel checkout session - Tribridge\">\u003cmeta data-mint-head property=\"og:description\" content=\"Cancel a pending checkout session. Idempotent.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Tribridge\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tribridge.xyz/cancel-payment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tribridge.mintlify.app/_mintlify/api/og/v2?division=Checkout+Sessions\u0026amp;title=Cancel+checkout+session\u0026amp;description=Cancel+a+pending+checkout+session.+Idempotent.\u0026amp;theme=fec04a2c39e554d279508825\u0026amp;signature=f284fafa0245c3c32f189f73bc35c359acc25599a7cdc8f86a0cd9ef7ab1b319\">\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=\"Cancel checkout session - Tribridge\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Cancel a pending checkout session. Idempotent.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tribridge.mintlify.app/_mintlify/api/og/v2?division=Checkout+Sessions\u0026amp;title=Cancel+checkout+session\u0026amp;description=Cancel+a+pending+checkout+session.+Idempotent.\u0026amp;theme=fec04a2c39e554d279508825\u0026amp;signature=f284fafa0245c3c32f189f73bc35c359acc25599a7cdc8f86a0cd9ef7ab1b319\">\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/tribridge/8G7qooEnVr7Gok2Z/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Tribridge\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2b6bff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tribridge.xyz/cancel-payment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cancel-payment.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.tribridge.xyz/#organization\",\"name\":\"Tribridge\",\"url\":\"https://docs.tribridge.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tribridge/ez2qRTSP_I_EOQfC/logo/light.png?fit=max\u0026auto=format\u0026n=ez2qRTSP_I_EOQfC\u0026q=85\u0026s=b6c9747d6d25b7a8ba7e0cd287ad77f8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tribridge.xyz#website\",\"name\":\"Tribridge\",\"url\":\"https://docs.tribridge.xyz\",\"publisher\":{\"@id\":\"https://docs.tribridge.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tribridge.xyz/cancel-payment#webpage\",\"url\":\"https://docs.tribridge.xyz/cancel-payment\",\"name\":\"Cancel checkout session\",\"description\":\"Cancel a pending checkout session. Idempotent.\",\"dateModified\":\"2026-10-08T13:24:53.220Z\",\"isPartOf\":{\"@id\":\"https://docs.tribridge.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tribridge.xyz/cancel-payment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tribridge.xyz/cancel-payment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Checkout Sessions\",\"item\":\"https://docs.tribridge.xyz/create-checkout-session\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cancel checkout session\",\"item\":\"https://docs.tribridge.xyz/cancel-payment\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.tribridge.xyz/cancel-payment#apireference\",\"headline\":\"Cancel checkout session\",\"name\":\"Cancel checkout session\",\"description\":\"Cancel a pending checkout session. Idempotent.\",\"url\":\"https://docs.tribridge.xyz/cancel-payment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tribridge.xyz/cancel-payment#webpage\"},\"dateModified\":\"2026-10-08T13:24:53.220Z\",\"publisher\":{\"@id\":\"https://docs.tribridge.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tribridge.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Tribridge\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Tribridge","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Checkout Sessions","pages":[{"title":"Create a checkout session","openapi":"POST /payments","href":"/create-checkout-session"},{"title":"Get checkout session","openapi":"GET /payments/checkout/{id}","href":"/get-checkout-session"},{"title":"Generate deposit wallet","openapi":"POST /payments/checkout/{id}/generate-wallet","href":"/generate-deposit-wallet"},{"title":"Save customer details","openapi":"POST /payments/checkout/{id}/customer","href":"/save-customer-details"},{"title":"Simulate payment","openapi":"POST /payments/checkout/{id}/simulate","href":"/simulate-payment"},{"title":"Verify payment","description":"Manually re-check the deposit wallet on-chain and complete the payment if the funds arrived.","openapi":"POST /payments/checkout/{id}/verify","href":"/verify-payment"},{"title":"Cancel checkout session","openapi":"POST /payments/checkout/{id}/cancel","href":"/cancel-payment"}]},{"group":"Payment Links","pages":[{"title":"Payment Links","description":"Shareable pay links — created in your dashboard, opened by anyone, with two public endpoints for headless flows.","href":"/payment-links"},{"title":"Get a payment link","openapi":"GET /payment-links/public/{slug}","href":"/get-payment-link"},{"title":"Create a checkout from a payment link","openapi":"POST /payment-links/public/{slug}/checkout","href":"/create-link-checkout"}]},{"group":"Webhooks \u0026 Refunds","pages":[{"title":"Webhooks","href":"/webhooks"},{"title":"Refunds","href":"/refunds"}]},{"group":"Status","pages":[{"title":"Health \u0026 status","openapi":"GET /health/rpc","href":"/health"},{"title":"Changelog","openapi":"GET /changelog","href":"/changelog"}]},{"group":"Developers","pages":[{"title":"SDKs \u0026 Libraries","href":"/sdks"},{"title":"Testing","href":"/testing"},{"title":"Errors","href":"/errors"}]}]}]},"title":"Cancel checkout session - Tribridge","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-WRhTSUDL.js","utils-ChMov4Kr.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-_REmC2bI.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp6nVRCu.js","snippetPresets-DZadmXoU.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CY2WdoTl.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DwYG-Q4l.js","shallow-BXQIGwv4.js","getApiPlaygroundDisplay-CK5nK5B9.js","CodeSnippet-TH4a2aGW.js","CodeSnippets-DwsQiOFS.js","Page-R3M_BF4L.js","getPastedJson-DD7kUzi_.js","icon-holE3QoJ.js","MethodPill-DUW0T8us.js","DuplicateIcon-CI_p4be-.js","createIcon-BdbRvavb.js","DynamicMarkdown-DN96a4Ur.js","SectionHeading-SCu36A9d.js","axios-vUo_bRtp.js","Markdown-CCeGv-zI.js","clsx-BGBGWFTt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-Cv_O2fky.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-2C5OB2eV.js"]}