{ "error": { "code": "MANDATE_FORBIDDEN", "message": "Caller does not own this mandate" }}
{ "error": { "code": "MANDATE_NOT_ACTIVE", "message": "Mandate is not active" }}
Mint fresh single-use card credentials against an active mandate — no passkey. Merchant callers receive plaintext credentials; agent callers receive an encrypted_payload (credentials encrypted to the agent’s public key).POST /v1/mandates/{id}/charge · Authenticated with your secret key (merchants) or Ed25519 signature (agents).Need to create a mandate first? Mandate creation is part of the Session APIs — create a mandate with a mandate_setup block on Create Session.
Charging is available to merchants (secret key) and agents (Ed25519
signature). It is deliberately not exposed over MCP.
See Mandates for the model.
Charge amount as a decimal string with up to 2 decimals, e.g. "40.00". The per-charge cap is enforced by the card network — an over-cap charge is declined.
Idempotency key (max 255). The same mandate id + reference returns the original charge (deduplicated: true) instead of minting again. Omit it and every call is a distinct charge. A failed charge clears its key, so a retry after failure is not deduplicated.
Optional per-charge product details (exactly one entry, same shape as the purchase_context.custom entries in Create Session). Omit to reuse the mandate’s setup context. Currency always comes from the mandate, never the charge.
The mandate must be active. Charging a non-active mandate returns 409 MANDATE_NOT_ACTIVE.
An over-cap rejection is a normal outcome: status: "failed", typically errorCode: "DECLINED", with a fixed safe message. The amount cap is enforced at the card-network level; the response does not expose its raw threshold diagnostic.
A charge outside a listed mandate’s merchant returns 403 MANDATE_MERCHANT_NOT_ALLOWED.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Prava Payments Docs","colors":{"primary":"#0D9488","light":"#5EEAD4","dark":"#0F766E"},"logo":{"light":"https://mintcdn.com/pravapayments/O4nkkn6wh7EpbsaN/logo/light.svg?fit=max\u0026auto=format\u0026n=O4nkkn6wh7EpbsaN\u0026q=85\u0026s=71d03047aba9f172d7f14809fdf5e948","dark":"https://mintcdn.com/pravapayments/O4nkkn6wh7EpbsaN/logo/dark.svg?fit=max\u0026auto=format\u0026n=O4nkkn6wh7EpbsaN\u0026q=85\u0026s=4df78b4529c65e9a8b94ac3a069adac5"},"favicon":"https://mintcdn.com/pravapayments/O4nkkn6wh7EpbsaN/favicon.svg?fit=max\u0026auto=format\u0026n=O4nkkn6wh7EpbsaN\u0026q=85\u0026s=1c66b21043707f41fe69a1954b061c8d","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","python","javascript"]},"mdx":{"auth":{"method":"bearer"},"server":["https://sandbox.api.prava.space","https://api.prava.space"]}},"appearance":{"default":"light","strict":false},"background":{"image":{"light":"https://mintcdn.com/pravapayments/O4nkkn6wh7EpbsaN/images/bg-light.jpg?fit=max\u0026auto=format\u0026n=O4nkkn6wh7EpbsaN\u0026q=85\u0026s=680ed7301d3d464f9dd9aba7b39301a0","dark":"https://mintcdn.com/pravapayments/O4nkkn6wh7EpbsaN/images/bg-dark.jpg?fit=max\u0026auto=format\u0026n=O4nkkn6wh7EpbsaN\u0026q=85\u0026s=e5bab65750a21bbc573f37bf88529afd"},"color":{"light":"#F0FDFA","dark":"#07100E"}},"navbar":{"links":[{"href":"https://www.prava.space/blog","label":"Blog"},{"href":"mailto:support@prava.space","label":"Support"}]},"footer":{"socials":{"x":"https://x.com/PravaPayments","github":"https://github.com/Prava-Payments","linkedin":"https://www.linkedin.com/company/prava-payments"}},"seo":{"metatags":{"og:image":"/images/brand-banner.png","twitter:image":"/images/brand-banner.png","twitter:card":"summary_large_image"}},"fonts":{"heading":{"family":"Neue Haas Display","weight":500,"source":"fonts/NeueHaasDisplayMedium.woff2","format":"woff2"},"body":{"family":"Inter"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"thumbnails":{"background":"https://mintcdn.com/pravapayments/O4nkkn6wh7EpbsaN/images/brand-banner.png?fit=max\u0026auto=format\u0026n=O4nkkn6wh7EpbsaN\u0026q=85\u0026s=5f9fd0ab72da457adc80b64355b7b407"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pravapayments","hasAudioNarration":false,"actualSubdomain":"pravapayments","customDomains":["docs.prava.space"],"gitSource":{"type":"github","owner":"prava-payments","repo":"prava-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adc5cdbdbf081b3cd24f2a6","collectionId":"55eeb50e-019f-4248-858d-38e77dfc8cde","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adc5cdbdbf081b3cd24f2a6"},"entitlements":{},"buildId":"6add09cd85ee39aae77ec7f2","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"Developer Guide","count":35},{"language":"default","tag":"API Reference","count":34},{"language":"default","tag":"Server-Side API","count":16},{"language":"default","tag":"Webhooks API","count":15},{"language":"default","tag":"Prava CLI","count":9},{"language":"default","tag":"Endpoints","count":8},{"language":"default","tag":"Webhooks","count":8},{"language":"default","tag":"Getting Started","count":7},{"language":"default","tag":"Concepts","count":6},{"language":"default","tag":"Core Concepts","count":6}]},"assistantConfig":{},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:\"Neue Haas Display\";font-weight:300;font-style:normal;font-display:swap;src:url(/fonts/NeueHaasDisplayLight.woff2) format(\"woff2\")}@font-face{font-family:\"Neue Haas Display\";font-weight:400;font-style:normal;font-display:swap;src:url(/fonts/NeueHaasDisplayRegular.woff2) format(\"woff2\")}@font-face{font-family:\"Neue Haas Display\";font-weight:500;font-style:normal;font-display:swap;src:url(/fonts/NeueHaasDisplayMedium.woff2) format(\"woff2\")}:root{--prava-teal:#0d9488;--prava-teal-deep:#0f766e;--prava-mint:#5eead4;--prava-green:#34d399;--prava-green-soft:#6ee7b7;--prava-airy-1:#f0fdfa;--prava-airy-2:#ccfbf1;--prava-airy-3:#99f6e4}h1,h2,h3,h4{font-family:\"Neue Haas Display\",\"Inter\",system-ui,sans-serif;word-spacing:.02em;font-weight:500;letter-spacing:-.015em}h2,h3,h4{letter-spacing:normal}img[src*=brand-banner]{display:block;width:100%;max-width:100%;height:auto;border-radius:18px;margin:.25rem 0 1.75rem;box-shadow:0 14px 40px rgba(6,42,39,.22);border:1px solid rgba(13,148,136,.18)}@media (orientation:landscape){[style*=\"/images/bg-light\"]{--bg-shift:-800px;background-position:right var(--bg-shift)!important}}[style*=\"/images/bg-light\"]{opacity:.5}.mermaid .node circle,.mermaid .node polygon,.mermaid .node rect{fill:var(--prava-airy-1)!important;stroke:var(--prava-teal)!important;stroke-width:1.25px!important;rx:8px}.mermaid .edgePath .path,.mermaid .flowchart-link,.mermaid .marker{stroke:var(--prava-teal)!important}.mermaid .marker{fill:var(--prava-teal)!important}.mermaid .node .nodeLabel,.mermaid .node text{color:#134e4a!important;fill:#134e4a!important;font-family:\"Inter\",system-ui,sans-serif!important}.mermaid .edgeLabel,.mermaid .edgeLabel p{color:var(--prava-teal-deep)!important;background-color:transparent!important}.dark .mermaid .node circle,.dark .mermaid .node polygon,.dark .mermaid .node rect{fill:rgba(13,148,136,.15)!important;stroke:var(--prava-mint)!important}.dark .mermaid .node .nodeLabel,.dark .mermaid .node text{color:var(--prava-airy-2)!important;fill:var(--prava-airy-2)!important}.dark .mermaid .edgeLabel,.dark .mermaid .edgeLabel p{color:var(--prava-mint)!important}.callout[data-callout-type=note]{background:var(--prava-airy-1);border-color:var(--prava-airy-3)}.callout[data-callout-type=note] [data-component-part=callout-content],.callout[data-callout-type=note] [data-component-part=callout-icon] svg{color:var(--prava-teal-deep)}.callout[data-callout-type=info]{background:var(--prava-airy-2);border-color:var(--prava-mint)}.callout[data-callout-type=info] [data-component-part=callout-content],.callout[data-callout-type=info] [data-component-part=callout-icon] svg{color:#115e59}.callout[data-callout-type=tip]{background:#ecfdf5;border-color:#a7f3d0}.callout[data-callout-type=tip] [data-component-part=callout-content],.callout[data-callout-type=tip] [data-component-part=callout-icon] svg{color:#047857}.callout[data-callout-type=warning]{background:#fdf8ef;border-color:#f0dcb4}.callout[data-callout-type=warning] [data-component-part=callout-content],.callout[data-callout-type=warning] [data-component-part=callout-icon] svg{color:#8a5a0b}.dark .callout[data-callout-type=note]{background:rgba(13,148,136,.12);border-color:rgba(94,234,212,.28)}.dark .callout[data-callout-type=note] [data-component-part=callout-content],.dark .callout[data-callout-type=note] [data-component-part=callout-icon] svg{color:var(--prava-mint)}.dark .callout[data-callout-type=info]{background:rgba(13,148,136,.2);border-color:rgba(94,234,212,.4)}.dark .callout[data-callout-type=info] [data-component-part=callout-content],.dark .callout[data-callout-type=info] [data-component-part=callout-icon] svg{color:var(--prava-airy-2)}.dark .callout[data-callout-type=tip]{background:rgba(52,211,153,.12);border-color:rgba(52,211,153,.35)}.dark .callout[data-callout-type=tip] [data-component-part=callout-content],.dark .callout[data-callout-type=tip] [data-component-part=callout-icon] svg{color:var(--prava-green-soft)}.dark .callout[data-callout-type=warning]{background:rgba(202,138,4,.12);border-color:rgba(202,138,4,.35)}.dark .callout[data-callout-type=warning] [data-component-part=callout-content],.dark .callout[data-callout-type=warning] [data-component-part=callout-icon] svg{color:#e4b45e}.nav-tag-pill-text[data-nav-tag=GET]{color:#15803d!important;background-color:rgba(22,163,74,.12)!important}.dark .nav-tag-pill-text[data-nav-tag=GET]{color:#4ade80!important;background-color:rgba(74,222,128,.14)!important}.nav-tag-pill-text[data-nav-tag=POST]{color:#1d4ed8!important;background-color:rgba(37,99,235,.12)!important}.dark .nav-tag-pill-text[data-nav-tag=POST]{color:#60a5fa!important;background-color:rgba(96,165,250,.14)!important}.nav-tag-pill{order:-1}:where(div, span):has(>.nav-tag-pill){order:-1}"}],"page":{"pagePath":"api-reference/mandate-charge","slug":"/api-reference/mandate-charge","pageMetadata":{"title":"Charge a Mandate","description":"Mint single-use card credentials against an active mandate — no passkey.","icon":"bolt","openapi":"api-reference/openapi.json POST /v1/mandates/{id}/charge","playground":"interactive","href":"/api-reference/mandate-charge"},"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: \"Mint single-use card credentials against an active mandate — no passkey.\"\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`,em:`em`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note,ParamField,ResponseField,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Mint fresh single-use card credentials against an active mandate — `,_jsx(_components.strong,{children:`no passkey`}),`. Merchant callers receive plaintext `,_jsx(_components.code,{children:`credentials`}),`; agent callers receive an `,_jsx(_components.code,{children:`encrypted_payload`}),` (credentials encrypted to the agent’s public key).`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POST /v1/mandates/{id}/charge`}),` · Authenticated with your secret key (merchants) or Ed25519 signature (agents).`]}),`\n`,_jsxs(_components.p,{children:[`Need to `,_jsx(_components.strong,{children:`create`}),` a mandate first? Mandate creation is part of the Session APIs — `,_jsx(_components.a,{href:`/api-reference/create-session#mandate-setup`,children:`create a mandate`}),` with a `,_jsx(_components.code,{children:`mandate_setup`}),` block on Create Session.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Charging is available to `,_jsx(_components.strong,{children:`merchants`}),` (secret key) and `,_jsx(_components.strong,{children:`agents`}),` (Ed25519\nsignature). It is deliberately `,_jsx(_components.strong,{children:`not`}),` exposed over `,_jsx(_components.a,{href:`/mcp/tools#mandates`,children:`MCP`}),`.\nSee `,_jsx(_components.a,{href:`/concepts/mandates`,children:`Mandates`}),` for the model.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsxs(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:[`The mandate id (from `,_jsx(_components.a,{href:`/api-reference/mandate-list`,children:`List Mandates`}),`).`]}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`amount`,type:`string`,required:true,id:`param-amount`,children:_jsxs(_components.p,{children:[`Charge amount as a decimal string with up to 2 decimals, e.g. `,_jsx(_components.code,{children:`\"40.00\"`}),`. The per-charge cap is enforced by the card network — an over-cap charge is declined.`]})}),`\n`,_jsx(ParamField,{body:`reference`,type:`string`,id:`param-reference`,children:_jsxs(_components.p,{children:[`Idempotency key (max 255). The same mandate id + `,_jsx(_components.code,{children:`reference`}),` returns the original charge (`,_jsx(_components.code,{children:`deduplicated: true`}),`) instead of minting again. Omit it and every call is a distinct charge. A `,_jsx(_components.em,{children:`failed`}),` charge clears its key, so a retry after failure is not deduplicated.`]})}),`\n`,_jsx(ParamField,{body:`purchase_context`,type:`object[]`,id:`param-purchase-context`,children:_jsxs(_components.p,{children:[`Optional per-charge product details (exactly one entry, same shape as the `,_jsx(_components.code,{children:`purchase_context.custom`}),` entries in `,_jsx(_components.a,{href:`/api-reference/create-session`,children:`Create Session`}),`). Omit to reuse the mandate’s setup context. Currency always comes from the mandate, never the charge.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`mandateId`,type:`string`,id:`param-mandate-id`}),`\n`,_jsx(ResponseField,{name:`instructionId`,type:`string`,id:`param-instruction-id`}),`\n`,_jsxs(ResponseField,{name:`transactionId`,type:`string`,id:`param-transaction-id`,children:[`Pass this to `,_jsx(_components.a,{href:`/api-reference/mandate-report`,children:`Report a Mandate Charge`}),`.`]}),`\n`,_jsx(ResponseField,{name:`orderId`,type:`string`,id:`param-order-id`}),`\n`,_jsxs(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:[_jsx(_components.code,{children:`awaiting_result`}),` or `,_jsx(_components.code,{children:`failed`}),`.`]}),`\n`,_jsxs(ResponseField,{name:`fetchStatus`,type:`string`,id:`param-fetch-status`,children:[_jsx(_components.code,{children:`SUCCESS`}),` or `,_jsx(_components.code,{children:`FAILURE`}),`.`]}),`\n`,_jsxs(ResponseField,{name:`credentials`,type:`object`,id:`param-credentials`,children:[`Merchant callers: `,_jsx(_components.code,{children:`{ token, dynamicCvv, expiryMonth, expiryYear }`}),`.`]}),`\n`,_jsxs(ResponseField,{name:`encrypted_payload`,type:`object`,id:`param-encrypted-payload`,children:[`Agent callers: `,_jsx(_components.code,{children:`{ ephemeral_public_key, iv, auth_tag, data }`}),`, decrypted client-side.`]}),`\n`,_jsxs(ResponseField,{name:`errorCode`,type:`string`,id:`param-error-code`,children:[`The existing public failure code. Use this field to select your error handler; see the `,_jsx(_components.a,{href:`/webhooks/errors`,children:`error catalog`}),`.`]}),`\n`,_jsx(ResponseField,{name:`errorMessage`,type:`string`,id:`param-error-message`,children:`Fixed, safe text from the error catalog. Raw provider diagnostics are not returned. Do not parse this message for an upstream reason.`}),`\n`,_jsxs(ResponseField,{name:`deduplicated`,type:`boolean`,id:`param-deduplicated`,children:[`True when a prior charge with the same `,_jsx(_components.code,{children:`reference`}),` was returned.`]}),`\n`,_jsx(Heading,{level:`2`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The mandate must be `,_jsx(_components.code,{children:`active`}),`. Charging a non-active mandate returns `,_jsx(_components.code,{children:`409 MANDATE_NOT_ACTIVE`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`An over-cap rejection is a normal outcome: `,_jsx(_components.code,{children:`status: \"failed\"`}),`, typically `,_jsx(_components.code,{children:`errorCode: \"DECLINED\"`}),`, with a fixed safe message. The amount cap is enforced at the card-network level; the response does not expose its raw threshold diagnostic.`]}),`\n`,_jsxs(_components.li,{children:[`A charge outside a `,_jsx(_components.code,{children:`listed`}),` mandate’s merchant returns `,_jsx(_components.code,{children:`403 MANDATE_MERCHANT_NOT_ALLOWED`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`After checkout, settle the outcome with `,_jsx(_components.a,{href:`/api-reference/mandate-report`,children:`Report a Mandate Charge`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error responses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Cause`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`VAL_2001`})}),_jsxs(_components.td,{children:[`Missing or invalid `,_jsx(_components.code,{children:`amount`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`AUTH_REQUIRED`})}),_jsx(_components.td,{children:`Missing or invalid credentials`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MANDATE_FORBIDDEN`})}),_jsx(_components.td,{children:`Caller does not own this mandate`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MANDATE_MERCHANT_NOT_ALLOWED`})}),_jsx(_components.td,{children:`Listed-scope mandate; the charge names a merchant not on the allow-list`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MANDATE_NOT_ACTIVE`})}),_jsxs(_components.td,{children:[`Mandate is not `,_jsx(_components.code,{children:`active`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`NO_INSTRUCTION`}),` / `,_jsx(_components.code,{children:`NO_ORDER`})]}),_jsx(_components.td,{children:`Mandate is missing its instruction/order`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`NO_TOKEN`})}),_jsx(_components.td,{children:`Credential minting failed`})]})]})]})]})}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":"Charge a Mandate","description":"Mint single-use card credentials against an active mandate — no passkey.","icon":"bolt","openapi":"api-reference/openapi.json POST /v1/mandates/{id}/charge","playground":"interactive","href":"/api-reference/mandate-charge"}}},"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`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Mint fresh single-use card credentials against an active mandate — `,_jsx(_components.strong,{children:`no passkey`}),`. Merchant callers receive plaintext `,_jsx(_components.code,{children:`credentials`}),`; agent callers receive an `,_jsx(_components.code,{children:`encrypted_payload`}),` (credentials encrypted to the agent’s public key).`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POST /v1/mandates/{id}/charge`}),` · Authenticated with your secret key (merchants) or Ed25519 signature (agents).`]}),`\n`,_jsxs(_components.p,{children:[`Need to `,_jsx(_components.strong,{children:`create`}),` a mandate first? Mandate creation is part of the Session APIs — `,_jsx(_components.a,{href:`/api-reference/create-session#mandate-setup`,children:`create a mandate`}),` with a `,_jsx(_components.code,{children:`mandate_setup`}),` block on Create Session.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Charging is available to `,_jsx(_components.strong,{children:`merchants`}),` (secret key) and `,_jsx(_components.strong,{children:`agents`}),` (Ed25519\nsignature). It is deliberately `,_jsx(_components.strong,{children:`not`}),` exposed over `,_jsx(_components.a,{href:`/mcp/tools#mandates`,children:`MCP`}),`.\nSee `,_jsx(_components.a,{href:`/concepts/mandates`,children:`Mandates`}),` for the model.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsxs(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:[`The mandate id (from `,_jsx(_components.a,{href:`/api-reference/mandate-list`,children:`List Mandates`}),`).`]}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`amount`,type:`string`,required:true,id:`param-amount`,children:_jsxs(_components.p,{children:[`Charge amount as a decimal string with up to 2 decimals, e.g. `,_jsx(_components.code,{children:`\"40.00\"`}),`. The per-charge cap is enforced by the card network — an over-cap charge is declined.`]})}),`\n`,_jsx(ParamField,{body:`reference`,type:`string`,id:`param-reference`,children:_jsxs(_components.p,{children:[`Idempotency key (max 255). The same mandate id + `,_jsx(_components.code,{children:`reference`}),` returns the original charge (`,_jsx(_components.code,{children:`deduplicated: true`}),`) instead of minting again. Omit it and every call is a distinct charge. A `,_jsx(_components.em,{children:`failed`}),` charge clears its key, so a retry after failure is not deduplicated.`]})}),`\n`,_jsx(ParamField,{body:`purchase_context`,type:`object[]`,id:`param-purchase-context`,children:_jsxs(_components.p,{children:[`Optional per-charge product details (exactly one entry, same shape as the `,_jsx(_components.code,{children:`purchase_context.custom`}),` entries in `,_jsx(_components.a,{href:`/api-reference/create-session`,children:`Create Session`}),`). Omit to reuse the mandate’s setup context. Currency always comes from the mandate, never the charge.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`mandateId`,type:`string`,id:`param-mandate-id`}),`\n`,_jsx(ResponseField,{name:`instructionId`,type:`string`,id:`param-instruction-id`}),`\n`,_jsxs(ResponseField,{name:`transactionId`,type:`string`,id:`param-transaction-id`,children:[`Pass this to `,_jsx(_components.a,{href:`/api-reference/mandate-report`,children:`Report a Mandate Charge`}),`.`]}),`\n`,_jsx(ResponseField,{name:`orderId`,type:`string`,id:`param-order-id`}),`\n`,_jsxs(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:[_jsx(_components.code,{children:`awaiting_result`}),` or `,_jsx(_components.code,{children:`failed`}),`.`]}),`\n`,_jsxs(ResponseField,{name:`fetchStatus`,type:`string`,id:`param-fetch-status`,children:[_jsx(_components.code,{children:`SUCCESS`}),` or `,_jsx(_components.code,{children:`FAILURE`}),`.`]}),`\n`,_jsxs(ResponseField,{name:`credentials`,type:`object`,id:`param-credentials`,children:[`Merchant callers: `,_jsx(_components.code,{children:`{ token, dynamicCvv, expiryMonth, expiryYear }`}),`.`]}),`\n`,_jsxs(ResponseField,{name:`encrypted_payload`,type:`object`,id:`param-encrypted-payload`,children:[`Agent callers: `,_jsx(_components.code,{children:`{ ephemeral_public_key, iv, auth_tag, data }`}),`, decrypted client-side.`]}),`\n`,_jsxs(ResponseField,{name:`errorCode`,type:`string`,id:`param-error-code`,children:[`The existing public failure code. Use this field to select your error handler; see the `,_jsx(_components.a,{href:`/webhooks/errors`,children:`error catalog`}),`.`]}),`\n`,_jsx(ResponseField,{name:`errorMessage`,type:`string`,id:`param-error-message`,children:`Fixed, safe text from the error catalog. Raw provider diagnostics are not returned. Do not parse this message for an upstream reason.`}),`\n`,_jsxs(ResponseField,{name:`deduplicated`,type:`boolean`,id:`param-deduplicated`,children:[`True when a prior charge with the same `,_jsx(_components.code,{children:`reference`}),` was returned.`]}),`\n`,_jsx(Heading,{level:`2`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The mandate must be `,_jsx(_components.code,{children:`active`}),`. Charging a non-active mandate returns `,_jsx(_components.code,{children:`409 MANDATE_NOT_ACTIVE`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`An over-cap rejection is a normal outcome: `,_jsx(_components.code,{children:`status: \"failed\"`}),`, typically `,_jsx(_components.code,{children:`errorCode: \"DECLINED\"`}),`, with a fixed safe message. The amount cap is enforced at the card-network level; the response does not expose its raw threshold diagnostic.`]}),`\n`,_jsxs(_components.li,{children:[`A charge outside a `,_jsx(_components.code,{children:`listed`}),` mandate’s merchant returns `,_jsx(_components.code,{children:`403 MANDATE_MERCHANT_NOT_ALLOWED`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`After checkout, settle the outcome with `,_jsx(_components.a,{href:`/api-reference/mandate-report`,children:`Report a Mandate Charge`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error responses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Cause`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`VAL_2001`})}),_jsxs(_components.td,{children:[`Missing or invalid `,_jsx(_components.code,{children:`amount`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`AUTH_REQUIRED`})}),_jsx(_components.td,{children:`Missing or invalid credentials`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MANDATE_FORBIDDEN`})}),_jsx(_components.td,{children:`Caller does not own this mandate`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MANDATE_MERCHANT_NOT_ALLOWED`})}),_jsx(_components.td,{children:`Listed-scope mandate; the charge names a merchant not on the allow-list`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MANDATE_NOT_ACTIVE`})}),_jsxs(_components.td,{children:[`Mandate is not `,_jsx(_components.code,{children:`active`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`NO_INSTRUCTION`}),` / `,_jsx(_components.code,{children:`NO_ORDER`})]}),_jsx(_components.td,{children:`Mandate is missing its instruction/order`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`NO_TOKEN`})}),_jsx(_components.td,{children:`Credential minting failed`})]})]})]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`4`,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:`4`,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:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://sandbox.api.prava.space/v1/mandates/mdt_123/charge`}),_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 sk_test_...\"`}),_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:` \"Content-Type: application/json\"`}),_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:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"amount\": \"40.00\", \"reference\": \"invoice_2026_07\" }'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`7`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`resp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://sandbox.api.prava.space/v1/mandates/mdt_123/charge\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer sk_test_...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"40.00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"invoice_2026_07\"`}),_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:`JavaScript`,numberOfLines:`11`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` resp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://sandbox.api.prava.space/v1/mandates/mdt_123/charge\"`}),_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\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_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\":`#9CDCFE`},children:` headers:`}),_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\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bearer sk_test_...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_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\":`#9CDCFE`},children:` amount:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"40.00\"`}),_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\":`#9CDCFE`},children:` reference:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"invoice_2026_07\"`}),_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`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200 Success`,numberOfLines:`10`,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:`10`,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:` \"mandateId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mdt_123\"`}),_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:` \"instructionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ins_1\"`}),_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:` \"transactionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"txn_9\"`}),_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:` \"orderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ord_9\"`}),_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:`\"awaiting_result\"`}),_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:` \"fetchStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SUCCESS\"`}),_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:` \"credentials\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4111111111111111\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"dynamicCvv\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"expiryMonth\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"12\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"expiryYear\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2030\"`}),_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:` \"deduplicated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`403 Forbidden`,numberOfLines:`3`,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:`3`,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:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MANDATE_FORBIDDEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"Caller does not own this mandate\"`}),_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:`409 Mandate Not Active`,numberOfLines:`3`,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:`3`,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:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MANDATE_NOT_ACTIVE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"Mandate is not active\"`}),_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`]})})})]})]})}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":"Charge a Mandate","description":"Mint single-use card credentials against an active mandate — no passkey.","icon":"bolt","openapi":"api-reference/openapi.json POST /v1/mandates/{id}/charge","playground":"interactive","href":"/api-reference/mandate-charge"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Path parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Body","slug":"body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Notes","slug":"notes","depth":2,"children":[]},{"title":"Error responses","slug":"error-responses","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","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=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://sandbox.api.prava.space/v1/mandates/mdt_123/charge\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer sk_test_...\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{ \"amount\": \"40.00\", \"reference\": \"invoice_2026_07\" }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","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=\"python\">\u003ccode language=\"python\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">resp \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://sandbox.api.prava.space/v1/mandates/mdt_123/charge\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer sk_test_...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"40.00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"reference\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"invoice_2026_07\"\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\u003c/code>\u003c/pre>"},{"filename":"JavaScript","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=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> resp\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://sandbox.api.prava.space/v1/mandates/mdt_123/charge\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Authorization:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Bearer sk_test_...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"application/json\"\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:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> amount:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"40.00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> reference:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"invoice_2026_07\"\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\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200 Success","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=\"10\">\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\"> \"mandateId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"mdt_123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"instructionId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ins_1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"transactionId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"txn_9\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"orderId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ord_9\"\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\">\"awaiting_result\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"fetchStatus\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"SUCCESS\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"credentials\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"token\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"4111111111111111\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"dynamicCvv\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"expiryMonth\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"12\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"expiryYear\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2030\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"deduplicated\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\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 Forbidden","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=\"3\">\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\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"MANDATE_FORBIDDEN\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\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\">\"Caller does not own this mandate\"\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\u003c/code>\u003c/pre>"},{"filename":"409 Mandate Not Active","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=\"3\">\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\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"MANDATE_NOT_ACTIVE\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\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\">\"Mandate is not active\"\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\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Charge a Mandate","description":"Mint single-use card credentials against an active mandate — no passkey.","operationId":"chargeMandate","parameters":["bf22d180-746d-4828-9428-29518f30705d"],"requestBody":"4018299a-21b3-415e-9d54-0179544acb92","responses":{"200":"852e3b3d-b828-48c6-a3f8-e0d26e433788","400":"a7e1073c-ebdf-4c17-b520-a4fbb8d8f695","401":"d14b4d15-8850-42de-aa8a-8672437d53ed","403":"80ba6715-e755-490b-bdaf-8915bf4a4423","409":"0d442fd2-6afe-4031-8f8e-b6bf47b889ca","500":"7d54267a-19e8-499a-a31a-91692ec15706"},"method":"post","type":"path","servers":["b38849bc-489a-411e-abd8-cf1894898add","08c84ab3-fad0-4862-8949-1e95285940db"],"security":["2420e4d9-1c1e-45e0-af5b-24ad684a4fd6"],"path":"/v1/mandates/{id}/charge","baseUrlOptions":["https://sandbox.api.prava.space","https://api.prava.space"],"title":"Charge a Mandate","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"4","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -X"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" POST"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" https://sandbox.api.prava.space/v1/mandates/mdt_123/charge"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Authorization: Bearer sk_test_...\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Content-Type: application/json\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -d"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '{ \"amount\": \"40.00\", \"reference\": \"invoice_2026_07\" }'"}}]}},"\n"]}}}},"filename":"cURL"},{"dropdown":false,"language":"python","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"python","children":{"type":"code","key":null,"ref":null,"props":{"language":"python","numberOfLines":"7","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" requests"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"resp "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" requests.post("}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"https://sandbox.api.prava.space/v1/mandates/mdt_123/charge\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" headers"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Authorization\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Bearer sk_test_...\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"},"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" json"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"amount\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"40.00\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"reference\""}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"invoice_2026_07\""}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"},"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n"]}}}},"filename":"Python"},{"dropdown":false,"language":"javascript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"javascript","children":{"type":"code","key":null,"ref":null,"props":{"language":"javascript","numberOfLines":"11","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" resp"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" await"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" fetch"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://sandbox.api.prava.space/v1/mandates/mdt_123/charge\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", {"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" method:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"POST\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" headers:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" Authorization:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Bearer sk_test_...\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Content-Type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":":"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"application/json\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" body:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" JSON"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"stringify"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"({"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" amount:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"40.00\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" reference:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"invoice_2026_07\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }),"}}}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"});"}}}},"\n"]}}}},"filename":"JavaScript"}],"requestExampleType":"mdx","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"10","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"mandateId\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"mdt_123\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"instructionId\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"ins_1\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"transactionId\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"txn_9\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"orderId\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"ord_9\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"status\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"awaiting_result\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"fetchStatus\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"SUCCESS\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"credentials\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"token\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"4111111111111111\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"dynamicCvv\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"123\""}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"expiryMonth\""}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"12\""}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"14","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"expiryYear\""}},{"type":"span","key":"15","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"16","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"2030\""}},{"type":"span","key":"17","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"deduplicated\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":"false"}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"200 Success"},{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"3","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"error\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"code\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"MANDATE_FORBIDDEN\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"message\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Caller does not own this mandate\""}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"403 Forbidden"},{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"3","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"error\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"code\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"MANDATE_NOT_ACTIVE\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"message\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Mandate is not active\""}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"409 Mandate Not Active"}],"responseExampleType":"mdx"},"dependencies":{"parameters":{"bf22d180-746d-4828-9428-29518f30705d":{"name":"id","in":"path","required":true,"description":"The mandate id (from List Mandates).","schema":{"type":"string","isRequired":true,"description":"The mandate id (from List Mandates).","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["amount"],"properties":{"amount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Charge amount as a decimal string, e.g. \"40.00\". Must be within the mandate cap.","isRequired":true,"uniqueKey":"amount","typeLabel":"string"},"reference":{"type":"string","maxLength":255,"description":"Idempotency key. The same mandate id + reference returns the original charge.","uniqueKey":"reference","typeLabel":"string"},"purchase_context":{"type":"array","minItems":1,"maxItems":1,"description":"Optional per-charge product details — same shape as purchase_context.custom in Create Session.","items":{"type":"object","required":["merchant_details","product_details"],"properties":{"merchant_details":{"type":"object","required":["name","url","country_code_iso2"],"properties":{"name":{"type":"string","minLength":1,"description":"Merchant display name","isRequired":true,"uniqueKey":"purchase_context.items.[INDEX].merchant_details.name","typeLabel":"string"},"url":{"type":"string","format":"uri","pattern":"^https://","description":"Merchant website URL. Must use https - the URL is forwarded to Visa.","isRequired":true,"uniqueKey":"purchase_context.items.[INDEX].merchant_details.url","typeLabel":"string\u003curi>"},"country_code_iso2":{"type":"string","minLength":2,"maxLength":2,"pattern":"^[A-Z]{2}$","description":"Two uppercase ISO 3166-1 country code (e.g. \"US\")","isRequired":true,"uniqueKey":"purchase_context.items.[INDEX].merchant_details.country_code_iso2","typeLabel":"string"},"category_code":{"type":"string","maxLength":10,"description":"Merchant category code","uniqueKey":"purchase_context.items.[INDEX].merchant_details.category_code","typeLabel":"string"},"category":{"type":"string","maxLength":100,"description":"Merchant category description","uniqueKey":"purchase_context.items.[INDEX].merchant_details.category","typeLabel":"string"}},"isRequired":true,"uniqueKey":"purchase_context.items.[INDEX].merchant_details","typeLabel":"object"},"product_details":{"type":"array","minItems":1,"items":{"type":"object","required":["description","unit_price"],"properties":{"description":{"type":"string","minLength":1,"description":"Product description","isRequired":true,"uniqueKey":"purchase_context.items.[INDEX].product_details.items.[INDEX].description","typeLabel":"string"},"unit_price":{"type":"string","minLength":1,"description":"Unit price as a string (no fixed decimal format enforced)","isRequired":true,"uniqueKey":"purchase_context.items.[INDEX].product_details.items.[INDEX].unit_price","typeLabel":"string"},"product_id":{"type":"string","maxLength":50,"description":"Your external product identifier","uniqueKey":"purchase_context.items.[INDEX].product_details.items.[INDEX].product_id","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"default":1,"description":"Quantity of this product","uniqueKey":"purchase_context.items.[INDEX].product_details.items.[INDEX].quantity","typeLabel":"integer"}},"uniqueKey":"purchase_context.items.[INDEX].product_details.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchase_context.items.[INDEX].product_details","typeLabel":"object[]"},"effective_until_minutes":{"type":"integer","minimum":1,"default":15,"description":"How long the mandate remains effective, in minutes. Positive integer, no maximum.","uniqueKey":"purchase_context.items.[INDEX].effective_until_minutes","typeLabel":"integer"}},"uniqueKey":"purchase_context.items.[INDEX]","typeLabel":"object"},"uniqueKey":"purchase_context","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"amount":"\u003cstring>","reference":"\u003cstring>","purchase_context":[{"merchant_details":{"name":"\u003cstring>","url":"\u003cstring>","country_code_iso2":"\u003cstring>","category_code":"\u003cstring>","category":"\u003cstring>"},"product_details":[{"description":"\u003cstring>","unit_price":"\u003cstring>","product_id":"\u003cstring>","quantity":1}],"effective_until_minutes":15}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"852e3b3d-b828-48c6-a3f8-e0d26e433788":{"description":"Charge initiated; single-use credentials issued.","content":{"application/json":{"schema":{"type":"object","properties":{"mandateId":{"type":"string","uniqueKey":"mandateId","typeLabel":"string"},"instructionId":{"type":"string","uniqueKey":"instructionId","typeLabel":"string"},"transactionId":{"type":"string","uniqueKey":"transactionId","typeLabel":"string"},"orderId":{"type":"string","uniqueKey":"orderId","typeLabel":"string"},"status":{"type":"string","enum":["awaiting_result","failed"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"fetchStatus":{"type":"string","enum":["SUCCESS","FAILURE"],"uniqueKey":"fetchStatus","typeLabel":"enum\u003cstring>"},"credentials":{"type":"object","description":"Present for merchant callers: single-use card credentials.","properties":{"token":{"type":"string","uniqueKey":"credentials.token","typeLabel":"string"},"dynamicCvv":{"type":"string","uniqueKey":"credentials.dynamicCvv","typeLabel":"string"},"expiryMonth":{"type":"string","uniqueKey":"credentials.expiryMonth","typeLabel":"string"},"expiryYear":{"type":"string","uniqueKey":"credentials.expiryYear","typeLabel":"string"}},"uniqueKey":"credentials","typeLabel":"object"},"encrypted_payload":{"type":"object","description":"Present for agent callers: credentials encrypted to the agent's public key.","properties":{"ephemeral_public_key":{"type":"string","uniqueKey":"encrypted_payload.ephemeral_public_key","typeLabel":"string"},"iv":{"type":"string","uniqueKey":"encrypted_payload.iv","typeLabel":"string"},"auth_tag":{"type":"string","uniqueKey":"encrypted_payload.auth_tag","typeLabel":"string"},"data":{"type":"string","uniqueKey":"encrypted_payload.data","typeLabel":"string"}},"uniqueKey":"encrypted_payload","typeLabel":"object"},"errorCode":{"type":"string","uniqueKey":"errorCode","typeLabel":"string"},"errorMessage":{"type":"string","description":"Fixed safe catalog message. Raw provider diagnostics are excluded; use errorCode to select your handler.","uniqueKey":"errorMessage","typeLabel":"string"},"deduplicated":{"type":"boolean","uniqueKey":"deduplicated","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"mandateId":"\u003cstring>","instructionId":"\u003cstring>","transactionId":"\u003cstring>","orderId":"\u003cstring>","status":"awaiting_result","fetchStatus":"SUCCESS","credentials":{"token":"\u003cstring>","dynamicCvv":"\u003cstring>","expiryMonth":"\u003cstring>","expiryYear":"\u003cstring>"},"encrypted_payload":{"ephemeral_public_key":"\u003cstring>","iv":"\u003cstring>","auth_tag":"\u003cstring>","data":"\u003cstring>"},"errorCode":"\u003cstring>","errorMessage":"\u003cstring>","deduplicated":true}}},"exampleType":"generated"}},"exampleType":"generated"},"a7e1073c-ebdf-4c17-b520-a4fbb8d8f695":{"description":"Error response","headers":{"X-Response-ID":{"description":"UUID correlation identifier for this response. Include it when contacting Prava support.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code (e.g. VAL_2001, AUTH_1001)","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Optional — included for validation errors to specify which fields failed","uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"d14b4d15-8850-42de-aa8a-8672437d53ed":{"description":"Error response","headers":{"X-Response-ID":{"description":"UUID correlation identifier for this response. Include it when contacting Prava support.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code (e.g. VAL_2001, AUTH_1001)","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Optional — included for validation errors to specify which fields failed","uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"80ba6715-e755-490b-bdaf-8915bf4a4423":{"description":"Error response","headers":{"X-Response-ID":{"description":"UUID correlation identifier for this response. Include it when contacting Prava support.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code (e.g. VAL_2001, AUTH_1001)","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Optional — included for validation errors to specify which fields failed","uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"0d442fd2-6afe-4031-8f8e-b6bf47b889ca":{"description":"Error response","headers":{"X-Response-ID":{"description":"UUID correlation identifier for this response. Include it when contacting Prava support.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code (e.g. VAL_2001, AUTH_1001)","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Optional — included for validation errors to specify which fields failed","uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"7d54267a-19e8-499a-a31a-91692ec15706":{"description":"Error response","headers":{"X-Response-ID":{"description":"UUID correlation identifier for this response. Include it when contacting Prava support.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code (e.g. VAL_2001, AUTH_1001)","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Optional — included for validation errors to specify which fields failed","uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"2420e4d9-1c1e-45e0-af5b-24ad684a4fd6":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your secret key: sk_test_* (sandbox) or sk_live_* (production).","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"b38849bc-489a-411e-abd8-cf1894898add":{"url":"https://sandbox.api.prava.space","description":"Sandbox"},"08c84ab3-fad0-4862-8949-1e95285940db":{"url":"https://api.prava.space","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your secret key: sk_test_* (sandbox) or sk_live_* (production).","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your secret key: sk_test_* (sandbox) or sk_live_* (production).","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"pravapayments","siteName":"Prava Payments Docs","title":"Charge a Mandate - Prava Payments Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-24T07:23:14.742Z","originalFileLocation":"api-reference/mandate-charge.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=\"light\"}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=\"Mint single-use card credentials against an active mandate — no passkey.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Prava Payments Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pravapayments/58blChps3BZKEvne/_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/pravapayments/58blChps3BZKEvne/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pravapayments/58blChps3BZKEvne/_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/pravapayments/58blChps3BZKEvne/_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/pravapayments/58blChps3BZKEvne/_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/pravapayments/58blChps3BZKEvne/_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/pravapayments/58blChps3BZKEvne/_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/pravapayments/58blChps3BZKEvne/_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/pravapayments/58blChps3BZKEvne/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Charge a Mandate - Prava Payments Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Mint single-use card credentials against an active mandate — no passkey.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Prava Payments Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.prava.space/api-reference/mandate-charge\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pravapayments.mintlify.app/images/brand-banner.png\">\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=\"Charge a Mandate - Prava Payments Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Mint single-use card credentials against an active mandate — no passkey.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pravapayments.mintlify.app/images/brand-banner.png\">\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/pravapayments/58blChps3BZKEvne/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Prava Payments Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9488\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.prava.space/api-reference/mandate-charge\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/mandate-charge.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.prava.space/#organization\",\"name\":\"Prava Payments Docs\",\"url\":\"https://docs.prava.space\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pravapayments/O4nkkn6wh7EpbsaN/logo/light.svg?fit=max\u0026auto=format\u0026n=O4nkkn6wh7EpbsaN\u0026q=85\u0026s=71d03047aba9f172d7f14809fdf5e948\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.prava.space#website\",\"name\":\"Prava Payments Docs\",\"url\":\"https://docs.prava.space\",\"publisher\":{\"@id\":\"https://docs.prava.space/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.prava.space/api-reference/mandate-charge#webpage\",\"url\":\"https://docs.prava.space/api-reference/mandate-charge\",\"name\":\"Charge a Mandate\",\"description\":\"Mint single-use card credentials against an active mandate — no passkey.\",\"dateModified\":\"2026-10-24T07:23:14.742Z\",\"isPartOf\":{\"@id\":\"https://docs.prava.space#website\"},\"breadcrumb\":{\"@id\":\"https://docs.prava.space/api-reference/mandate-charge#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.prava.space/api-reference/mandate-charge#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Server-Side API\",\"item\":\"https://docs.prava.space/api-reference/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Charge a Mandate\",\"item\":\"https://docs.prava.space/api-reference/mandate-charge\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.prava.space/api-reference/mandate-charge#apireference\",\"headline\":\"Charge a Mandate\",\"name\":\"Charge a Mandate\",\"description\":\"Mint single-use card credentials against an active mandate — no passkey.\",\"url\":\"https://docs.prava.space/api-reference/mandate-charge\",\"mainEntityOfPage\":{\"@id\":\"https://docs.prava.space/api-reference/mandate-charge#webpage\"},\"image\":\"https://docs.prava.space/images/brand-banner.png\",\"dateModified\":\"2026-10-24T07:23:14.742Z\",\"publisher\":{\"@id\":\"https://docs.prava.space/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.prava.space#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Prava Payments Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Prava Payments Docs","nav":{"global":null,"tabs":[{"tab":"Developer Guide","pages":[{"title":"Developer Guide","href":""}]},{"tab":"API Reference","groups":[{"group":"Server-Side API","pages":[{"title":"API Reference","icon":"server","href":"/api-reference/overview"},{"title":"Create Session","icon":"plus","openapi":"api-reference/openapi.json POST /v1/sessions","playground":"interactive","href":"/api-reference/create-session"},{"title":"Enroll Card","icon":"credit-card","openapi":"api-reference/openapi.json POST /v1/sessions/enroll-card","playground":"interactive","href":"/api-reference/enroll-card"},{"title":"Get Card Enrollment Status","icon":"rotate","openapi":"api-reference/openapi.json GET /v1/sessions/{sessionId}/status","playground":"interactive","href":"/api-reference/get-card-enrollment-status"},{"title":"Revoke Session","icon":"ban","openapi":"api-reference/openapi.json POST /v1/sessions/{id}/revoke","playground":"interactive","href":"/api-reference/revoke-session"},{"title":"List Cards","icon":"credit-card","openapi":"api-reference/openapi.json GET /v1/listCards","playground":"interactive","href":"/api-reference/list-cards"},{"title":"Delete Card","icon":"trash","openapi":"api-reference/openapi.json POST /v1/deleteCard","playground":"interactive","href":"/api-reference/delete-card"},{"title":"Get Payment Result","icon":"receipt","openapi":"api-reference/openapi.json GET /v1/sessions/{sessionId}/payment-result","playground":"interactive","href":"/api-reference/get-payment-result"},{"title":"Report Status","description":"Report payment execution outcome back to Prava","icon":"flag","openapi":"api-reference/openapi.json POST /v1/sessions/{sessionId}/report-status","playground":"interactive","href":"/api-reference/report-status"},{"title":"Charge a Mandate","icon":"bolt","openapi":"api-reference/openapi.json POST /v1/mandates/{id}/charge","playground":"interactive","href":"/api-reference/mandate-charge"},{"title":"Report a Mandate Charge","description":"Settle a mandate charge outcome (APPROVED / DECLINED) with the card network.","icon":"clipboard-check","openapi":"api-reference/openapi.json POST /v1/mandates/{id}/charges/{txnId}/report","playground":"interactive","href":"/api-reference/mandate-report"},{"title":"List Mandates","icon":"list","openapi":"api-reference/openapi.json GET /v1/mandates","playground":"interactive","href":"/api-reference/mandate-list"},{"title":"Get a Mandate","icon":"file-invoice","openapi":"api-reference/openapi.json GET /v1/mandates/{id}","playground":"interactive","href":"/api-reference/mandate-get"},{"group":"Mandate lifecycle","expanded":true,"pages":[{"title":"Pause a Mandate","icon":"sliders","openapi":"api-reference/openapi.json POST /v1/mandates/{id}/pause","playground":"interactive","href":"/api-reference/mandate-lifecycle"},{"title":"Resume a Mandate","icon":"play","openapi":"api-reference/openapi.json POST /v1/mandates/{id}/resume","playground":"interactive","href":"/api-reference/mandate-resume"},{"title":"Cancel a Mandate","icon":"ban","openapi":"api-reference/openapi.json POST /v1/mandates/{id}/cancel","playground":"interactive","href":"/api-reference/mandate-cancel"}]}]},{"group":"Webhooks API","pages":[{"title":"Webhooks API","icon":"bell","href":"/api-reference/webhooks/overview"},{"title":"List Event Types","icon":"list","openapi":"api-reference/openapi.json GET /v1/webhook-event-types","playground":"interactive","href":"/api-reference/webhooks/list-event-types"},{"group":"Endpoints","expanded":true,"pages":[{"title":"Create an Endpoint","icon":"plus","openapi":"api-reference/openapi.json POST /v1/webhook-endpoints","playground":"interactive","href":"/api-reference/webhooks/create-endpoint"},{"title":"List Endpoints","icon":"list-ul","openapi":"api-reference/openapi.json GET /v1/webhook-endpoints","playground":"interactive","href":"/api-reference/webhooks/list-endpoints"},{"title":"Retrieve an Endpoint","icon":"eye","openapi":"api-reference/openapi.json GET /v1/webhook-endpoints/{endpointId}","playground":"interactive","href":"/api-reference/webhooks/get-endpoint"},{"title":"Update an Endpoint","icon":"pen","openapi":"api-reference/openapi.json PATCH /v1/webhook-endpoints/{endpointId}","playground":"interactive","href":"/api-reference/webhooks/update-endpoint"},{"title":"Delete an Endpoint","icon":"trash","openapi":"api-reference/openapi.json DELETE /v1/webhook-endpoints/{endpointId}","playground":"interactive","href":"/api-reference/webhooks/delete-endpoint"},{"title":"Verify an Endpoint","icon":"circle-check","openapi":"api-reference/openapi.json POST /v1/webhook-endpoints/{endpointId}/verify","playground":"interactive","href":"/api-reference/webhooks/verify-endpoint"},{"title":"Send a Test Event","icon":"paper-plane","openapi":"api-reference/openapi.json POST /v1/webhook-endpoints/{endpointId}/test","playground":"interactive","href":"/api-reference/webhooks/send-test-event"},{"title":"Rotate the Signing Secret","icon":"key","openapi":"api-reference/openapi.json POST /v1/webhook-endpoints/{endpointId}/rotate-secret","playground":"interactive","href":"/api-reference/webhooks/rotate-signing-secret"}]},{"group":"Deliveries","expanded":true,"pages":[{"title":"List Deliveries","icon":"clock-rotate-left","openapi":"api-reference/openapi.json GET /v1/webhook-endpoints/{endpointId}/deliveries","playground":"interactive","href":"/api-reference/webhooks/list-deliveries"},{"title":"Retrieve a Delivery","icon":"magnifying-glass","openapi":"api-reference/openapi.json GET /v1/webhook-deliveries/{deliveryId}","playground":"interactive","href":"/api-reference/webhooks/get-delivery"},{"title":"Replay a Delivery","icon":"rotate-right","openapi":"api-reference/openapi.json POST /v1/webhook-deliveries/{deliveryId}/replay","playground":"interactive","href":"/api-reference/webhooks/replay-delivery"}]},{"group":"Events","expanded":true,"pages":[{"title":"List Events","icon":"list","openapi":"api-reference/openapi.json GET /v1/events","playground":"interactive","href":"/api-reference/webhooks/list-events"},{"title":"Retrieve an Event","icon":"bolt","openapi":"api-reference/openapi.json GET /v1/events/{eventId}","playground":"interactive","href":"/api-reference/webhooks/get-event"}]}]},{"group":"Reference","pages":[{"title":"Errors","icon":"triangle-exclamation","href":"/api-reference/errors"},{"title":"Test Cards","icon":"credit-card","href":"/api-reference/test-cards"},{"title":"Testing in Sandbox","icon":"flask","href":"/api-reference/testing"}]}]},{"tab":"Concepts","pages":[{"title":"Concepts","href":"/concepts/payments"}]},{"tab":"Capabilities","pages":[{"title":"Capabilities","href":"/integration/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/developer-faq"}]}]},"title":"Charge a Mandate - Prava Payments Docs","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Bbp7I60D.js","utils-C3RIvJha.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DqD-vLt8.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B31Loprg.js","snippetPresets-DKpk-b8t.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Cj65AhOR.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BXtn5gcC.js","shallow-RY2b03Cp.js","getApiPlaygroundDisplay-B0jeiPk3.js","CodeSnippet-CYgBjjwn.js","CodeSnippets-DOngDrYB.js","Page-n7I5XbKb.js","getPastedJson-DRQbJx-T.js","icon-CQiQCicY.js","MethodPill-BKTLdNtu.js","DuplicateIcon-B9jpAdat.js","createIcon-DCddRrXv.js","DynamicMarkdown-a8hUKrw6.js","SectionHeading-eECVV2eH.js","axios-vUo_bRtp.js","Markdown--GF7ZIpf.js","clsx-DZLdJUrt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-2LoAhjKH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Zwc0ZncM.js"]}