Use this endpoint to cancel an invoice. You can only cancel invoices while they are still at the created, pending or processing stage. Invoices that have the confirmed or failed statuses cannot be cancelled.
Errors
400 Bad Request
Error message
What it means
foreign_id: Invoice not found.
None of your invoices has this foreign_id.
Invoice cannot be failed in its current state. (code invalid_invoice_state)
The invoice is already confirmed or failed (a cancelled invoice is failed too), so it can’t be cancelled. Only created, pending and processing invoices can be cancelled.
Required features [invoices_enabled] not enabled.
Invoices aren’t enabled for your merchant account.
The foreign_id of the invoice you need to cancel, URL-encoded. Case-insensitive.
Example:
"invoice_123"
Body
application/json
This endpoint does not accept any request parameters; any fields in the body are ignored. Both an empty JSON object ({}) and a completely empty (zero-byte) body are accepted. Content-Type: application/json is still required if you send {} — but if the body is truly empty (zero bytes), Content-Type isn't checked at all (it can be omitted or set to any value).
Response
OK
Last modified on October 29, 2026
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"CryptoProcessing","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/cr-can/JNU-a1yf24zsoHlI/logo/secondary%20logo%20black.svg?fit=max\u0026auto=format\u0026n=JNU-a1yf24zsoHlI\u0026q=85\u0026s=aaf2df80dcbc41f74d023d60472028af","dark":"https://mintcdn.com/cr-can/JNU-a1yf24zsoHlI/logo/secondary%20logo%20white.svg?fit=max\u0026auto=format\u0026n=JNU-a1yf24zsoHlI\u0026q=85\u0026s=2f077577f55cb906b8bc5e7cf8ca9010"},"favicon":"https://mintcdn.com/cr-can/9usOsZeCL5WSJbpa/favicon.png?fit=max\u0026auto=format\u0026n=9usOsZeCL5WSJbpa\u0026q=85\u0026s=c981a5eb98d14c844fbcbe41072bef83","api":{"params":{"expanded":"all"},"playground":{"display":"simple"}},"navbar":{"links":[{"href":"/contact-support","label":"Support"}],"primary":{"type":"button","label":"Portal","href":"https://app.ca.cryptoprocessing.com/"}},"footer":{"socials":{"x":"https://x.com/processing_com","linkedin":"https://www.linkedin.com/company/cryptoprocessing","instagram":"https://www.instagram.com/cryptoprocessing","youtube":"https://www.youtube.com/@CryptoProcessing_by_CoinsPaid"}},"seo":{"metatags":{"google-site-verification":"yu4O7y66I-adhApJGRh2Cf0rw23afXp43M-V_C7o9WE"}},"fonts":{"family":"Funnel Sans"},"errors":{"404":{"redirect":false,"title":"This page has a new home","description":"The page you’re looking for may have moved. Try one of the suggested pages below."}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":true},"variables":{"PRODUCT":"CryptoProcessing","PRODUCT_FULL":"CryptoProcessing by Coinspaid","SUPPORT":"support.ca@cryptoprocessing.com","SALES":"sales.ca@cryptoprocessing.com","ACCOUNT_MANAGER":"accounts.ca@cryptoprocessing.com","HOST":"app.ca.cryptoprocessing.com","HOST_PAYMENTS":"payments.ca.cryptoprocessing.com","KYC":"true","FIAT":"CAD","FIAT_OR":"CAD, USD or EUR","API_FIAT":"USD","CURRENCIES_THAT_SUPPORT_INSTANT_CONFIRMATIONS":"BTC and BCH","CURRENCIES_THAT_SUPPORT_INSTANT_WITHDRAWALS":"Bitcoin, Bitcoin Cash, and Litecoin","REGULATIONS":"local regulations","COUNTRY_OF_REGISTRATION":"CAN"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cr-can","hasAudioNarration":false,"actualSubdomain":"cr-can","customDomains":["docs.ca.cryptoprocessing.com"],"gitSource":{"type":"github","owner":"c-docs","repo":"docs","deployBranch":"main","contentDirectory":"C22","isPrivate":true,"mountPath":"","label":"","_id":"6adb634dc631569183d6ac6c"},"chroma":{"liveDeploymentHistoryId":"6aeb2a1fc8520f7b8ee2569c","collectionId":"434aa791-b4c3-42b1-ac85-aa5cf0308803","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeb2a1fc8520f7b8ee2569c"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aeda0c4644e5d1cbd4c3705","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"Docs","count":67},{"language":"default","tag":"API reference","count":23},{"language":"default","tag":"Payment requests","count":16},{"language":"default","tag":"Withdrawals","count":14},{"language":"default","tag":"Deposits","count":13},{"language":"default","tag":"Merchant account setup","count":13},{"language":"default","tag":"Integration","count":12},{"language":"default","tag":"Exchanges","count":7},{"language":"default","tag":"Reference","count":6},{"language":"default","tag":"Fees, statuses, and other details","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support.ca@cryptoprocessing.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"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":"vite-origin","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":"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":true},"customCss":[{"filePath":"css/asterisks.css","content":"#content[data-page-href*=\"/confirmations-and-limits\"]>div:has(table)+ul>li::before{--icon-size: 0.9ex;position:absolute;top:0.5ex;text-align:right;vertical-align:bottom;width:calc(var(--asterisks) * var(--icon-size));left:calc(2ex - var(--asterisks) * var(--icon-size));font-size:1.3em;background:url('/images/icons/asterisk.svg') 1ex repeat;border-radius:0;padding:0;margin:0;height:var(--icon-size)}#content[data-page-href*=\"/confirmations-and-limits\"]>div:has(table)+ul>li:nth-child(1)::before{--asterisks: 1}#content[data-page-href*=\"/confirmations-and-limits\"]>div:has(table)+ul>li:nth-child(2)::before{--asterisks: 2}#content[data-page-href*=\"/confirmations-and-limits\"]>div:has(table)+ul>li:nth-child(3)::before{--asterisks: 3}"},{"filePath":"css/ai-disclaimer.css","content":".chat-assistant-disclaimer-text{visibility:hidden;position:relative}.chat-assistant-disclaimer-text::after{content:\"This is an AI assistant, not a live support agent. Answers are generated from our documentation and may contain mistakes — if you have further questions, contact support.\";visibility:visible;position:absolute;top:0;left:0;width:100%}"},{"filePath":"css/navigation.css","content":".sidebar-group-header .sidebar-title{text-transform:uppercase}"},{"filePath":"css/tabs.css","content":"ul[role=\"tablist\"]{flex-wrap:wrap}"},{"filePath":"css/cards.css","content":"div.card div:has(>svg:only-child):not([data-component-part=\"card-icon\"]){display:none}"},{"filePath":"css/main-page.css","content":"#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs ul[role=\"tablist\"]{border:none;column-gap:.5em;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs ul[role=\"tablist\"] li{margin:0;padding:0;flex:none;scroll-snap-align:start}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs ul[role=\"tablist\"] li div{height:2.6em;border-radius:1.3em;padding:0 1em;background:#8888881a;border:1px solid #88888840}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs ul[role=\"tablist\"] li div svg{background:rgb(var(--primary))}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs ul[role=\"tablist\"] li div:hover{background:#88888833}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs ul[role=\"tablist\"] li div[data-active=\"true\"]{background-color:rgb(var(--primary));color:white}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs ul[role=\"tablist\"] li div[data-active=\"true\"] svg{background-color:white}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs div[role=\"tabpanel\"]:not(.hidden){display:flex;flex-direction:row;column-gap:2em}@media (max-width: 50em){#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs div[role=\"tabpanel\"]:not(.hidden){flex-direction:column;row-gap:3em}}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs div[role=\"tabpanel\"]:not(.hidden)>div:nth-child(1){flex:2}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs div[role=\"tabpanel\"]:not(.hidden)>div:nth-child(1) .steps{margin:0}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs div[role=\"tabpanel\"]:not(.hidden)>div:nth-child(1) .steps .step p{margin-bottom:0}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs div[role=\"tabpanel\"]:not(.hidden)>div:nth-child(2){flex:3}"},{"filePath":"css/currency-icons.css","content":"#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table thead{border-bottom:1px solid color-mix(in srgb, currentColor 14%, transparent)}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table tbody tr{border-bottom:1px solid color-mix(in srgb, currentColor 8%, transparent)}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table :is(th,td){padding:0.5rem 0.5rem 0.5rem 0;vertical-align:baseline}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table th{padding-top:0;text-align:left}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table td{min-width:0;line-height:1.5em}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table img{display:inline-block;width:1.3em;height:1.3em;margin:0 0.3em 0 0;border-radius:50%;pointer-events:none;background:color-mix(in srgb, currentColor 10%, transparent)}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table td:first-child{font-weight:bold}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table td:first-child img{width:1.7em;height:1.7em;margin-right:0.7em}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table td:first-child strong{margin-left:0.5em}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table td:not(:first-child)>span,#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table td:not(:first-child)>div>span{display:inline-block;white-space:nowrap;margin-right:1em}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table :is(b,strong){padding:.1em .4em;margin:.2em .2em .2em 0;font-weight:normal;border-radius:.3em;white-space:nowrap;display:inline-block;background:#F5F5F4;color:#57534E}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table span+:is(b,strong){margin-left:-0.5em}.dark #content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table :is(b,strong){background:#44403C;color:#A8A29E}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table strong{margin-block:0.15em;margin-right:-0.05em}#content[data-page-href$=\"/supported-currencies\"] table th:not(:last-child){width:10rem}#content[data-page-href$=\"/confirmations-and-limits\"] table th:first-child{width:16rem}#content[data-page-href$=\"/supported-trading-pairs\"] table th:not(:first-child){width:50%}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(1) b{display:block;width:fit-content;margin-left:2.3em}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(2){line-height:2em}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(2) b{line-height:1.5em;margin-block:0}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(2) div{padding-inline-start:1.6em;text-indent:-1.6em}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(2) div :is(span,b){text-indent:initial}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(3){display:grid;grid-template-columns:repeat(auto-fill, minmax(5em, 1fr));row-gap:0.4em}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(3) span{margin-inline-end:0}@media (max-width: 640px){#content[data-page-href$=\"/supported-trading-pairs\"] table thead{display:none}#content[data-page-href$=\"/supported-trading-pairs\"] table :is(tbody,tr,td){display:block}#content[data-page-href$=\"/supported-trading-pairs\"] table tr{padding-block:0.5rem}#content[data-page-href$=\"/supported-trading-pairs\"] table td{padding-inline:0}#content[data-page-href$=\"/supported-trading-pairs\"] table td:first-child{font-size:1rem;padding-top:1.25rem}#content[data-page-href$=\"/supported-trading-pairs\"] table td:first-child b{display:inline-block;margin-left:0.5em}#content[data-page-href$=\"/supported-trading-pairs\"] table td:not(:first-child)::before{display:block;grid-column:1 / -1;margin-block:0.25rem;font-size:0.75rem;color:color-mix(in srgb, currentColor 55%, transparent);text-transform:uppercase}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(2)::before{content:'Convert to crypto'}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(3)::before{content:'Convert to fiat'}}"},{"filePath":"css/migrating.css","content":"#content[data-page-href$=\"/payment-requests/migration-guide\"] table{display:table;table-layout:fixed;width:100%}#content[data-page-href$=\"/payment-requests/migration-guide\"] table :is(th,td):nth-child(2){width:2rem;text-align:center}#content[data-page-href$=\"/payment-requests/migration-guide\"] .columns{gap:.5rem}#content[data-page-href$=\"/payment-requests/migration-guide\"] .columns .code-block{display:grid;grid-template-rows:auto 1fr;margin:0;--code-padding-right: 0}#content[data-page-href$=\"/payment-requests/migration-guide\"] .columns .code-block [data-component-part=\"scroll-area-viewport\"]{padding-right:0}#content[data-page-href$=\"/payment-requests/migration-guide\"] .columns .code-block code{white-space:pre-wrap;width:auto}#content[data-page-href$=\"/payment-requests/migration-guide\"] .columns .code-block:first-child{opacity:.7}#content[data-page-href$=\"/payment-requests/migration-guide\"] .columns .code-block:first-child [data-component-part=\"code-block-header\"] button{visibility:hidden}"},{"filePath":"css/method-pills.css","content":"a[href*=\"/api-reference/callbacks/\"] .method-nav-pill>span{background-color:rgb(250 204 21 / 0.2);color:#a16207}.dark a[href*=\"/api-reference/callbacks/\"] .method-nav-pill>span{background-color:rgb(250 204 21 / 0.2);color:#facc15}a[href*=\"/api-reference/callbacks/\"][aria-current=\"page\"] .method-nav-pill>span,.dark a[href*=\"/api-reference/callbacks/\"][aria-current=\"page\"] .method-nav-pill>span{background-color:#c28c30;color:#ffffff}"}],"page":{"pagePath":"api-reference/endpoints/invoices-cancel","slug":"/api-reference/endpoints/invoices-cancel","pageMetadata":{"title":"Cancel an invoice","openapi":"POST /v2/invoices/{foreign_id}/cancel","description":null,"href":"/api-reference/endpoints/invoices-cancel"},"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`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,Table,Tip}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(Tip,{children:[_jsxs(_components.p,{children:[`Documentation for invoices: `,_jsx(_components.a,{href:`/invoices`,children:`Overview`}),`, `,_jsx(_components.a,{href:`/invoices/fees`,children:`Fees`}),`, `,_jsx(_components.a,{href:`/api-reference/endpoints/invoices-create`,children:`Create invoice`}),`, `,_jsx(_components.a,{href:`/api-reference/endpoints/invoices-cancel`,children:`Cancel invoice`}),`, `,_jsx(_components.a,{href:`/api-reference/callbacks/invoice-payment-callbacks`,children:`Callbacks`}),`.`]}),_jsxs(_components.p,{children:[`For new integrations, `,_jsxs(_components.strong,{children:[`consider `,_jsx(_components.a,{href:`/payment-requests/migration-guide`,children:`migrating to payment requests`}),` instead`]}),`.`]})]}),`\n`,_jsxs(_components.p,{children:[`Use this endpoint to cancel an invoice. You can only cancel invoices while they are still at the `,_jsx(_components.code,{children:`created`}),`, `,_jsx(_components.code,{children:`pending`}),` or `,_jsx(_components.code,{children:`processing`}),` stage. Invoices that have the `,_jsx(_components.code,{children:`confirmed`}),` or `,_jsx(_components.code,{children:`failed`}),` statuses cannot be cancelled.`]}),`\n`,_jsxs(Accordion,{title:`Errors`,id:`errors`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`400 Bad Request`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error message`}),_jsx(_components.th,{children:`What it means`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`foreign_id: Invoice not found.`})}),_jsxs(_components.td,{children:[`None of your invoices has this `,_jsx(_components.code,{children:`foreign_id`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Invoice cannot be failed in its current state.`}),` (code `,_jsx(_components.code,{children:`invalid_invoice_state`}),`)`]}),_jsxs(_components.td,{children:[`The invoice is already `,_jsx(_components.code,{children:`confirmed`}),` or `,_jsx(_components.code,{children:`failed`}),` (a cancelled invoice is `,_jsx(_components.code,{children:`failed`}),` too), so it can’t be cancelled. Only `,_jsx(_components.code,{children:`created`}),`, `,_jsx(_components.code,{children:`pending`}),` and `,_jsx(_components.code,{children:`processing`}),` invoices can be cancelled.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Required features [invoices_enabled] not enabled.`})}),_jsx(_components.td,{children:`Invoices aren’t enabled for your merchant account.`})]})]})]})]})]})}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 an invoice","openapi":"POST /v2/invoices/{foreign_id}/cancel","description":null,"href":"/api-reference/endpoints/invoices-cancel"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/cr-can/2fc5915a2ee56d94/js/currency-pair-lookup.js"],"openApiReferenceData":{"operation":{"summary":"Cancel an invoice","operationId":"cancel-an-invoice","tags":["Invoices"],"parameters":["b4f9d5fa-89ae-4cfe-afee-0bda11fbf2c8","eeb56dd2-878f-42a0-b0c5-fd484abf71f9"],"responses":{"200":"5bd0ec56-131f-4588-a465-9e559ecfff39","400":"be34c4e8-8ff3-4488-8d2d-a4c8ff9c0d88","403":"5b7c4147-070c-4a3f-ac38-16ffca554506","429":"ea4f7ad1-00a1-4a05-9c16-35ca4f51afcb"},"requestBody":"603cf5b5-1d55-447c-8c41-89f010e93fe2","method":"post","type":"path","servers":["cc4ac018-6f79-4de6-b0fa-423a789a0590"],"security":["a0e34d2c-0523-49d1-9754-4e206205cdb2"],"path":"/v2/invoices/{foreign_id}/cancel","baseUrlOptions":["https://app.ca.cryptoprocessing.com/api"],"title":"Cancel an invoice","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"b4f9d5fa-89ae-4cfe-afee-0bda11fbf2c8":{"name":"X-Processing-Signature","in":"header","required":true,"description":"Hex-encoded HMAC-SHA512 signature of the request body, [generated using your secret key](/api-reference/authentication).","schema":{"type":"string","isRequired":true,"description":"Hex-encoded HMAC-SHA512 signature of the request body, [generated using your secret key](/api-reference/authentication).","uniqueKey":"","typeLabel":"string"}},"eeb56dd2-878f-42a0-b0c5-fd484abf71f9":{"name":"foreign_id","in":"path","required":true,"description":"The `foreign_id` of the invoice you need to cancel, URL-encoded. Case-insensitive.","schema":{"type":"string","example":"invoice_123","isRequired":true,"description":"The `foreign_id` of the invoice you need to cancel, URL-encoded. Case-insensitive.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"This endpoint does not accept any request parameters; any fields in the body are ignored. Both an empty JSON object (`{}`) and a completely empty (zero-byte) body are accepted. `Content-Type: application/json` is still required if you send `{}` — but if the body is truly empty (zero bytes), `Content-Type` isn't checked at all (it can be omitted or set to any value).\n","uniqueKey":"","typeLabel":"object"},"examples":{"Empty JSON object":{"title":"Empty JSON object","value":{}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"5bd0ec56-131f-4588-a465-9e559ecfff39":{"description":"OK","content":{"application/json":{"examples":{"Invoice cancelled":{"title":"Invoice cancelled","value":[]}},"exampleType":"examples"}},"exampleType":"examples"},"be34c4e8-8ff3-4488-8d2d-a4c8ff9c0d88":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"ValidationError","description":"One or more request parameters failed validation.","properties":{"errors":{"type":"object","description":"A map of request field names to a human-readable validation error message for that field. The exact set of possible keys and messages is endpoint-specific — see [API errors](/api-reference/errors#errors-by-endpoint) for the full reference.\n","additionalProperties":{"type":"string","description":"Human-readable validation error message for this field.","uniqueKey":"oneOf.0.errors.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.0.errors","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"ValidationError · object"},{"type":"object","title":"MalformedJson","description":"The request body is not valid JSON or the Content-Type header is not set to `application/json`.","properties":{"error":{"type":"string","uniqueKey":"oneOf.1.error","typeLabel":"string"},"code":{"type":"string","uniqueKey":"oneOf.1.code","typeLabel":"string"}},"uniqueKey":"oneOf.1","typeLabel":"MalformedJson · object"}],"uniqueKey":"","typeLabel":"ValidationError · object | MalformedJson · object"},"examples":{"Invoice not found":{"title":"Invoice not found","value":{"errors":{"foreign_id":"Invoice not found."}}},"Invoice already confirmed or failed":{"title":"Invoice already confirmed or failed","value":{"error":"Invoice cannot be failed in its current state.","code":"invalid_invoice_state"}},"Invoices not enabled":{"title":"Invoices not enabled","value":{"message":"Required features [invoices_enabled] not enabled."}},"Malformed JSON":{"title":"Malformed JSON","value":{"error":"Bad content format","code":"bad_content_format"}}},"exampleType":"examples"}},"exampleType":"examples"},"5b7c4147-070c-4a3f-ac38-16ffca554506":{"description":"Forbidden\n","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Human-readable error message.","uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Error code.","uniqueKey":"code","typeLabel":"string"}},"description":"Invalid or missing headers, or the API key does not have access to the endpoint. Refer to [Errors](/api-reference/errors#general-errors) for troubleshooting steps.","uniqueKey":"","typeLabel":"object"},"examples":{"Bad signature header":{"title":"Bad signature header","value":{"error":"Bad signature header","code":"bad_header_signature"}},"API key does not have the required ability":{"title":"API key does not have the required ability","value":{"error":"The API key does not have access to this endpoint.","code":"api_key_ability_required"}},"No signature header":{"title":"No signature header","value":{"error":"No signature header","code":"required_header_signature"}},"No key header":{"title":"No key header","value":{"error":"No key header","code":"required_header_key"}}},"exampleType":"examples"}},"exampleType":"examples"},"ea4f7ad1-00a1-4a05-9c16-35ca4f51afcb":{"description":"Too Many Requests\n\nYou sent too many requests in a short time. The limit is counted per API key, so requests from all your servers that use the same key count together. Wait before you send the request again, increasing the delay if you get `429` again, and handle this error by its status code, not by a particular response body. See [Too many requests](/api-reference/errors#too-many-requests-429-too-many-requests).\n","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"a0e34d2c-0523-49d1-9754-4e206205cdb2":{"xProcessingKey":{"type":"apiKey","description":"Your [API key](/merchant-administration/generate-and-activate-api-keys).","in":"header","name":"X-Processing-Key","scopes":[],"schemeName":"xProcessingKey"}}},"servers":{"cc4ac018-6f79-4de6-b0fa-423a789a0590":{"url":"https://app.ca.cryptoprocessing.com/api"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","description":"Your [API key](/merchant-administration/generate-and-activate-api-keys).","in":"header","name":"X-Processing-Key","scopes":[],"schemeName":"xProcessingKey"},"schema":{"title":"X-Processing-Key","type":"string","description":"Your [API key](/merchant-administration/generate-and-activate-api-keys).","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"xProcessingKey","name":"X-Processing-Key"}],"title":"xProcessingKey"}]},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"cr-can","siteName":"CryptoProcessing","title":"Cancel an invoice - CryptoProcessing","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T09:41:49.397Z","gitLastModified":"2026-10-29T12:37:25.000Z","originalFileLocation":"api-reference/endpoints/invoices-cancel.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=\"application-name\" content=\"CryptoProcessing\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cr-can/Ha5yJbWhh_CHQifW/_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/cr-can/Ha5yJbWhh_CHQifW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cr-can/Ha5yJbWhh_CHQifW/_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/cr-can/Ha5yJbWhh_CHQifW/_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/cr-can/Ha5yJbWhh_CHQifW/_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/cr-can/Ha5yJbWhh_CHQifW/_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/cr-can/Ha5yJbWhh_CHQifW/_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/cr-can/Ha5yJbWhh_CHQifW/_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/cr-can/Ha5yJbWhh_CHQifW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cancel an invoice - CryptoProcessing\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CryptoProcessing\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ca.cryptoprocessing.com/api-reference/endpoints/invoices-cancel\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cr-can.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Cancel+an+invoice\u0026amp;theme=d075ef76d4cb9d221b219fc8\u0026amp;signature=d898de26af808c3b12f285aab411d9c32fe8318c78b410ad144fda16126730c0\">\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 an invoice - CryptoProcessing\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cr-can.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Cancel+an+invoice\u0026amp;theme=d075ef76d4cb9d221b219fc8\u0026amp;signature=d898de26af808c3b12f285aab411d9c32fe8318c78b410ad144fda16126730c0\">\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/cr-can/Ha5yJbWhh_CHQifW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CryptoProcessing\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"yu4O7y66I-adhApJGRh2Cf0rw23afXp43M-V_C7o9WE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ca.cryptoprocessing.com/api-reference/endpoints/invoices-cancel\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/invoices-cancel.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CryptoProcessing\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"CryptoProcessing","nav":{"global":null,"tabs":[{"tab":"Docs","icon":"book","groups":[{"group":"Get started","icon":"rocket","pages":[{"title":"CryptoProcessing Documentation","sidebarTitle":"Overview","mode":"wide","href":""},{"title":"Initial setup","mode":"wide","href":"/initial-setup"},{"title":"Portal","sidebarTitle":"Navigating the web interface","href":"/portal"},{"title":"Contact support","sidebarTitle":"Contact support","hidden":true,"href":"/contact-support"}]},{"group":"Merchant account setup","icon":"gear","pages":[{"group":"Users \u0026 roles","root":{"title":"User management","href":"/merchant-administration/user-management"},"directory":"accordion","pages":[{"title":"Log in and configure 2FA","href":"/merchant-administration/log-in-and-configure-2-fa"},{"title":"Add a user","href":"/merchant-administration/add-a-user"},{"title":"Remove a user","href":"/merchant-administration/remove-a-user"},{"title":"Change a user role","href":"/merchant-administration/change-a-user-role"}]},{"group":"Security settings","root":{"title":"Merchant security","href":"/merchant-administration/merchant-security"},"directory":"accordion","pages":[{"title":"Configure withdrawal limits","href":"/merchant-administration/configure-withdrawal-limits"},{"title":"Configure balance amount notifications","href":"/merchant-administration/configure-balance-amount-notifications"},{"title":"Configure automatic withdrawals to cold addresses","href":"/merchant-administration/configure-automatic-withdrawals-to-cold-addresses"},{"title":"Disable withdrawals","href":"/merchant-administration/disable-withdrawals"}]},{"group":"API setup","root":{"title":"API configuration","href":"/merchant-administration/api-configuration"},"directory":"accordion","pages":[{"title":"Generate and activate API keys","href":"/merchant-administration/generate-and-activate-api-keys"},{"title":"Manage API keys","href":"/merchant-administration/manage-api-keys"},{"title":"Set up callback URL","href":"/merchant-administration/set-up-callback-url"},{"title":"Configure callbacks","href":"/merchant-administration/configure-callbacks"},{"title":"Repeat and export callbacks","href":"/merchant-administration/repeat-and-export-callbacks"}]}]},{"group":"Reporting","icon":"file-lines","pages":[{"title":"Balance statements","href":"/reporting/balance-statements"},{"title":"Transactions report","href":"/reporting/transactions-report"}]},{"group":"Deposits","icon":"wallet","pages":[{"title":"Crypto deposits","sidebarTitle":"Overview","href":"/deposits/index"},{"title":"Create a deposit address","href":"/deposits/create-a-deposit-address"},{"title":"How deposits are confirmed","href":"/deposits/how-deposits-are-confirmed"},{"group":"Integration","pages":[{"title":"Crypto deposits integration guide","sidebarTitle":"Integration guide","href":"/deposits/integration-guide"},{"title":"Design a crypto payment form","sidebarTitle":"Design a payment form","href":"/deposits/design-payment-form"},{"title":"Crypto deposits integration test cases","sidebarTitle":"Integration test cases","mode":"wide","href":"/deposits/test-cases"}]},{"title":"Recover lost deposits","href":"/deposits/recovery"},{"group":"Fees, statuses, and other details","pages":[{"title":"Crypto deposit fees","sidebarTitle":"Fees","href":"/deposits/fees"},{"title":"Deposit statuses","sidebarTitle":"Statuses","mode":"wide","href":"/deposits/statuses"},{"title":"Tag field","href":"/deposits/tags"},{"title":"Risk scoring","href":"/deposits/risk-scoring"}]}]},{"group":"Payment requests","icon":"file-invoice-dollar","pages":[{"title":"Payment requests","sidebarTitle":"Overview","href":"/payment-requests/index"},{"title":"Create a payment request","href":"/payment-requests/create-a-payment-request"},{"group":"Configure payment requests","pages":[{"title":"Configure payment currencies","sidebarTitle":"Payment currencies","href":"/payment-requests/currencies"},{"title":"Configure underpayment handling","sidebarTitle":"Underpayment handling","href":"/payment-requests/underpayments"}]},{"group":"Refunds","pages":[{"title":"Payment request refunds","sidebarTitle":"How refunds work","href":"/payment-requests/refunds"},{"title":"Create a manual refund","href":"/payment-requests/create-a-manual-refund"},{"title":"Resend a refund email","href":"/payment-requests/resend-a-refund-email"}]},{"group":"Integration","pages":[{"title":"Payment requests integration guide","sidebarTitle":"Integration guide","href":"/payment-requests/integration-guide"},{"title":"Fixed payment requests","href":"/payment-requests/fixed-payment-requests"},{"title":"Payment request backlinks","sidebarTitle":"Backlinks","href":"/payment-requests/backlinks"},{"title":"Migrating from invoices to payment requests","sidebarTitle":"Migrating from invoices","href":"/payment-requests/migration-guide"},{"title":"Payment requests integration test cases","sidebarTitle":"Integration test cases","mode":"wide","href":"/payment-requests/test-cases"}]},{"group":"Fees, statuses, and other details","pages":[{"title":"Payment request fees","sidebarTitle":"Fees","href":"/payment-requests/fees"},{"title":"Payment request and refund statuses","sidebarTitle":"Statuses","mode":"wide","href":"/payment-requests/statuses"}]}]},{"group":"Withdrawals","icon":"money-from-bracket","pages":[{"title":"Crypto withdrawals","sidebarTitle":"Overview","href":"/withdrawals/index"},{"title":"Create a withdrawal","href":"/withdrawals/create-a-withdrawal"},{"title":"Approve a withdrawal","href":"/withdrawals/approve-a-withdrawal"},{"title":"Contacts for crypto withdrawals","sidebarTitle":"Contacts","href":"/withdrawals/contacts"},{"group":"Integration","pages":[{"title":"Crypto withdrawals integration guide","sidebarTitle":"Integration guide","href":"/withdrawals/integration-guide"},{"title":"Design a crypto withdrawal form","sidebarTitle":"Design a withdrawal form","href":"/withdrawals/design-withdrawal-form"},{"title":"Send crypto instantly","sidebarTitle":"Send instantly","href":"/withdrawals/instant-withdrawals"},{"title":"Crypto withdrawals integration test cases","sidebarTitle":"Integration test cases","mode":"wide","href":"/withdrawals/test-cases"}]},{"group":"Fees and statuses","pages":[{"title":"Crypto withdrawal fees","sidebarTitle":"Fees","href":"/withdrawals/fees"},{"title":"Withdrawal statuses","sidebarTitle":"Statuses","mode":"wide","href":"/withdrawals/statuses"}]}]},{"group":"Mass payouts","icon":"layer-group","pages":[{"title":"Mass payouts","sidebarTitle":"Overview","href":"/mass-payouts/index"},{"title":"Create a mass payout","href":"/mass-payouts/create-a-mass-payout"},{"title":"Mass payouts file format","sidebarTitle":"File format","href":"/mass-payouts/file-format"},{"title":"Retrying failed mass payouts","href":"/mass-payouts/retrying"},{"title":"Mass payout statuses","sidebarTitle":"Statuses","mode":"wide","href":"/mass-payouts/statuses"}]},{"group":"Exchanges","icon":"arrow-right-arrow-left","pages":[{"title":"Exchanges","sidebarTitle":"Overview","href":"/exchanges/index"},{"title":"Create an exchange","href":"/exchanges/create-an-exchange"},{"title":"Exchange fees","sidebarTitle":"Fees","href":"/exchanges/fees"}]},{"group":"Fiat","icon":"building-columns","pages":[{"title":"Add a bank account","href":"/fiat/add-a-bank-account"},{"title":"Withdraw from your fiat balance","href":"/fiat/withdraw-fiat"},{"title":"Top up your fiat balance","href":"/fiat/top-up-fiat"},{"title":"Fiat operation fees","sidebarTitle":"Fees","href":"/fiat/fees"}]},{"group":"Compliance","icon":"shield-halved","pages":[{"title":"User data collection","href":"/user-data-collection"},{"title":"Reference letter","href":"/reference-letter"}]}]},{"tab":"Supported currencies","icon":"bitcoin","pages":[{"title":"Supported currencies","href":"/supported-currencies"},{"title":"Supported trading pairs","mode":"wide","href":"/supported-trading-pairs"},{"title":"Confirmations and limits","mode":"wide","href":"/confirmations-and-limits"}]},{"tab":"API reference","icon":"code","groups":[{"group":"Reference","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Callbacks","href":"/api-reference/callbacks/callbacks-overview"},{"title":"API errors","href":"/api-reference/errors"},{"title":"Postman API Testing","href":"/api-reference/postman-collection"},{"title":"API currency codes","href":"/api-reference/currency-codes"}]},{"group":"Deposits","pages":[{"title":"Generate a user deposit address","openapi":"POST /v2/addresses/take","href":"/api-reference/endpoints/addresses-take"},{"title":"Deposit callbacks","openapi":"api-reference/deposit-callbacks.openapi.yaml webhook deposit","playground":"none","href":"/api-reference/callbacks/deposit-callbacks"}]},{"group":"Withdrawals","pages":[{"title":"Withdraw crypto","openapi":"POST /v2/withdrawal/crypto","href":"/api-reference/endpoints/withdrawal-crypto"},{"title":"Withdraw crypto instantly","openapi":"POST /v2/crypto/withdrawal_instant","href":"/api-reference/endpoints/crypto-withdrawal-instant"},{"title":"Withdraw crypto instantly with conversion","openapi":"POST /v2/crypto/withdrawal_instant_exchange","href":"/api-reference/endpoints/crypto-withdrawal-instant-exchange"},{"title":"Withdrawal callbacks","openapi":"api-reference/withdrawal-callbacks.openapi.yaml webhook withdrawal","playground":"none","href":"/api-reference/callbacks/withdrawal-callbacks"}]},{"group":"Payment requests","pages":[{"title":"Create a payment request","openapi":"POST /payments/v1/requests","href":"/api-reference/endpoints/payments"},{"title":"Payment request callbacks","openapi":"api-reference/payment-request-callbacks.openapi.yaml webhook payment-request","playground":"none","href":"/api-reference/callbacks/payment-request-callbacks"}]},{"group":"Exchanges","pages":[{"title":"Exchange at market rate","openapi":"POST /v2/exchange/now","href":"/api-reference/endpoints/exchange-now"},{"title":"Get a fixed exchange quote","openapi":"POST /v2/exchange/calculate","href":"/api-reference/endpoints/exchange-calculate"},{"title":"Exchange at a fixed rate","openapi":"POST /v2/exchange/fixed","href":"/api-reference/endpoints/exchange-fixed"},{"title":"Exchange callbacks","openapi":"api-reference/exchange-callbacks.openapi.yaml webhook exchange","playground":"none","href":"/api-reference/callbacks/exchange-callbacks"}]},{"group":"Currencies","pages":[{"title":"List supported currencies","openapi":"POST /v2/currencies/list","href":"/api-reference/endpoints/currencies-list"},{"title":"Get available currency pairs and exchange rates","openapi":"POST /v2/currencies/rates","href":"/api-reference/endpoints/currencies-rates"}]},{"group":"Transactions","pages":[{"title":"Get transaction details","openapi":"GET /v2/transactions/info","href":"/api-reference/endpoints/transactions-info"}]},{"group":"Account balance","pages":[{"title":"List balances","openapi":"POST /v2/accounts/list","href":"/api-reference/endpoints/accounts-list"}]},{"group":"System Health","pages":[{"title":"Check API status","openapi":"GET /v2/ping","href":"/api-reference/endpoints/ping"}]}]}]},"basePath":"","title":"Cancel an invoice - CryptoProcessing","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Myd8dsju.js","utils-C2HkQgW0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B6MjiCFm.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-1-a5UQKQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","Page-CxAy5y67.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js","Markdown-CpxgzsKA.js","clsx-C5EfhVm0.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CJ9Oly2E.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Mk6P3qvh.js"]}