Cancel a Pending Settlement and Stop Transfer Watching
DELETE /api/v1/settlements/ — cancels a PENDING settlement expectation. Returns 409 if already terminal (SETTLED or UNMATCHED). Cannot be undone.
Cancel a settlement expectation that is still in the PENDING state. Once cancelled, Idem stops watching for the transfer. Cancellation is permanent and cannot be undone.
Endpoint
DELETE /api/v1/settlements/{id}
Authorization
Requires an API key with the TRANSACTIONS_WRITE scope.
Returns 200 OK with the full updated settlement object (same shape as Get Settlement) showing status: CANCELLED. Cancellation does not set a dedicated timestamp field — confirmedAt stays null and expiresAt is dropped once the settlement leaves PENDING.
A 409 error means the settlement has already reached a terminal state (SETTLED or UNMATCHED). Terminal settlements cannot be cancelled.
Code
Meaning
401
Missing or invalid API key
403
API key does not have TRANSACTIONS_WRITE scope
404
Settlement not found for this tenant
409
Settlement is already in a terminal status and cannot be cancelled
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Idem","colors":{"primary":"#1FB8AC","light":"#2DD4C5","dark":"#0C6B64"},"logo":{"light":"https://mintcdn.com/idemfinance/CGXusX9PnQe9rEky/images/instagram-avatar-1080.png?fit=max\u0026auto=format\u0026n=CGXusX9PnQe9rEky\u0026q=85\u0026s=62f3c072ca9b2e2c9ad7960fa7f48b23","dark":"https://mintcdn.com/idemfinance/CGXusX9PnQe9rEky/images/instagram-avatar-1080.png?fit=max\u0026auto=format\u0026n=CGXusX9PnQe9rEky\u0026q=85\u0026s=62f3c072ca9b2e2c9ad7960fa7f48b23"},"favicon":"https://mintcdn.com/idemfinance/8VAGSG3_nfgJcko5/favicon.svg?fit=max\u0026auto=format\u0026n=8VAGSG3_nfgJcko5\u0026q=85\u0026s=ea7524b17a3559d6521a1e37a7f281c9","appearance":{"default":"system","strict":false},"navbar":{"primary":{"type":"button","label":"Get API Access","href":"mailto:hello@idemfinance.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"idemfinance","hasAudioNarration":false,"actualSubdomain":"idemfinance","customDomains":["docs.idem.finance"],"gitSource":{"type":"github","owner":"idem-finance","repo":"idem-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a982cc0a137d085e57be940","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"API Reference","count":20},{"language":"default","tag":"Documentation","count":15},{"language":"default","tag":"Administration","count":8},{"language":"default","tag":"Guides","count":8},{"language":"default","tag":"Accounts","count":5},{"language":"default","tag":"Settlements","count":4},{"language":"default","tag":"Core Concepts","count":4},{"language":"default","tag":"Get Started","count":3},{"language":"default","tag":"Compliance","count":1},{"language":"default","tag":"Reconciliation","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/settlements/cancel-settlement","slug":"/api-reference/settlements/cancel-settlement","pageMetadata":{"title":"Cancel a Pending Settlement and Stop Transfer Watching","sidebarTitle":"Cancel Settlement","description":"DELETE /api/v1/settlements/{id} — cancels a PENDING settlement expectation. Returns 409 if already terminal (SETTLED or UNMATCHED). Cannot be undone.","href":"/api-reference/settlements/cancel-settlement"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"DELETE /api/v1/settlements/\", \" — cancels a PENDING settlement expectation. Returns 409 if already terminal (SETTLED or UNMATCHED). Cannot be undone.\"]\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`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,ParamField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Cancel a settlement expectation that is still in the `,_jsx(_components.code,{children:`PENDING`}),` state. Once cancelled, Idem stops watching for the transfer. Cancellation is permanent and cannot be undone.`]}),`\n`,_jsx(Heading,{level:`2`,id:`endpoint`,children:`Endpoint`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`DELETE /api/v1/settlements/{id}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsxs(_components.p,{children:[`Requires an API key with the `,_jsx(_components.code,{children:`TRANSACTIONS_WRITE`}),` scope.`]}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The UUID of the settlement to cancel.`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-example`,children:`Request Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` DELETE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.your-domain.com/api/v1/settlements/3fa85f64-5717-4562-b3fc-2c963f66afa6\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$IDEM_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`200 OK`}),` with the full updated settlement object (same shape as `,_jsx(_components.a,{href:`/api-reference/settlements/get-settlement`,children:`Get Settlement`}),`) showing `,_jsx(_components.code,{children:`status: CANCELLED`}),`. Cancellation does not set a dedicated timestamp field — `,_jsx(_components.code,{children:`confirmedAt`}),` stays `,_jsx(_components.code,{children:`null`}),` and `,_jsx(_components.code,{children:`expiresAt`}),` is dropped once the settlement leaves `,_jsx(_components.code,{children:`PENDING`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"settlementId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3fa85f64-5717-4562-b3fc-2c963f66afa6\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"accountId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7c9e6679-7425-40de-944b-e07fc1f90ae7\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expectedToken\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USDC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expectedAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"250.00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expectedWalletAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xYourCustodialWallet...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expectedChainId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EVM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expectedFromAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CANCELLED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"matchedTransactionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"txHash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"blockNumber\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"confirmedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-15T09:00:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error Codes`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`409`}),` error means the settlement has already reached a terminal state (`,_jsx(_components.code,{children:`SETTLED`}),` or `,_jsx(_components.code,{children:`UNMATCHED`}),`). Terminal settlements cannot be cancelled.`]})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`Missing or invalid API key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsxs(_components.td,{children:[`API key does not have `,_jsx(_components.code,{children:`TRANSACTIONS_WRITE`}),` scope`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`Settlement not found for this tenant`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:`Settlement is already in a terminal status and cannot be cancelled`})]})]})]})]})}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 a Pending Settlement and Stop Transfer Watching","sidebarTitle":"Cancel Settlement","description":"DELETE /api/v1/settlements/{id} — cancels a PENDING settlement expectation. Returns 409 if already terminal (SETTLED or UNMATCHED). Cannot be undone.","href":"/api-reference/settlements/cancel-settlement"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Endpoint","slug":"endpoint","depth":2,"children":[]},{"title":"Authorization","slug":"authorization","depth":2,"children":[]},{"title":"Path Parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Request Example","slug":"request-example","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Error Codes","slug":"error-codes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"idemfinance","siteName":"Idem","title":"Cancel a Pending Settlement and Stop Transfer Watching - Idem","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-18T02:16:14.066Z","originalFileLocation":"api-reference/settlements/cancel-settlement.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=\"DELETE /api/v1/settlements/{id} — cancels a PENDING settlement expectation. Returns 409 if already terminal (SETTLED or UNMATCHED). Cannot be undone.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Idem\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/idemfinance/F9G5QXrjJgY4h0Rb/_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/idemfinance/F9G5QXrjJgY4h0Rb/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/idemfinance/F9G5QXrjJgY4h0Rb/_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/idemfinance/F9G5QXrjJgY4h0Rb/_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/idemfinance/F9G5QXrjJgY4h0Rb/_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/idemfinance/F9G5QXrjJgY4h0Rb/_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/idemfinance/F9G5QXrjJgY4h0Rb/_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/idemfinance/F9G5QXrjJgY4h0Rb/_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/idemfinance/F9G5QXrjJgY4h0Rb/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cancel a Pending Settlement and Stop Transfer Watching - Idem\">\u003cmeta data-mint-head property=\"og:description\" content=\"DELETE /api/v1/settlements/{id} — cancels a PENDING settlement expectation. Returns 409 if already terminal (SETTLED or UNMATCHED). Cannot be undone.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Idem\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.idem.finance/api-reference/settlements/cancel-settlement\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://idemfinance.mintlify.site/_mintlify/api/og/v2?division=Settlements\u0026amp;title=Cancel+a+Pending+Settlement+and+Stop+Transfer+Watching\u0026amp;description=DELETE+%2Fapi%2Fv1%2Fsettlements%2F%7Bid%7D+%E2%80%94+cancels+a+PENDING+settlement+expectation.+Returns+409+if+already+terminal+%28SETTLED+or+UNMATCHED%29.+Cannot+be+undone.\u0026amp;theme=20058cba77ad131756a5ef33\u0026amp;signature=4f0268554c055380ce779c41dfd3ce49899f2908b0cd783d93b6b145465294f8\">\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 a Pending Settlement and Stop Transfer Watching - Idem\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"DELETE /api/v1/settlements/{id} — cancels a PENDING settlement expectation. Returns 409 if already terminal (SETTLED or UNMATCHED). Cannot be undone.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://idemfinance.mintlify.site/_mintlify/api/og/v2?division=Settlements\u0026amp;title=Cancel+a+Pending+Settlement+and+Stop+Transfer+Watching\u0026amp;description=DELETE+%2Fapi%2Fv1%2Fsettlements%2F%7Bid%7D+%E2%80%94+cancels+a+PENDING+settlement+expectation.+Returns+409+if+already+terminal+%28SETTLED+or+UNMATCHED%29.+Cannot+be+undone.\u0026amp;theme=20058cba77ad131756a5ef33\u0026amp;signature=4f0268554c055380ce779c41dfd3ce49899f2908b0cd783d93b6b145465294f8\">\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/idemfinance/F9G5QXrjJgY4h0Rb/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Idem\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1FB8AC\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.idem.finance/api-reference/settlements/cancel-settlement\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/settlements/cancel-settlement.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.idem.finance/#organization\",\"name\":\"Idem\",\"url\":\"https://docs.idem.finance\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/idemfinance/CGXusX9PnQe9rEky/images/instagram-avatar-1080.png?fit=max\u0026auto=format\u0026n=CGXusX9PnQe9rEky\u0026q=85\u0026s=62f3c072ca9b2e2c9ad7960fa7f48b23\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.idem.finance#website\",\"name\":\"Idem\",\"url\":\"https://docs.idem.finance\",\"publisher\":{\"@id\":\"https://docs.idem.finance/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.idem.finance/api-reference/settlements/cancel-settlement#webpage\",\"url\":\"https://docs.idem.finance/api-reference/settlements/cancel-settlement\",\"name\":\"Cancel a Pending Settlement and Stop Transfer Watching\",\"description\":\"DELETE /api/v1/settlements/{id} — cancels a PENDING settlement expectation. Returns 409 if already terminal (SETTLED or UNMATCHED). Cannot be undone.\",\"dateModified\":\"2026-08-18T02:16:14.066Z\",\"isPartOf\":{\"@id\":\"https://docs.idem.finance#website\"},\"breadcrumb\":{\"@id\":\"https://docs.idem.finance/api-reference/settlements/cancel-settlement#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.idem.finance/api-reference/settlements/cancel-settlement#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Settlements\",\"item\":\"https://docs.idem.finance/api-reference/settlements/list-settlements\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cancel a Pending Settlement and Stop Transfer Watching\",\"item\":\"https://docs.idem.finance/api-reference/settlements/cancel-settlement\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.idem.finance/api-reference/settlements/cancel-settlement#article\",\"headline\":\"Cancel a Pending Settlement and Stop Transfer Watching\",\"name\":\"Cancel a Pending Settlement and Stop Transfer Watching\",\"description\":\"DELETE /api/v1/settlements/{id} — cancels a PENDING settlement expectation. Returns 409 if already terminal (SETTLED or UNMATCHED). Cannot be undone.\",\"url\":\"https://docs.idem.finance/api-reference/settlements/cancel-settlement\",\"mainEntityOfPage\":{\"@id\":\"https://docs.idem.finance/api-reference/settlements/cancel-settlement#webpage\"},\"dateModified\":\"2026-08-18T02:16:14.066Z\",\"publisher\":{\"@id\":\"https://docs.idem.finance/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.idem.finance#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Idem\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Idem\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/settlements/cancel-settlement.md","siteName":"Idem","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Accounts","pages":[{"title":"List All Ledger Accounts for Your Tenant — Overview","sidebarTitle":"List Accounts","href":"/api-reference/accounts/list-accounts"},{"title":"Create a Ledger Account With Currency, Type, and Name","sidebarTitle":"Create Account","href":"/api-reference/accounts/create-account"},{"title":"Get Account Balance — Current or Point in Time Query","sidebarTitle":"Get Balance","href":"/api-reference/accounts/get-balance"},{"title":"Retrieve All Paginated Journal Entries for an Account","sidebarTitle":"List Entries","href":"/api-reference/accounts/list-entries"},{"title":"Generate an Account Statement for a Custom Date Range","sidebarTitle":"Account Statement","href":"/api-reference/accounts/get-statement"}]},{"group":"Transactions","pages":[{"title":"POST /api/v1/transactions — Post a Balanced Transaction","sidebarTitle":"Post Transaction","href":"/api-reference/transactions/post-transaction"}]},{"group":"Settlements","pages":[{"title":"List Settlements with Filtering and Pagination","sidebarTitle":"List Settlements","href":"/api-reference/settlements/list-settlements"},{"title":"Register a Settlement Expectation for Wallet Watching","sidebarTitle":"Register Settlement","href":"/api-reference/settlements/register-settlement"},{"title":"Retrieve Settlement Details and Current Status by ID","sidebarTitle":"Get Settlement","description":"GET /api/v1/settlements/{id} — retrieves a single settlement by UUID. Returns current status (PENDING/SETTLED/UNMATCHED/CANCELLED) and matching details.","href":"/api-reference/settlements/get-settlement"},{"title":"Cancel a Pending Settlement and Stop Transfer Watching","sidebarTitle":"Cancel Settlement","href":"/api-reference/settlements/cancel-settlement"}]},{"group":"Reconciliation","pages":[{"title":"Trigger Batch Reconciliation for Multiple Transactions","sidebarTitle":"Batch Reconcile","description":"POST /api/v1/reconciliation/batch — re-runs reconciliation for up to 100 transaction IDs. Useful for transactions not matched on initial commit.","href":"/api-reference/reconciliation/batch-reconcile"}]},{"group":"Compliance","pages":[{"title":"Export Tenant Compliance Audit Log as NDJSON Stream","sidebarTitle":"Audit Export","href":"/api-reference/compliance/audit-export"}]},{"group":"Administration","pages":[{"title":"List All API Keys and Their Scopes for Your Tenant","sidebarTitle":"List API Keys","href":"/api-reference/admin/list-api-keys"},{"title":"Create a Scoped API Key with Least-Privilege Permissions","sidebarTitle":"Create API Key","href":"/api-reference/admin/create-api-key"},{"title":"Revoke an API Key and Immediately Invalidate Access","sidebarTitle":"Revoke API Key","href":"/api-reference/admin/revoke-api-key"},{"title":"List All Agent Policy Rules Configured for Your Tenant","sidebarTitle":"List Policy Rules","href":"/api-reference/admin/list-policy-rules"},{"title":"Create an Agent Policy Rule to Restrict Transactions","sidebarTitle":"Create Policy Rule","href":"/api-reference/admin/create-policy-rule"},{"title":"Delete a Policy Rule and Revoke Agent Authorization","sidebarTitle":"Delete Policy Rule","href":"/api-reference/admin/delete-policy-rule"},{"title":"Retrieve the Current Webhook Configuration for Your Tenant","sidebarTitle":"Get Webhook","href":"/api-reference/admin/get-webhook"},{"title":"Register or Update Your Tenant Webhook URL and Secret","sidebarTitle":"Update Webhook","href":"/api-reference/admin/update-webhook"}]}]}]},"basePath":"","title":"Cancel a Pending Settlement and Stop Transfer Watching - Idem","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":[],"chunks":[]}