{ "statusCode": 403, "error": "Forbidden", "message": "Insufficient permissions to cancel cards for this entity"}
{ "statusCode": 404, "error": "Not Found", "message": "Card not found"}
{ "statusCode": 409, "error": "Conflict", "message": "This single-use card has already been used."}
Cancels a card so it can no longer be used for payments. Canceling a card cannot be undone: if you only need to pause spending temporarily, freeze the card instead.You can only cancel cards issued by your platform. A card issued by the entity’s staff in the Lemma app returns a 404. A single-use card whose status is used cannot be canceled and returns a 409. Canceling an already-canceled card succeeds and returns it unchanged.
Restricts which merchant categories this card may transact with, including
the categories Lemma blocks on every card it issues. null when this
dimension is unrestricted.
{ "statusCode": 403, "error": "Forbidden", "message": "Insufficient permissions to cancel cards for this entity"}
{ "statusCode": 404, "error": "Not Found", "message": "Card not found"}
{ "statusCode": 409, "error": "Conflict", "message": "This single-use card has already been used."}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lemma","colors":{"primary":"#3E8C62","light":"#19A158","dark":"#1F683B"},"logo":{"light":"https://mintcdn.com/tobiasgetlemmacom/ga7-AJ0bNOh4DaFA/logo/light.svg?fit=max\u0026auto=format\u0026n=ga7-AJ0bNOh4DaFA\u0026q=85\u0026s=22d93147856a6c7f0ee13b4c32d85e38","dark":"https://mintcdn.com/tobiasgetlemmacom/ga7-AJ0bNOh4DaFA/logo/dark.svg?fit=max\u0026auto=format\u0026n=ga7-AJ0bNOh4DaFA\u0026q=85\u0026s=1fd108f99d1bd321b2d2654a2357c68c"},"favicon":{"light":"https://mintcdn.com/tobiasgetlemmacom/2Yia6_ElNafR3Qf8/favicon-light.svg?fit=max\u0026auto=format\u0026n=2Yia6_ElNafR3Qf8\u0026q=85\u0026s=f1f39174d5ba6b28f2f5e7b4cb90cd9d","dark":"https://mintcdn.com/tobiasgetlemmacom/2Yia6_ElNafR3Qf8/favicon-dark.svg?fit=max\u0026auto=format\u0026n=2Yia6_ElNafR3Qf8\u0026q=85\u0026s=d6fbb0c522af9ef019becb1be221a3bf"},"api":{"mdx":{"auth":{"method":"bearer"},"server":"https://api.getlemma.com"}},"navbar":{"links":[{"href":"https://cal.com/vedant-lemma/15min?utm_source=lemma-docs\u0026utm_medium=navbar\u0026utm_campaign=lemma-docs-navbar","label":"Book a demo"}],"primary":{"type":"button","label":"Get started","href":"https://app.getlemma.com/sign-up"}},"footer":{"socials":{}},"seo":{"metatags":{"og:locale":"en_US"},"organization":{"id":"https://getlemma.com/#organization","name":"Lemma","legalName":"Lemma Technologies, Inc.","url":"https://getlemma.com","logo":"https://getlemma.com/icon.png","sameAs":["https://www.linkedin.com/company/lemmahealthcare"]}},"icons":{"library":"lucide"},"styling":{"latex":false},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor"],"display":"header"},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tobiasgetlemmacom","hasAudioNarration":false,"actualSubdomain":"tobiasgetlemmacom","customDomains":["getlemma.com"],"gitSource":{"type":"github","owner":"lemma-banking","repo":"lemma-monorepo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af5067e350c7813e50b61b1","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Banking","count":58},{"language":"default","tag":"API reference","count":48},{"language":"default","tag":"Insurance payments","count":14},{"language":"default","tag":"Entity management","count":11},{"language":"default","tag":"Send money","count":11},{"language":"default","tag":"Concepts","count":10},{"language":"default","tag":"Get started","count":8},{"language":"default","tag":"Entity settings","count":8},{"language":"default","tag":"Bookkeeping","count":8},{"language":"default","tag":"Integrations","count":8}],"searchSettings":{"isFiltersEnabled":false}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"contact@getlemma.com","showHelpButton":true}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#footer>*{display:none}#footer::after{content:\"Lemma Technologies, Inc. is a financial technology company and is not a bank.\\A All bank services are provided by Core Bank, Member FDIC.\";white-space:pre-line;display:block;font-size:0.8125rem;line-height:1.5;opacity:0.7}@media (max-width: 639px){#footer::after{content:\"Lemma Technologies, Inc. is a financial technology company and is not a bank. All bank services are provided by Core Bank, Member FDIC.\";white-space:normal}}"}],"page":{"pagePath":"api-reference/cancel-card","slug":"/api-reference/cancel-card","pageMetadata":{"title":"Cancel a card","description":"Permanently cancel a card so it can no longer be used.","api":"DELETE /v0/cards/{card_id}","href":"/api-reference/cancel-card"},"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: \"Permanently cancel a card so it can no longer be used.\"\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`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Cancels a card so it can no longer be used for payments. Canceling a card cannot be undone: if you only need to pause spending temporarily, `,_jsx(_components.a,{href:`/api-reference/card-lifecycle#is-the-card-active`,children:`freeze the card`}),` instead.`]}),`\n`,_jsxs(_components.p,{children:[`You can only cancel cards issued by your platform. A card issued by the entity’s staff in the Lemma app returns a 404. A single-use card whose `,_jsx(_components.code,{children:`status`}),` is `,_jsx(_components.code,{children:`used`}),` cannot be canceled and returns a `,_jsx(_components.code,{children:`409`}),`. Canceling an already-canceled card succeeds and returns it unchanged.`]}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`card_id`,type:`string`,required:true,id:`param-card-id`,children:_jsx(_components.p,{children:`The card’s unique identifier.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Returns the card object, with `,_jsx(_components.code,{children:`status`}),` `,_jsx(_components.code,{children:`canceled`}),`, or `,_jsx(_components.code,{children:`used`}),` for a used single-use card.`]}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsxs(_components.p,{children:[`Unique identifier for the card, prefixed with `,_jsx(_components.code,{children:`card_`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/api-reference/timestamps`,children:`ISO 8601`}),` timestamp of when the card was created.`]})}),`\n`,_jsx(ResponseField,{name:`entity_id`,type:`string`,id:`param-entity-id`,children:_jsx(_components.p,{children:`The ID of the entity that owns this card.`})}),`\n`,_jsx(ResponseField,{name:`bank_account_id`,type:`string`,id:`param-bank-account-id`,children:_jsx(_components.p,{children:`The bank account this card draws from.`})}),`\n`,_jsx(ResponseField,{name:`nickname`,type:`string`,id:`param-nickname`,children:_jsx(_components.p,{children:`The human-readable label for this card.`})}),`\n`,_jsx(ResponseField,{name:`last_4`,type:`string`,id:`param-last-4`,children:_jsx(_components.p,{children:`The last 4 digits of the card number.`})}),`\n`,_jsxs(ResponseField,{name:`status`,type:`enum`,id:`param-status`,children:[_jsxs(_components.p,{children:[`The card’s status. See `,_jsx(_components.a,{href:`/api-reference/card-lifecycle#is-the-card-active`,children:`Card lifecycle`}),`\nfor how each status behaves.`]}),_jsxs(Expandable,{title:`Available options`,children:[_jsx(ResponseField,{name:`active`,type:`string`,id:`param-active`,children:_jsx(_components.p,{children:`The card can be used for payments.`})}),_jsx(ResponseField,{name:`disabled`,type:`string`,id:`param-disabled`,children:_jsx(_components.p,{children:`The card is frozen.`})}),_jsx(ResponseField,{name:`canceled`,type:`string`,id:`param-canceled`,children:_jsx(_components.p,{children:`The card is permanently canceled.`})}),_jsx(ResponseField,{name:`expired`,type:`string`,id:`param-expired`,children:_jsx(_components.p,{children:`The card is past its expiration date.`})}),_jsx(ResponseField,{name:`used`,type:`string`,id:`param-used`,children:_jsx(_components.p,{children:`A single-use card whose one purchase is pending or settled.`})}),_jsx(ResponseField,{name:`awaiting_activation`,type:`string`,id:`param-awaiting-activation`,children:_jsx(_components.p,{children:`A physical card that has not been activated yet.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`authorization_controls`,type:`object`,id:`param-authorization-controls`,children:[_jsx(_components.p,{children:`Every control restricting how this card can be used.`}),_jsxs(Expandable,{title:`Authorization controls object`,children:[_jsxs(ResponseField,{name:`usage`,type:`object`,id:`param-usage`,children:[_jsx(_components.p,{children:`How many times this card can be used, and its controls.`}),_jsxs(Expandable,{title:`Usage object`,children:[_jsxs(ResponseField,{name:`category`,type:`enum`,id:`param-category`,children:[_jsx(_components.p,{children:`Whether the card is for a single use or multiple uses.`}),_jsxs(Expandable,{title:`Available options`,children:[_jsx(ResponseField,{name:`multi_use`,type:`string`,id:`param-multi-use`,children:_jsx(_components.p,{children:`The card can be used for multiple purchases, within its spending\nlimits.`})}),_jsx(ResponseField,{name:`single_use`,type:`string`,id:`param-single-use`,children:_jsx(_components.p,{children:`The card can be used for one purchase, up to a maximum amount.`})})]})]}),_jsxs(ResponseField,{name:`multi_use`,type:`object | null`,id:`param-multi-use-1`,children:[_jsxs(_components.p,{children:[`Controls for multi-use cards. `,_jsx(_components.code,{children:`null`}),` on a single-use card.`]}),_jsx(Expandable,{title:`Multi-use object`,children:_jsxs(ResponseField,{name:`spending_limits`,type:`object[]`,id:`param-spending-limits`,children:[_jsx(_components.p,{children:`Every spending limit enforced on this card, including the ones\nLemma applies automatically.`}),_jsxs(Expandable,{title:`Limit object`,children:[_jsxs(ResponseField,{name:`interval`,type:`enum`,id:`param-interval`,children:[_jsx(_components.p,{children:`The window this limit is enforced over.`}),_jsxs(Expandable,{title:`Available options`,children:[_jsx(ResponseField,{name:`all_time`,type:`string`,id:`param-all-time`,children:_jsx(_components.p,{children:`Applies over the lifetime of the card.`})}),_jsx(ResponseField,{name:`per_transaction`,type:`string`,id:`param-per-transaction`,children:_jsx(_components.p,{children:`Applies to each individual transaction.`})}),_jsx(ResponseField,{name:`per_day`,type:`string`,id:`param-per-day`,children:_jsx(_components.p,{children:`Resets nightly at midnight UTC.`})}),_jsx(ResponseField,{name:`per_week`,type:`string`,id:`param-per-week`,children:_jsx(_components.p,{children:`Resets weekly on Mondays at midnight UTC.`})}),_jsx(ResponseField,{name:`per_month`,type:`string`,id:`param-per-month`,children:_jsx(_components.p,{children:`Resets on the first of the month at midnight UTC.`})})]})]}),_jsx(ResponseField,{name:`amount`,type:`integer`,id:`param-amount`,children:_jsx(_components.p,{children:`Cap in cents.`})}),_jsx(ResponseField,{name:`merchant_category_codes`,type:`string[] | null`,id:`param-merchant-category-codes`,children:_jsxs(_components.p,{children:[`Merchant category codes this limit applies to. `,_jsx(_components.code,{children:`null`}),` applies\nto all merchants.`]})})]})]})})]}),_jsxs(ResponseField,{name:`single_use`,type:`object | null`,id:`param-single-use-1`,children:[_jsxs(_components.p,{children:[`Controls for single-use cards. `,_jsx(_components.code,{children:`null`}),` on a multi-use card.`]}),_jsx(Expandable,{title:`Single-use object`,children:_jsxs(ResponseField,{name:`settlement_amount`,type:`object`,id:`param-settlement-amount`,children:[_jsx(_components.p,{children:`The amount the card’s one purchase is checked against.`}),_jsxs(Expandable,{title:`Settlement amount object`,children:[_jsxs(ResponseField,{name:`comparison`,type:`enum`,id:`param-comparison`,children:[_jsxs(_components.p,{children:[`How the purchase’s settled amount is compared with `,_jsx(_components.code,{children:`value`}),`.`]}),_jsxs(Expandable,{title:`Available options`,children:[_jsx(ResponseField,{name:`less_than_or_equals`,type:`string`,id:`param-less-than-or-equals`,children:_jsxs(_components.p,{children:[`Any amount up to `,_jsx(_components.code,{children:`value`}),` is approved.`]})}),_jsx(ResponseField,{name:`equals`,type:`string`,id:`param-equals`,children:_jsxs(_components.p,{children:[`Only exactly `,_jsx(_components.code,{children:`value`}),` is approved.`]})})]})]}),_jsx(ResponseField,{name:`value`,type:`integer`,id:`param-value`,children:_jsx(_components.p,{children:`The most the purchase may settle for, in cents.`})})]})]})})]})]})]}),_jsxs(ResponseField,{name:`merchant_acceptor_identifier`,type:`object | null`,id:`param-merchant-acceptor-identifier`,children:[_jsxs(_components.p,{children:[`Restricts which Merchant Acceptor IDs this card may transact with. `,_jsx(_components.code,{children:`null`}),`\nwhen this dimension is unrestricted.`]}),_jsxs(Expandable,{title:`Merchant acceptor identifier object`,children:[_jsx(ResponseField,{name:`allowed`,type:`string[] | null`,id:`param-allowed`,children:_jsxs(_components.p,{children:[`The only Merchant Acceptor IDs this card may transact with. `,_jsx(_components.code,{children:`null`}),`\nwhen this dimension is not an allow list.`]})}),_jsx(ResponseField,{name:`blocked`,type:`string[] | null`,id:`param-blocked`,children:_jsxs(_components.p,{children:[`Merchant Acceptor IDs this card may never transact with. `,_jsx(_components.code,{children:`null`}),` when\nthis dimension is not a block list.`]})})]})]}),_jsxs(ResponseField,{name:`merchant_category_code`,type:`object | null`,id:`param-merchant-category-code`,children:[_jsxs(_components.p,{children:[`Restricts which merchant categories this card may transact with, including\nthe categories Lemma blocks on every card it issues. `,_jsx(_components.code,{children:`null`}),` when this\ndimension is unrestricted.`]}),_jsxs(Expandable,{title:`Merchant category code object`,children:[_jsx(ResponseField,{name:`allowed`,type:`string[] | null`,id:`param-allowed-1`,children:_jsxs(_components.p,{children:[`The only merchant category codes this card may transact with. `,_jsx(_components.code,{children:`null`}),`\nwhen this dimension is not an allow list.`]})}),_jsx(ResponseField,{name:`blocked`,type:`string[] | null`,id:`param-blocked-1`,children:_jsxs(_components.p,{children:[`Merchant category codes this card may never transact with. `,_jsx(_components.code,{children:`null`}),` when\nthis dimension is not a block list.`]})})]})]}),_jsxs(ResponseField,{name:`merchant_country`,type:`object | null`,id:`param-merchant-country`,children:[_jsxs(_components.p,{children:[`Restricts which merchant countries this card may transact with, as `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2`,children:`ISO\n3166-1 alpha-2`}),` codes.\n`,_jsx(_components.code,{children:`null`}),` when this dimension is unrestricted.`]}),_jsxs(Expandable,{title:`Merchant country object`,children:[_jsx(ResponseField,{name:`allowed`,type:`string[] | null`,id:`param-allowed-2`,children:_jsxs(_components.p,{children:[`The only merchant countries this card may transact with. `,_jsx(_components.code,{children:`null`}),` when\nthis dimension is not an allow list.`]})}),_jsx(ResponseField,{name:`blocked`,type:`string[] | null`,id:`param-blocked-2`,children:_jsxs(_components.p,{children:[`Merchant countries this card may never transact with. `,_jsx(_components.code,{children:`null`}),` when this\ndimension is not a block list.`]})})]})]})]})]})]})}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 card","description":"Permanently cancel a card so it can no longer be used.","api":"DELETE /v0/cards/{card_id}","href":"/api-reference/cancel-card"}}},"mdxSourceWithNoJs":{"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`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Cancels a card so it can no longer be used for payments. Canceling a card cannot be undone: if you only need to pause spending temporarily, `,_jsx(_components.a,{href:`/api-reference/card-lifecycle#is-the-card-active`,children:`freeze the card`}),` instead.`]}),`\n`,_jsxs(_components.p,{children:[`You can only cancel cards issued by your platform. A card issued by the entity’s staff in the Lemma app returns a 404. A single-use card whose `,_jsx(_components.code,{children:`status`}),` is `,_jsx(_components.code,{children:`used`}),` cannot be canceled and returns a `,_jsx(_components.code,{children:`409`}),`. Canceling an already-canceled card succeeds and returns it unchanged.`]}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`card_id`,type:`string`,required:true,id:`param-card-id`,children:_jsx(_components.p,{children:`The card’s unique identifier.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Returns the card object, with `,_jsx(_components.code,{children:`status`}),` `,_jsx(_components.code,{children:`canceled`}),`, or `,_jsx(_components.code,{children:`used`}),` for a used single-use card.`]}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsxs(_components.p,{children:[`Unique identifier for the card, prefixed with `,_jsx(_components.code,{children:`card_`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/api-reference/timestamps`,children:`ISO 8601`}),` timestamp of when the card was created.`]})}),`\n`,_jsx(ResponseField,{name:`entity_id`,type:`string`,id:`param-entity-id`,children:_jsx(_components.p,{children:`The ID of the entity that owns this card.`})}),`\n`,_jsx(ResponseField,{name:`bank_account_id`,type:`string`,id:`param-bank-account-id`,children:_jsx(_components.p,{children:`The bank account this card draws from.`})}),`\n`,_jsx(ResponseField,{name:`nickname`,type:`string`,id:`param-nickname`,children:_jsx(_components.p,{children:`The human-readable label for this card.`})}),`\n`,_jsx(ResponseField,{name:`last_4`,type:`string`,id:`param-last-4`,children:_jsx(_components.p,{children:`The last 4 digits of the card number.`})}),`\n`,_jsxs(ResponseField,{name:`status`,type:`enum`,id:`param-status`,children:[_jsxs(_components.p,{children:[`The card’s status. See `,_jsx(_components.a,{href:`/api-reference/card-lifecycle#is-the-card-active`,children:`Card lifecycle`}),`\nfor how each status behaves.`]}),_jsxs(Expandable,{title:`Available options`,children:[_jsx(ResponseField,{name:`active`,type:`string`,id:`param-active`,children:_jsx(_components.p,{children:`The card can be used for payments.`})}),_jsx(ResponseField,{name:`disabled`,type:`string`,id:`param-disabled`,children:_jsx(_components.p,{children:`The card is frozen.`})}),_jsx(ResponseField,{name:`canceled`,type:`string`,id:`param-canceled`,children:_jsx(_components.p,{children:`The card is permanently canceled.`})}),_jsx(ResponseField,{name:`expired`,type:`string`,id:`param-expired`,children:_jsx(_components.p,{children:`The card is past its expiration date.`})}),_jsx(ResponseField,{name:`used`,type:`string`,id:`param-used`,children:_jsx(_components.p,{children:`A single-use card whose one purchase is pending or settled.`})}),_jsx(ResponseField,{name:`awaiting_activation`,type:`string`,id:`param-awaiting-activation`,children:_jsx(_components.p,{children:`A physical card that has not been activated yet.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`authorization_controls`,type:`object`,id:`param-authorization-controls`,children:[_jsx(_components.p,{children:`Every control restricting how this card can be used.`}),_jsxs(Expandable,{title:`Authorization controls object`,children:[_jsxs(ResponseField,{name:`usage`,type:`object`,id:`param-usage`,children:[_jsx(_components.p,{children:`How many times this card can be used, and its controls.`}),_jsxs(Expandable,{title:`Usage object`,children:[_jsxs(ResponseField,{name:`category`,type:`enum`,id:`param-category`,children:[_jsx(_components.p,{children:`Whether the card is for a single use or multiple uses.`}),_jsxs(Expandable,{title:`Available options`,children:[_jsx(ResponseField,{name:`multi_use`,type:`string`,id:`param-multi-use`,children:_jsx(_components.p,{children:`The card can be used for multiple purchases, within its spending\nlimits.`})}),_jsx(ResponseField,{name:`single_use`,type:`string`,id:`param-single-use`,children:_jsx(_components.p,{children:`The card can be used for one purchase, up to a maximum amount.`})})]})]}),_jsxs(ResponseField,{name:`multi_use`,type:`object | null`,id:`param-multi-use-1`,children:[_jsxs(_components.p,{children:[`Controls for multi-use cards. `,_jsx(_components.code,{children:`null`}),` on a single-use card.`]}),_jsx(Expandable,{title:`Multi-use object`,children:_jsxs(ResponseField,{name:`spending_limits`,type:`object[]`,id:`param-spending-limits`,children:[_jsx(_components.p,{children:`Every spending limit enforced on this card, including the ones\nLemma applies automatically.`}),_jsxs(Expandable,{title:`Limit object`,children:[_jsxs(ResponseField,{name:`interval`,type:`enum`,id:`param-interval`,children:[_jsx(_components.p,{children:`The window this limit is enforced over.`}),_jsxs(Expandable,{title:`Available options`,children:[_jsx(ResponseField,{name:`all_time`,type:`string`,id:`param-all-time`,children:_jsx(_components.p,{children:`Applies over the lifetime of the card.`})}),_jsx(ResponseField,{name:`per_transaction`,type:`string`,id:`param-per-transaction`,children:_jsx(_components.p,{children:`Applies to each individual transaction.`})}),_jsx(ResponseField,{name:`per_day`,type:`string`,id:`param-per-day`,children:_jsx(_components.p,{children:`Resets nightly at midnight UTC.`})}),_jsx(ResponseField,{name:`per_week`,type:`string`,id:`param-per-week`,children:_jsx(_components.p,{children:`Resets weekly on Mondays at midnight UTC.`})}),_jsx(ResponseField,{name:`per_month`,type:`string`,id:`param-per-month`,children:_jsx(_components.p,{children:`Resets on the first of the month at midnight UTC.`})})]})]}),_jsx(ResponseField,{name:`amount`,type:`integer`,id:`param-amount`,children:_jsx(_components.p,{children:`Cap in cents.`})}),_jsx(ResponseField,{name:`merchant_category_codes`,type:`string[] | null`,id:`param-merchant-category-codes`,children:_jsxs(_components.p,{children:[`Merchant category codes this limit applies to. `,_jsx(_components.code,{children:`null`}),` applies\nto all merchants.`]})})]})]})})]}),_jsxs(ResponseField,{name:`single_use`,type:`object | null`,id:`param-single-use-1`,children:[_jsxs(_components.p,{children:[`Controls for single-use cards. `,_jsx(_components.code,{children:`null`}),` on a multi-use card.`]}),_jsx(Expandable,{title:`Single-use object`,children:_jsxs(ResponseField,{name:`settlement_amount`,type:`object`,id:`param-settlement-amount`,children:[_jsx(_components.p,{children:`The amount the card’s one purchase is checked against.`}),_jsxs(Expandable,{title:`Settlement amount object`,children:[_jsxs(ResponseField,{name:`comparison`,type:`enum`,id:`param-comparison`,children:[_jsxs(_components.p,{children:[`How the purchase’s settled amount is compared with `,_jsx(_components.code,{children:`value`}),`.`]}),_jsxs(Expandable,{title:`Available options`,children:[_jsx(ResponseField,{name:`less_than_or_equals`,type:`string`,id:`param-less-than-or-equals`,children:_jsxs(_components.p,{children:[`Any amount up to `,_jsx(_components.code,{children:`value`}),` is approved.`]})}),_jsx(ResponseField,{name:`equals`,type:`string`,id:`param-equals`,children:_jsxs(_components.p,{children:[`Only exactly `,_jsx(_components.code,{children:`value`}),` is approved.`]})})]})]}),_jsx(ResponseField,{name:`value`,type:`integer`,id:`param-value`,children:_jsx(_components.p,{children:`The most the purchase may settle for, in cents.`})})]})]})})]})]})]}),_jsxs(ResponseField,{name:`merchant_acceptor_identifier`,type:`object | null`,id:`param-merchant-acceptor-identifier`,children:[_jsxs(_components.p,{children:[`Restricts which Merchant Acceptor IDs this card may transact with. `,_jsx(_components.code,{children:`null`}),`\nwhen this dimension is unrestricted.`]}),_jsxs(Expandable,{title:`Merchant acceptor identifier object`,children:[_jsx(ResponseField,{name:`allowed`,type:`string[] | null`,id:`param-allowed`,children:_jsxs(_components.p,{children:[`The only Merchant Acceptor IDs this card may transact with. `,_jsx(_components.code,{children:`null`}),`\nwhen this dimension is not an allow list.`]})}),_jsx(ResponseField,{name:`blocked`,type:`string[] | null`,id:`param-blocked`,children:_jsxs(_components.p,{children:[`Merchant Acceptor IDs this card may never transact with. `,_jsx(_components.code,{children:`null`}),` when\nthis dimension is not a block list.`]})})]})]}),_jsxs(ResponseField,{name:`merchant_category_code`,type:`object | null`,id:`param-merchant-category-code`,children:[_jsxs(_components.p,{children:[`Restricts which merchant categories this card may transact with, including\nthe categories Lemma blocks on every card it issues. `,_jsx(_components.code,{children:`null`}),` when this\ndimension is unrestricted.`]}),_jsxs(Expandable,{title:`Merchant category code object`,children:[_jsx(ResponseField,{name:`allowed`,type:`string[] | null`,id:`param-allowed-1`,children:_jsxs(_components.p,{children:[`The only merchant category codes this card may transact with. `,_jsx(_components.code,{children:`null`}),`\nwhen this dimension is not an allow list.`]})}),_jsx(ResponseField,{name:`blocked`,type:`string[] | null`,id:`param-blocked-1`,children:_jsxs(_components.p,{children:[`Merchant category codes this card may never transact with. `,_jsx(_components.code,{children:`null`}),` when\nthis dimension is not a block list.`]})})]})]}),_jsxs(ResponseField,{name:`merchant_country`,type:`object | null`,id:`param-merchant-country`,children:[_jsxs(_components.p,{children:[`Restricts which merchant countries this card may transact with, as `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2`,children:`ISO\n3166-1 alpha-2`}),` codes.\n`,_jsx(_components.code,{children:`null`}),` when this dimension is unrestricted.`]}),_jsxs(Expandable,{title:`Merchant country object`,children:[_jsx(ResponseField,{name:`allowed`,type:`string[] | null`,id:`param-allowed-2`,children:_jsxs(_components.p,{children:[`The only merchant countries this card may transact with. `,_jsx(_components.code,{children:`null`}),` when\nthis dimension is not an allow list.`]})}),_jsx(ResponseField,{name:`blocked`,type:`string[] | null`,id:`param-blocked-2`,children:_jsxs(_components.p,{children:[`Merchant countries this card may never transact with. `,_jsx(_components.code,{children:`null`}),` when this\ndimension is not a block list.`]})})]})]})]})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`24`,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:`24`,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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"card_Bx5nTm8hKw3pVd7c\"`}),_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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-07-28T18:45:00Z\"`}),_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:` \"entity_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"entity_k7mXp2vR9nTfBw4s\"`}),_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:` \"bank_account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"account_Hs3fXp7cVm9tRk2b\"`}),_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:` \"nickname\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Acme ops card\"`}),_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:` \"last_4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4242\"`}),_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:`\"canceled\"`}),_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:` \"authorization_controls\"`}),_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:` \"usage\"`}),_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:` \"category\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"multi_use\"`}),_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:` \"multi_use\"`}),_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:` \"spending_limits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"interval\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"per_transaction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`25000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"merchant_category_codes\"`}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"interval\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"per_day\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"merchant_category_codes\"`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_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:` \"single_use\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_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:` \"merchant_acceptor_identifier\"`}),_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:` \"merchant_category_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"allowed\"`}),_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:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"blocked\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7995\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6051\"`}),_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:` \"merchant_country\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`403`,numberOfLines:`5`,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:`5`,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:` \"statusCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`403`}),_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:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Forbidden\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Insufficient permissions to cancel cards for this entity\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`404`,numberOfLines:`5`,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:`5`,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:` \"statusCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`404`}),_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:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Not Found\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Card not found\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`409`,numberOfLines:`5`,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:`5`,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:` \"statusCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`409`}),_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:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Conflict\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This single-use card has already been used.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}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 card","description":"Permanently cancel a card so it can no longer be used.","api":"DELETE /v0/cards/{card_id}","href":"/api-reference/cancel-card"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Path parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"24\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"card_Bx5nTm8hKw3pVd7c\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-07-28T18:45:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"entity_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"entity_k7mXp2vR9nTfBw4s\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"bank_account_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"account_Hs3fXp7cVm9tRk2b\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"nickname\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Acme ops card\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"last_4\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"4242\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"canceled\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"authorization_controls\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"usage\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"category\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"multi_use\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"multi_use\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"spending_limits\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"interval\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"per_transaction\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">25000\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"merchant_category_codes\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"interval\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"per_day\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">100000\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"merchant_category_codes\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"single_use\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"merchant_acceptor_identifier\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"merchant_category_code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"allowed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"blocked\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"7995\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"6051\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">] },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"merchant_country\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"403","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"statusCode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">403\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Forbidden\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Insufficient permissions to cancel cards for this entity\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"404","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"statusCode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">404\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Not Found\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Card not found\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"409","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"statusCode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">409\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Conflict\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"This single-use card has already been used.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Cancel a card","path":"/v0/cards/{card_id}","servers":[{"url":"https://api.getlemma.com"}],"method":"delete","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{"card_id":{"schema":[{"type":"string","description":"The card’s unique identifier.","required":true}]}}},"body":{}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"id":[{"type":"string","description":"Unique identifier for the card, prefixed with `card_` ."}],"created_at":[{"type":"string","description":"ISO 8601 timestamp of when the card was created."}],"entity_id":[{"type":"string","description":"The ID of the entity that owns this card."}],"bank_account_id":[{"type":"string","description":"The bank account this card draws from."}],"nickname":[{"type":"string","description":"The human-readable label for this card."}],"last_4":[{"type":"string","description":"The last 4 digits of the card number."}],"status":[{"type":"object","properties":{"active":[{"type":"string","description":"The card can be used for payments."}],"disabled":[{"type":"string","description":"The card is frozen."}],"canceled":[{"type":"string","description":"The card is permanently canceled."}],"expired":[{"type":"string","description":"The card is past its expiration date."}],"used":[{"type":"string","description":"A single-use card whose one purchase is pending or settled."}],"awaiting_activation":[{"type":"string","description":"A physical card that has not been activated yet."}]},"description":"The card’s status. See Card lifecycle for how each status behaves."}],"authorization_controls":[{"type":"object","properties":{"usage":[{"type":"object","properties":{"category":[{"type":"object","properties":{"multi_use":[{"type":"string","description":"The card can be used for multiple purchases, within its spending limits."}],"single_use":[{"type":"string","description":"The card can be used for one purchase, up to a maximum amount."}]},"description":"Whether the card is for a single use or multiple uses."}],"multi_use":[{"type":"object","properties":{"spending_limits":[{"type":"array","items":[{"type":"object","properties":{"interval":[{"type":"object","properties":{"all_time":[{"type":"string","description":"Applies over the lifetime of the card."}],"per_transaction":[{"type":"string","description":"Applies to each individual transaction."}],"per_day":[{"type":"string","description":"Resets nightly at midnight UTC."}],"per_week":[{"type":"string","description":"Resets weekly on Mondays at midnight UTC."}],"per_month":[{"type":"string","description":"Resets on the first of the month at midnight UTC."}]},"description":"The window this limit is enforced over."}],"amount":[{"type":"integer","description":"Cap in cents."}],"merchant_category_codes":[{"type":"object","properties":{},"description":"Merchant category codes this limit applies to. `null` applies to all merchants."}]}}],"description":"Every spending limit enforced on this card, including the ones Lemma applies automatically."}]},"description":"Controls for multi-use cards. `null` on a single-use card."}],"single_use":[{"type":"object","properties":{"settlement_amount":[{"type":"object","properties":{"comparison":[{"type":"object","properties":{"less_than_or_equals":[{"type":"string","description":"Any amount up to `value` is approved."}],"equals":[{"type":"string","description":"Only exactly `value` is approved."}]},"description":"How the purchase’s settled amount is compared with `value` ."}],"value":[{"type":"integer","description":"The most the purchase may settle for, in cents."}]},"description":"The amount the card’s one purchase is checked against."}]},"description":"Controls for single-use cards. `null` on a multi-use card."}]},"description":"How many times this card can be used, and its controls."}],"merchant_acceptor_identifier":[{"type":"object","properties":{"allowed":[{"type":"object","properties":{},"description":"The only Merchant Acceptor IDs this card may transact with. `null` when this dimension is not an allow list."}],"blocked":[{"type":"object","properties":{},"description":"Merchant Acceptor IDs this card may never transact with. `null` when this dimension is not a block list."}]},"description":"Restricts which Merchant Acceptor IDs this card may transact with. `null` when this dimension is unrestricted."}],"merchant_category_code":[{"type":"object","properties":{"allowed":[{"type":"object","properties":{},"description":"The only merchant category codes this card may transact with. `null` when this dimension is not an allow list."}],"blocked":[{"type":"object","properties":{},"description":"Merchant category codes this card may never transact with. `null` when this dimension is not a block list."}]},"description":"Restricts which merchant categories this card may transact with, including the categories Lemma blocks on every card it issues. `null` when this dimension is unrestricted."}],"merchant_country":[{"type":"object","properties":{"allowed":[{"type":"object","properties":{},"description":"The only merchant countries this card may transact with. `null` when this dimension is not an allow list."}],"blocked":[{"type":"object","properties":{},"description":"Merchant countries this card may never transact with. `null` when this dimension is not a block list."}]},"description":"Restricts which merchant countries this card may transact with, as ISO 3166-1 alpha-2 codes. `null` when this dimension is unrestricted."}]},"description":"Every control restricting how this card can be used."}]}}],"examples":{"example":{"value":{"id":"\u003cstring>","created_at":"\u003cstring>","entity_id":"\u003cstring>","bank_account_id":"\u003cstring>","nickname":"\u003cstring>","last_4":"\u003cstring>","status":{"active":"\u003cstring>","disabled":"\u003cstring>","canceled":"\u003cstring>","expired":"\u003cstring>","used":"\u003cstring>","awaiting_activation":"\u003cstring>"},"authorization_controls":{"usage":{"category":{"multi_use":"\u003cstring>","single_use":"\u003cstring>"},"multi_use":{"spending_limits":[{"interval":{"all_time":"\u003cstring>","per_transaction":"\u003cstring>","per_day":"\u003cstring>","per_week":"\u003cstring>","per_month":"\u003cstring>"},"amount":123,"merchant_category_codes":{}}]},"single_use":{"settlement_amount":{"comparison":{"less_than_or_equals":"\u003cstring>","equals":"\u003cstring>"},"value":123}}},"merchant_acceptor_identifier":{"allowed":{},"blocked":{}},"merchant_category_code":{"allowed":{},"blocked":{}},"merchant_country":{"allowed":{},"blocked":{}}}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"tobiasgetlemmacom","siteName":"Lemma","title":"Cancel a card - Lemma","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-27T00:47:34.409Z","originalFileLocation":"api-reference/cancel-card.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=\"Permanently cancel a card so it can no longer be used.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lemma\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/tobiasgetlemmacom/2ulUT6jTif4fQAgK/_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=\"/docs/mintlify-assets/_mintlify/favicons/tobiasgetlemmacom/2ulUT6jTif4fQAgK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/tobiasgetlemmacom/2ulUT6jTif4fQAgK/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/tobiasgetlemmacom/2ulUT6jTif4fQAgK/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/tobiasgetlemmacom/2ulUT6jTif4fQAgK/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/tobiasgetlemmacom/2ulUT6jTif4fQAgK/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/tobiasgetlemmacom/2ulUT6jTif4fQAgK/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/tobiasgetlemmacom/2ulUT6jTif4fQAgK/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/tobiasgetlemmacom/2ulUT6jTif4fQAgK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cancel a card - Lemma\">\u003cmeta data-mint-head property=\"og:description\" content=\"Permanently cancel a card so it can no longer be used.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lemma\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://getlemma.com/docs/api-reference/cancel-card\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tobiasgetlemmacom.mintlify.site/docs/_mintlify/api/og/v2?division=Cards\u0026amp;title=Cancel+a+card\u0026amp;description=Permanently+cancel+a+card+so+it+can+no+longer+be+used.\u0026amp;theme=9ba478b57b2987cb9977a672\u0026amp;signature=6b25860ccc3013ba2c6e5b699824968fb206572cc08f90b46ad9161752010420\">\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 card - Lemma\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Permanently cancel a card so it can no longer be used.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tobiasgetlemmacom.mintlify.site/docs/_mintlify/api/og/v2?division=Cards\u0026amp;title=Cancel+a+card\u0026amp;description=Permanently+cancel+a+card+so+it+can+no+longer+be+used.\u0026amp;theme=9ba478b57b2987cb9977a672\u0026amp;signature=6b25860ccc3013ba2c6e5b699824968fb206572cc08f90b46ad9161752010420\">\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=\"/docs/mintlify-assets/_mintlify/favicons/tobiasgetlemmacom/2ulUT6jTif4fQAgK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lemma\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3E8C62\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003clink data-mint-head rel=\"canonical\" href=\"https://getlemma.com/docs/api-reference/cancel-card\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/cancel-card.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://getlemma.com/#organization\",\"name\":\"Lemma\",\"legalName\":\"Lemma Technologies, Inc.\",\"url\":\"https://getlemma.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://getlemma.com/icon.png\"},\"sameAs\":[\"https://www.linkedin.com/company/lemmahealthcare\"]},{\"@type\":\"WebSite\",\"@id\":\"https://getlemma.com/docs#website\",\"name\":\"Lemma\",\"url\":\"https://getlemma.com/docs\",\"publisher\":{\"@id\":\"https://getlemma.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://getlemma.com/docs/api-reference/cancel-card#webpage\",\"url\":\"https://getlemma.com/docs/api-reference/cancel-card\",\"name\":\"Cancel a card\",\"description\":\"Permanently cancel a card so it can no longer be used.\",\"dateModified\":\"2026-10-27T00:47:34.409Z\",\"isPartOf\":{\"@id\":\"https://getlemma.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://getlemma.com/docs/api-reference/cancel-card#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://getlemma.com/docs/api-reference/cancel-card#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cards\",\"item\":\"https://getlemma.com/docs/api-reference/get-card\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cancel a card\",\"item\":\"https://getlemma.com/docs/api-reference/cancel-card\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://getlemma.com/docs/api-reference/cancel-card#apireference\",\"headline\":\"Cancel a card\",\"name\":\"Cancel a card\",\"description\":\"Permanently cancel a card so it can no longer be used.\",\"url\":\"https://getlemma.com/docs/api-reference/cancel-card\",\"mainEntityOfPage\":{\"@id\":\"https://getlemma.com/docs/api-reference/cancel-card#webpage\"},\"dateModified\":\"2026-10-27T00:47:34.409Z\",\"publisher\":{\"@id\":\"https://getlemma.com/#organization\"},\"isPartOf\":{\"@id\":\"https://getlemma.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lemma\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Lemma\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/cancel-card.md","siteName":"Lemma","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Banking","pages":[{"title":"Banking","href":""}]},{"tab":"Insurance payments","pages":[{"title":"Insurance payments","href":"/billing/eob-processing"}]},{"tab":"API reference","groups":[{"group":"Getting started","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Webhooks","href":"/api-reference/webhooks"}]},{"group":"Concepts","pages":[{"title":"Entities","href":"/api-reference/entities"},{"title":"Saved recipients","href":"/api-reference/saved-recipients"},{"title":"Timestamps","href":"/api-reference/timestamps"},{"title":"Pagination","href":"/api-reference/pagination"},{"title":"Idempotency","href":"/api-reference/idempotency"},{"title":"What is inbound?","href":"/api-reference/what-is-inbound"},{"title":"Card payments","href":"/api-reference/card-payments"},{"title":"Lifecycle of a Lemma card","sidebarTitle":"Card lifecycle","href":"/api-reference/card-lifecycle"},{"title":"Understanding 835 remittances","sidebarTitle":"835 remittances","href":"/api-reference/835-remittances"}]},{"group":"Entities","pages":[{"title":"Get entity","api":"GET /v0/entities/{entity_id}","href":"/api-reference/get-entity"},{"title":"List entities","api":"GET /v0/entities","href":"/api-reference/list-entities"}]},{"group":"Bank Accounts","pages":[{"title":"Get bank account","api":"GET /v0/accounts/{account_id}","href":"/api-reference/get-bank-account"},{"title":"List bank accounts","api":"GET /v0/accounts","href":"/api-reference/list-bank-accounts"},{"title":"Open a bank account","api":"POST /v0/accounts","href":"/api-reference/create-bank-account"},{"title":"Get settlement instructions","api":"GET /v0/accounts/{account_id}/settlement-instructions","href":"/api-reference/get-account-settlement-instructions"}]},{"group":"Lockbox","pages":[{"title":"Get entity lockbox","api":"GET /v0/entities/{entity_id}/lockbox","href":"/api-reference/get-entity-lockbox"},{"title":"List entity mail","api":"GET /v0/entities/{entity_id}/mail","href":"/api-reference/list-entity-mail"},{"title":"Get PDF","api":"GET /v0/files/{id}","href":"/api-reference/get-pdf"}]},{"group":"Check deposits","pages":[{"title":"Get a check deposit","api":"GET /v0/check-deposits/{check_deposit_id}","href":"/api-reference/get-check-deposit"},{"title":"List check deposits","api":"GET /v0/check-deposits","href":"/api-reference/list-check-deposits"}]},{"group":"Remittances","pages":[{"title":"List remittances","api":"GET /v0/remittances","href":"/api-reference/list-remittances"},{"title":"Get a remittance's 835 as JSON","api":"GET /v0/remittances/{id}","sidebarTitle":"Get a remittance's 835 (JSON)","href":"/api-reference/get-remittance"},{"title":"Get a remittance's 835 Electronic Remittance Advice (ERA)","api":"GET /v0/remittances/{id}/era","sidebarTitle":"Get a remittance's 835 (ERA)","href":"/api-reference/get-remittance-era"},{"title":"Search reconciliation relationships","href":"/api-reference/recon-search"}]},{"group":"Transactions","pages":[{"title":"Get transaction","api":"GET /v0/transactions/{transaction_id}","href":"/api-reference/get-transaction"},{"title":"List transactions","api":"GET /v0/transactions","href":"/api-reference/list-transactions"}]},{"group":"External accounts","pages":[{"title":"Get external account","api":"GET /v0/external-accounts/{external_account_id}","href":"/api-reference/get-external-account"},{"title":"List external accounts","api":"GET /v0/external-accounts","href":"/api-reference/list-external-accounts"},{"title":"Create external account","api":"POST /v0/external-accounts","href":"/api-reference/create-external-account"}]},{"group":"Cards","pages":[{"title":"Get card","api":"GET /v0/cards/{card_id}","href":"/api-reference/get-card"},{"title":"Create card","api":"POST /v0/cards","href":"/api-reference/create-card"},{"title":"Update card","api":"PATCH /v0/cards/{card_id}","href":"/api-reference/update-card"},{"title":"Get a card iframe","description":"Get a short-lived iframe URL for displaying a card's sensitive details.","api":"GET /v0/cards/{card_id}/iframe","href":"/api-reference/get-card-iframe"},{"title":"Cancel a card","api":"DELETE /v0/cards/{card_id}","href":"/api-reference/cancel-card"}]},{"group":"Book transfers","pages":[{"title":"Get book transfer","description":"Retrieve a single book transfer by its ID.","api":"GET /v0/book-transfer/{book_transfer_id}","href":"/api-reference/get-book-transfer"},{"title":"Move money internally","api":"POST /v0/book-transfer","href":"/api-reference/move-money-internally"}]},{"group":"ACH transfers","expanded":false,"pages":[{"group":"Inbound ACH transfers","pages":[{"title":"Get inbound ACH transfer","api":"GET /v0/inbound-ach-transfers/{inbound_ach_transfer_id}","href":"/api-reference/get-inbound-ach-transfer"},{"title":"List inbound ACH transfers","api":"GET /v0/inbound-ach-transfers","href":"/api-reference/list-inbound-ach-transfers"}]},{"group":"Outbound ACH transfers","pages":[{"title":"Get outbound ACH transfer","api":"GET /v0/ach-transfer/{ach_transfer_id}","href":"/api-reference/get-ach-transfer"},{"title":"List outbound ACH transfers","api":"GET /v0/ach-transfer","href":"/api-reference/list-ach-transfers"},{"title":"Move money externally","api":"POST /v0/ach-transfer","href":"/api-reference/move-money-externally"}]}]},{"group":"Card payments","expanded":false,"pages":[{"group":"Acquiring","pages":[{"title":"Get inbound card payment","api":"GET /v0/inbound-card-payments/{inbound_card_payment_id}","href":"/api-reference/get-inbound-card-payment"},{"title":"List inbound card payments","api":"GET /v0/inbound-card-payments","href":"/api-reference/list-inbound-card-payments"}]},{"group":"Debit cards","pages":[{"title":"Get outbound card payment","api":"GET /v0/card-payments/{card_payment_id}","href":"/api-reference/get-card-payment"},{"title":"List outbound card payments","api":"GET /v0/card-payments","href":"/api-reference/list-card-payments"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Cancel a card - Lemma","buildId":"dpl_6PxPD4Fj1JDU9BJxEHvfdUmxKThw","deploymentId":"dpl_6PxPD4Fj1JDU9BJxEHvfdUmxKThw","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-CASS2Vpq.js","utils-4k9fyWRu.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-UU-UueZb.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BgJ0LOYq.js","snippetPresets-CMgzlMR-.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BzEJegkK.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CZuQIZdk.js","shallow-Bw5arfMA.js","getApiPlaygroundDisplay-Ds834aVN.js","CodeSnippet-CKzmjw9L.js","CodeSnippets-BRpgomdp.js","Page-DvEUoD2H.js","getPastedJson-B0N-Tn76.js","icon-DASMs9nC.js","MethodPill-BA6DBLqx.js","DuplicateIcon-BMT5qfbJ.js","createIcon-CNfwVWPx.js","DynamicMarkdown-JYyBNlrJ.js","SectionHeading-BbZnmz8a.js","axios-vUo_bRtp.js"]}