Your Nevermined API Key (starts with 'nvm:'). Get one at nevermined.app under Settings > API Keys.
Body
application/json
Settlement request
Body of POST /x402/settle — the same SettlePermissionsDto as verify. paymentRequired and x402AccessToken are both required and the handler runs a ValidationPipe, so a body missing either is rejected with 400 before settlement runs. planId, subscriberAddress, agentId, the endpoint and the HTTP verb are read out of the token — never sent alongside it.
Maximum credits to redeem during settlement. Send it as a decimal STRING: the value is parsed with BigInt() and then required to be a bigint, so a JSON number is rejected with 400.
Agent request id for observability, as returned by POST /x402/verify. Bounded to 1–128 URL-safe ASCII characters because the value is interpolated into a Helicone filter and persisted to agent_tasks.
Margin percentage used for credit calculation. Mutually exclusive with maxAmount when agentRequestId is supplied.
Required range: 0 <= x <= 10
Example:
0.2
Response
Settlement complete
Settlement receipt. success alone tells you the settle worked; what to check in addition depends on billingModel. On credits plans the payment shows up as creditsRedeemed > 0. On pay-as-you-go plans there is no credit balance, so creditsRedeemed and remainingBalance are always the string "0" even on a charge that succeeded — the proof there is success: true plus a non-empty orderTx (fiat rails) or transaction (crypto rails). Do not gate on creditsRedeemed without reading billingModel first: on a card rail that reports a real charge as a decline and invites a retry of a payment that already went through. Note the credit fields are strings, so "0" is truthy while Number("0") > 0 is false.
Network identifier. The discriminator is the rail, not the billing model: a CAIP-2 chain id (eip155:84532) for crypto rails under both billing models, or the settling payment provider (stripe, braintree, visa) for fiat card-delegation rails.
Which billing model this settle was priced under. Present regardless of success — check success before treating it as evidence of a charge. Read it before the two credit fields.
Number of credits redeemed. Always "0" for pay-as-you-go plans, which hold no credit balance — including on a settle that charged the buyer successfully.
Subscriber's remaining credit balance. Always "0" for pay-as-you-go plans — the per-request charge is referenced by orderTx (fiat) or transaction (crypto), not here.
Reference for the order or per-request charge, if one occurred. On fiat pay-as-you-go this is the per-request charge (a Stripe PaymentIntent id, a Braintree transaction id); crypto pay-as-you-go reports its on-chain order in transaction instead. On credits plans it is set only when the settle had to order credits first (auto top-up).
Example:
"pi_3TUrvfBYvSRKcV420xCBjHb1"
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Nevermined Documentation","colors":{"primary":"#0f766e","light":"#5eead4","dark":"#0d3f48"},"logo":{"light":"https://mintcdn.com/neverminedag/pEEAPbhrOtjiJvrW/logo/light.svg?fit=max\u0026auto=format\u0026n=pEEAPbhrOtjiJvrW\u0026q=85\u0026s=adbff4ad34c53aed8ca307e9b12104e5","dark":"https://mintcdn.com/neverminedag/pEEAPbhrOtjiJvrW/logo/dark.svg?fit=max\u0026auto=format\u0026n=pEEAPbhrOtjiJvrW\u0026q=85\u0026s=519fb2296e47f72117a24e0787b6bd87"},"favicon":"https://mintcdn.com/neverminedag/816P0WhT1WcQ-Koj/favicon.ico?fit=max\u0026auto=format\u0026n=816P0WhT1WcQ-Koj\u0026q=85\u0026s=2ff33e631489dd6cca6be632af8aa16a","api":{"openapi":"api-reference/openapi.json"},"appearance":{"default":"light"},"navbar":{"links":[{"href":"https://nevermined.app","label":"App"}],"primary":{"type":"button","label":"AI Catalog","href":"https://nevermined.app/catalog/"}},"footer":{"socials":{"x":"https://x.com/nevermined_ai","github":"https://github.com/nevermined-io","linkedin":"https://linkedin.com/company/nevermined","discord":"https://discord.com/invite/GZju2qScKq"}},"seo":{"metatags":{"canonical":"https://nevermined.ai/docs"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"markdown":{"instructions":["If you are an agent buying services: start with these steps. Every page has a .md version.","1. Install the Catalog MCP (live server https://mcp.live.nevermined.app/mcp, sandbox server https://mcp.sandbox.nevermined.app/mcp; rehearse on sandbox with a sandbox API key before live, as keys work only in their own environment; Claude Code and Cursor commands, Codex config.toml entry): https://nevermined.ai/docs/products/catalog/mcp.md","2. Get an API key: https://nevermined.ai/docs/agents-guide/get-api-key.md","3. Enroll a card and create a delegation (a payment method plus a spend mandate: an amount, an expiry and a number of purchases): https://nevermined.ai/docs/agents-guide/enroll-card.md","4. Buy and call a paid agent over x402: https://nevermined.ai/docs/getting-started/ai-agent-purchase.md","SDK quickstart: https://nevermined.ai/docs/integrate/quickstart/typescript.md. Pricing: https://nevermined.ai/pricing/"]},"styling":{"latex":true},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"neverminedag","hasAudioNarration":false,"actualSubdomain":"neverminedag","customDomains":["nevermined.ai"],"gitSource":{"type":"github","owner":"nevermined-io","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae4c154042029f704eeaf91","collectionId":"f605d268-d9ab-4999-8330-cb004284f61b","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae4c154042029f704eeaf91"},"feedback":{"agentFeedback":true,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae4c154042029f704eeaf91","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"API","count":147},{"language":"default","tag":"Guides","count":131},{"language":"default","tag":"Organizations","count":96},{"language":"default","tag":"Nevermined Catalog","count":49},{"language":"default","tag":"SDK","count":35},{"language":"default","tag":"Connect from a host","count":29},{"language":"default","tag":"Integrations","count":21},{"language":"default","tag":"MCP","count":18},{"language":"default","tag":"Authentication","count":17},{"language":"default","tag":"Learn","count":16}]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@nevermined.io","showHelpButton":true}},"basePath":"/docs","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":"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":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"@keyframes nvm-catalog-shimmer{0%,to{background-color:var(--catalog-accent)}50%{background-color:var(--catalog-lime)}}img.nav-logo{max-height:20px!important;height:20px!important;width:auto!important}.nav-tabs{gap:0!important;padding:0!important}a.nav-tabs-item{padding:8px 16px!important;font-size:14px!important;font-weight:500!important;min-width:auto!important;border-radius:0!important;background:0 0!important}a.nav-tabs-item:hover{color:#0f766e!important;background:0 0!important}.dark a.nav-tabs-item,[data-theme=dark] a.nav-tabs-item{color:#d1d5db!important}.dark a.nav-tabs-item:hover,[data-theme=dark] a.nav-tabs-item:hover{color:#5eead4!important}@media (max-width:768px){a.nav-tabs-item{padding:6px 12px!important;font-size:13px!important}}.nvm-hero-banner{position:relative;background-color:#0d3f48;border-radius:24px;padding:48px 32px;margin-bottom:32px;overflow:hidden;min-height:320px;display:flex;flex-direction:column;justify-content:center}.nvm-hero-banner::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background-image:url(/images/product_hero.jpg);background-size:cover;background-position:center right;opacity:.9}.nvm-hero-content{position:relative;z-index:1;max-width:600px}.nvm-hero-label{color:#fff;font-size:12px;font-weight:600;letter-spacing:2px;text-transform:uppercase;margin-bottom:16px;opacity:.9}.nvm-hero-title{font-size:clamp(28px,5vw,48px);font-weight:300;line-height:1.1;margin-bottom:20px}.nvm-gradient-text{background:linear-gradient(114.57deg,#bcdc4a 23%,#abe2dd 60%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-style:italic}.nvm-hero-title-white{color:#fff;display:block;margin-top:4px}.nvm-hero-description{color:rgba(255,255,255,.85);font-size:16px;line-height:1.6;margin-bottom:24px;max-width:500px}.nvm-hero-button{display:inline-block;background-color:#fff;color:#0d3f48!important;padding:12px 24px;border-radius:8px;font-size:14px;font-weight:600;text-decoration:none!important;transition:all .2s ease;border:0;cursor:pointer}.nvm-hero-button:hover{background-color:#f0f0f0;transform:translateY(-1px);text-decoration:none!important}@media (max-width:768px){.nvm-hero-banner{padding:32px 24px;min-height:280px}.nvm-hero-banner::before{background-position:center center;opacity:.7}.nvm-hero-title{font-size:28px}.nvm-hero-description{font-size:14px}}.prose,.prose li,.prose p,article li,article p{font-size:15px!important;line-height:1.6!important}.prose h1,article h1{font-size:27px!important}.prose h2,article h2{font-size:21px!important}.prose h3,article h3{font-size:17px!important}.prose h4,article h4{font-size:15px!important}#sidebar a.group{padding-top:4px!important;padding-bottom:4px!important}#sidebar li{margin:1px 0!important}.sidebar-group-header{gap:6px!important;margin-bottom:4px!important;padding-left:12px!important}#sidebar .lg\\:mt-8,#sidebar .mt-6{margin-top:20px!important}ul.sidebar-group{gap:0!important}#sidebar-content{padding-top:12px!important;padding-bottom:12px!important}#navigation-items{font-size:13px!important}:is(a, button, input, select, textarea, summary,\n [tabindex]:not([tabindex=\"-1\"]), [role=\"button\"], [role=\"link\"],\n [role=\"tab\"], [role=\"menuitem\"], [role=\"option\"], [role=\"checkbox\"],\n [role=\"switch\"]):focus-visible{outline:2px solid #0f766e!important;outline-offset:2px!important}.dark :is(a, button, input, select, textarea, summary,\n [tabindex]:not([tabindex=\"-1\"]), [role=\"button\"], [role=\"link\"],\n [role=\"tab\"], [role=\"menuitem\"], [role=\"option\"], [role=\"checkbox\"],\n [role=\"switch\"]):focus-visible,[data-theme=dark] :is(a, button, input, select, textarea, summary,\n [tabindex]:not([tabindex=\"-1\"]), [role=\"button\"], [role=\"link\"],\n [role=\"tab\"], [role=\"menuitem\"], [role=\"option\"], [role=\"checkbox\"],\n [role=\"switch\"]):focus-visible{outline-color:#5eead4!important}#navbar{background-color:rgb(var(--background-light, 255 255 255))!important;border-bottom:1px solid #e5e7eb!important;--nvmbg-ink:#0d3f48}.dark #navbar,[data-theme=dark] #navbar{background-color:rgb(var(--background-dark, 11 14 15))!important;border-bottom-color:rgba(255,255,255,.08)!important;--nvmbg-ink:#4ac6bf}#navbar::after,#navbar::before{content:\"\";position:absolute;inset:0;z-index:1;pointer-events:none}#navbar::after{background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22130%22%20viewBox%3D%220%200%20600%20130%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%230d3f48%22%20stroke-opacity%3D%220.09%22%20stroke-width%3D%221%22%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%2240%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%2266%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%2292%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22118%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22144%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22170%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22196%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22222%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22248%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22274%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22300%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22326%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22352%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22378%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22404%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22430%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22456%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22482%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22508%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22534%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22560%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22586%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22612%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22638%22%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D%22%230d3f48%22%20stroke-opacity%3D%220.04%22%20stroke-width%3D%221%22%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%2240%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%2266%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%2292%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22118%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22144%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22170%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22196%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22222%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22248%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22274%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22300%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22326%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22352%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22378%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22404%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22430%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22456%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22482%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22508%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22534%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22560%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22586%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22612%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22638%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E);background-repeat:no-repeat;background-position:top right;background-size:600px 130px}.dark #navbar::after,[data-theme=dark] #navbar::after{background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22130%22%20viewBox%3D%220%200%20600%20130%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%234ac6bf%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221%22%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%2240%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%2266%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%2292%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22118%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22144%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22170%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22196%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22222%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22248%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22274%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22300%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22326%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22352%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22378%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22404%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22430%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22456%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22482%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22508%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22534%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22560%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22586%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22612%22%2F%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%220%22%20r%3D%22638%22%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D%22%234ac6bf%22%20stroke-opacity%3D%220.045%22%20stroke-width%3D%221%22%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%2240%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%2266%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%2292%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22118%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22144%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22170%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22196%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22222%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22248%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22274%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22300%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22326%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22352%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22378%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22404%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22430%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22456%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22482%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22508%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22534%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22560%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22586%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22612%22%2F%3E%3Ccircle%20cx%3D%22618%22%20cy%3D%2214%22%20r%3D%22638%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E)}#navbar::before{opacity:.06;background-image:repeating-linear-gradient(45deg,var(--nvmbg-ink) 0,var(--nvmbg-ink) .5px,transparent .5px,transparent 5px);-webkit-mask-image:radial-gradient(120% 140% at 0 0,#000 0,transparent 55%);mask-image:radial-gradient(120% 140% at 0 0,#000 0,transparent 55%)}#navbar div:has(>nav #topbar-cta-button)>nav{order:1;margin-inline:1rem 0}#navbar div:has(>nav #topbar-cta-button)>div{margin-inline:0}#topbar-cta-button>a{--catalog-accent:#12a89e;--catalog-lime:#8fbf1f;position:relative;display:inline-flex;align-items:center;padding:13px 22px 13px 57px;border-radius:12px;background:#0d3f48;font-size:15px;font-weight:600;line-height:1}:is(.dark, [data-theme=\"dark\"]) #topbar-cta-button>a{--catalog-accent:#4ac6bf;--catalog-lime:#bcdc4a}#topbar-cta-button>a>div>svg,#topbar-cta-button>a>span.absolute{display:none}#topbar-cta-button>a::after,#topbar-cta-button>a::before{content:\"\";position:absolute;left:22px;top:50%;transform:translateY(-50%);width:24px;height:17px;background-color:var(--catalog-accent);mask:var(--catalog-ribbon) center/contain no-repeat;-webkit-mask:var(--catalog-ribbon) center/contain no-repeat;pointer-events:none}#topbar-cta-button>a::before{--catalog-ribbon:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2031.06%2022%22%3E%3Cpath%20d%3D%22M0%2011.153L10.4179%2020.6426V11.0576L0%201.56805V11.153Z%22%2F%3E%3C%2Fsvg%3E\")}#topbar-cta-button>a::after{--catalog-ribbon:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2031.06%2022%22%3E%3Cpath%20d%3D%22M10.4178%201.56805V11.153L20.8325%2020.6426L31.0596%2011.153V1.56805L20.8325%2011.0576L10.4178%201.56805Z%22%2F%3E%3C%2Fsvg%3E\")}@media (prefers-reduced-motion:no-preference){#topbar-cta-button>a:is(:hover, :focus-visible)::after,#topbar-cta-button>a:is(:hover, :focus-visible)::before{animation:nvm-catalog-shimmer .8s ease-in-out infinite}#topbar-cta-button>a:is(:hover, :focus-visible)::after{animation-delay:.12s}}"}],"page":{"pagePath":"api-reference/x402/settle-permission","slug":"/api-reference/x402/settle-permission","pageMetadata":{"title":"Settle","openapi":"POST /x402/settle","description":"Finalizes and records delegated permission usage after service delivery.","href":"/api-reference/x402/settle-permission"},"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: \"Finalizes and records delegated permission usage after service delivery.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Settle","openapi":"POST /x402/settle","description":"Finalizes and records delegated permission usage after service delivery.","href":"/api-reference/x402/settle-permission"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/neverminedag/13bbe6de0edf6c8b/docs-analytics.js"],"openApiReferenceData":{"operation":{"summary":"Settle Permission","description":"Finalizes and records delegated permission usage after service delivery.","operationId":"settlePermission","tags":["X402 - Permissions"],"requestBody":"d850fea1-a5eb-4551-bc68-36a6f40faeca","responses":{"201":"5cde3293-27ff-4751-bf8b-d82861e74335","402":"70aef404-b64e-4539-ba0e-f41b18aee682"},"method":"post","type":"path","servers":["9b76b214-44ba-4d4c-aa15-824dd2a4d557","6b59974c-3a98-4daf-af25-6bfd09af5b61"],"security":["5693c408-420c-460b-abf0-bd492a166b33"],"path":"/x402/settle","baseUrlOptions":["https://api.sandbox.nevermined.app/api/v1","https://api.live.nevermined.app/api/v1"],"title":"Settle Permission","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"description":"Settlement request","required":true,"content":{"application/json":{"schema":{"type":"object","description":"Body of `POST /x402/settle` — the same `SettlePermissionsDto` as verify. `paymentRequired` and `x402AccessToken` are both required and the handler runs a `ValidationPipe`, so a body missing either is rejected with 400 before settlement runs. `planId`, `subscriberAddress`, `agentId`, the endpoint and the HTTP verb are read out of the token — never sent alongside it.","properties":{"paymentRequired":{"type":"object","description":"The server's 402 PaymentRequired response. The facilitator validates that the scheme accepted inside the token matches one of `accepts`.","required":["x402Version","resource","accepts","extensions"],"properties":{"x402Version":{"type":"integer","description":"x402 protocol version.","example":2,"isRequired":true,"uniqueKey":"paymentRequired.x402Version","typeLabel":"integer"},"resource":{"type":"object","description":"Protected resource information.","required":["url"],"properties":{"url":{"type":"string","minLength":1,"description":"URL of the protected resource or endpoint.","example":"https://myagent.ai/api/v1/tasks","isRequired":true,"uniqueKey":"paymentRequired.resource.url","typeLabel":"string"},"description":{"type":"string","description":"Human-readable description of the resource.","example":"AI agent task execution","uniqueKey":"paymentRequired.resource.description","typeLabel":"string"},"mimeType":{"type":"string","description":"Expected response MIME type.","example":"application/json","uniqueKey":"paymentRequired.resource.mimeType","typeLabel":"string"}},"isRequired":true,"uniqueKey":"paymentRequired.resource","typeLabel":"object"},"accepts":{"type":"array","description":"Payment schemes the server accepts for this resource.","items":{"type":"object","description":"One x402 payment scheme (`X402SchemeDto`). The same shape appears in `accepts[]` on the server's 402 response and in `accepted` on the payload you mint — the client echoes back the scheme it selected.","properties":{"scheme":{"type":"string","description":"Payment scheme identifier. Selects the settlement rail: `nvm:erc4337` settles on-chain, `nvm:card-delegation` settles against an enrolled card.","enum":["nvm:erc4337","nvm:card-delegation"],"example":"nvm:erc4337","isRequired":true,"uniqueKey":"paymentRequired.accepts.items.[INDEX].scheme","typeLabel":"enum\u003cstring>"},"network":{"type":"string","description":"Settlement RAIL, not the environment. Card flows send `stripe`, `braintree` or `visa`; crypto flows send `eip155:\u003cchainId>`. An environment name such as `sandbox` or `live` is rejected by request validation.","pattern":"^(?:stripe|braintree|visa|eip155:\\d+)$","example":"eip155:84532","isRequired":true,"uniqueKey":"paymentRequired.accepts.items.[INDEX].network","typeLabel":"string"},"planId":{"type":"string","description":"Plan id (256-bit identifier). Required for BOTH schemes — a mint without it is refused with `BCK.X402.0030` (HTTP 402). Request validation does not enforce it for either scheme: the DTO marks it optional, so the rejection comes from the scheme handler rather than from the `ValidationPipe`.","example":"44742763076047497640080230236781474129970992727896593861997347135613135571071","uniqueKey":"paymentRequired.accepts.items.[INDEX].planId","typeLabel":"string"},"extra":{"type":"object","description":"Extra scheme-specific fields.","properties":{"version":{"type":"string","description":"Scheme version.","example":"1","uniqueKey":"paymentRequired.accepts.items.[INDEX].extra.version","typeLabel":"string"},"agentId":{"type":"string","description":"Agent id the token is bound to, used for endpoint validation.","example":"80918427023170428029540261117198154464497879145267720259488529685089104529015","uniqueKey":"paymentRequired.accepts.items.[INDEX].extra.agentId","typeLabel":"string"},"httpVerb":{"type":"string","description":"HTTP verb the token is bound to, used for endpoint validation.","example":"POST","uniqueKey":"paymentRequired.accepts.items.[INDEX].extra.httpVerb","typeLabel":"string"}},"uniqueKey":"paymentRequired.accepts.items.[INDEX].extra","typeLabel":"object"}},"required":["scheme","network"],"uniqueKey":"paymentRequired.accepts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"paymentRequired.accepts","typeLabel":"object[]"},"extensions":{"type":"object","description":"Extensions object. Empty (`{}`) for `nvm:erc4337`, but the field itself must be present — it is validated as required.","additionalProperties":true,"example":{},"isRequired":true,"uniqueKey":"paymentRequired.extensions","typeLabel":"object"},"error":{"type":"string","description":"Human-readable error message from the 402 response.","example":"Payment required to access resource","uniqueKey":"paymentRequired.error","typeLabel":"string"}},"isRequired":true,"uniqueKey":"paymentRequired","typeLabel":"object"},"x402AccessToken":{"type":"string","description":"The x402 payment payload, base64-encoded — the token minted by `POST /x402/permissions`.","example":"eyJ4NDAyVmVyc2lvbiI6MiwicmVzb3VyY2UiOnsidXJsIjoiaHR0cHM6Ly9teWFnZW50LmFpL2FwaS92MS90YXNrcyJ9LCJhY2NlcHRlZCI6eyJzY2hlbWUiOiJudm06ZXJjNDMzNyIsIm5ldHdvcmsiOiJlaXAxNTU6ODQ1MzIiLCJwbGFuSWQiOiI0NDc0Mjc2MzA3NjA0NzQ5NzY0MDA4MDIzMDIzNjc4MTQ3NDEyOTk3MDk5MjcyNzg5NjU5Mzg2MTk5NzM0NzEzNTYxMzEzNTU3MTA3MSIsImV4dHJhIjp7InZlcnNpb24iOiIxIiwiYWdlbnRJZCI6IjgwOTE4NDI3MDIzMTcwNDI4MDI5NTQwMjYxMTE3MTk4MTU0NDY0NDk3ODc5MTQ1MjY3NzIwMjU5NDg4NTI5Njg1MDg5MTA0NTI5MDE1IiwiaHR0cFZlcmIiOiJQT1NUIn19LCJwYXlsb2FkIjp7InNpZ25hdHVyZSI6IjB4MTIzNCIsImF1dGhvcml6YXRpb24iOnsiZnJvbSI6IjB4ZjM5RmQ2ZTUxYWFkODhGNkY0Y2U2YUI4ODI3Mjc5Y2ZmRmI5MjI2NiIsInNlc3Npb25LZXlzUHJvdmlkZXIiOiJ6ZXJvZGV2Iiwic2Vzc2lvbktleXMiOltdfX0sImV4dGVuc2lvbnMiOnt9fQ==","isRequired":true,"uniqueKey":"x402AccessToken","typeLabel":"string"},"maxAmount":{"type":"string","description":"Maximum credits to redeem during settlement. Send it as a decimal STRING: the value is parsed with `BigInt()` and then required to be a bigint, so a JSON number is rejected with 400.","example":"2","uniqueKey":"maxAmount","typeLabel":"string"},"agentRequestId":{"type":"string","maxLength":128,"pattern":"^[a-zA-Z0-9\\-_]{1,128}$","description":"Agent request id for observability, as returned by `POST /x402/verify`. Bounded to 1–128 URL-safe ASCII characters because the value is interpolated into a Helicone filter and persisted to `agent_tasks`.","example":"arId-123e4567-e89b-12d3-a456-426614174000","uniqueKey":"agentRequestId","typeLabel":"string"},"batch":{"type":"boolean","description":"Whether this settles a batch — several LLM calls made under one `agentRequestId`.","example":true,"uniqueKey":"batch","typeLabel":"boolean"},"marginPercent":{"type":"number","minimum":0,"maximum":10,"description":"Margin percentage used for credit calculation. Mutually exclusive with `maxAmount` when `agentRequestId` is supplied.","example":0.2,"uniqueKey":"marginPercent","typeLabel":"number"}},"required":["paymentRequired","x402AccessToken"],"uniqueKey":"","typeLabel":"object"},"example":{"paymentRequired":{"x402Version":2,"error":"Payment required to access resource","resource":{"url":"/api/v1/agents/tasks","description":"AI agent task execution"},"accepts":[{"scheme":"nvm:erc4337","network":"eip155:84532","planId":"44742763076047497640080230236781474129970992727896593861997347135613135571071","extra":{"version":"1"}}],"extensions":{}},"x402AccessToken":"eyJ4NDAyVmVyc2lvbiI6MiwicmVzb3VyY2UiOnsidXJsIjoiL2FwaS92MS9hZ2VudHMvdGFza3MifSwiYWNjZXB0ZWQiOnsic2NoZW1lIjoibnZtOmVyYzQzMzciLCJuZXR3b3JrIjoiZWlwMTU1Ojg0NTMyIiwicGxhbklkIjoiNDQ3NDI3NjMwNzYwNDc0OTc2NDAwODAyMzAyMzY3ODE0NzQxMjk5NzA5OTI3Mjc4OTY1OTM4NjE5OTczNDcxMzU2MTMxMzU1NzEwNzEiLCJleHRyYSI6eyJ2ZXJzaW9uIjoiMSJ9fSwicGF5bG9hZCI6eyJzaWduYXR1cmUiOiIweDEyMzQiLCJhdXRob3JpemF0aW9uIjp7ImZyb20iOiIweGYzOUZkNmU1MWFhZDg4RjZGNGNlNmFCODgyNzI3OWNmZkZiOTIyNjYiLCJzZXNzaW9uS2V5c1Byb3ZpZGVyIjoiemVyb2RldiIsInNlc3Npb25LZXlzIjpbXX19LCJleHRlbnNpb25zIjp7fX0=","maxAmount":"2","agentRequestId":"arId-123e4567-e89b-12d3-a456-426614174000"},"examples":{"Example":{"title":"Example","value":{"paymentRequired":{"x402Version":2,"error":"Payment required to access resource","resource":{"url":"/api/v1/agents/tasks","description":"AI agent task execution"},"accepts":[{"scheme":"nvm:erc4337","network":"eip155:84532","planId":"44742763076047497640080230236781474129970992727896593861997347135613135571071","extra":{"version":"1"}}],"extensions":{}},"x402AccessToken":"eyJ4NDAyVmVyc2lvbiI6MiwicmVzb3VyY2UiOnsidXJsIjoiL2FwaS92MS9hZ2VudHMvdGFza3MifSwiYWNjZXB0ZWQiOnsic2NoZW1lIjoibnZtOmVyYzQzMzciLCJuZXR3b3JrIjoiZWlwMTU1Ojg0NTMyIiwicGxhbklkIjoiNDQ3NDI3NjMwNzYwNDc0OTc2NDAwODAyMzAyMzY3ODE0NzQxMjk5NzA5OTI3Mjc4OTY1OTM4NjE5OTczNDcxMzU2MTMxMzU1NzEwNzEiLCJleHRyYSI6eyJ2ZXJzaW9uIjoiMSJ9fSwicGF5bG9hZCI6eyJzaWduYXR1cmUiOiIweDEyMzQiLCJhdXRob3JpemF0aW9uIjp7ImZyb20iOiIweGYzOUZkNmU1MWFhZDg4RjZGNGNlNmFCODgyNzI3OWNmZkZiOTIyNjYiLCJzZXNzaW9uS2V5c1Byb3ZpZGVyIjoiemVyb2RldiIsInNlc3Npb25LZXlzIjpbXX19LCJleHRlbnNpb25zIjp7fX0=","maxAmount":"2","agentRequestId":"arId-123e4567-e89b-12d3-a456-426614174000"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"5cde3293-27ff-4751-bf8b-d82861e74335":{"description":"Settlement complete","content":{"application/json":{"schema":{"type":"object","description":"Settlement receipt. `success` alone tells you the settle worked; what to check in addition depends on `billingModel`. On `credits` plans the payment shows up as `creditsRedeemed > 0`. On `pay-as-you-go` plans there is no credit balance, so `creditsRedeemed` and `remainingBalance` are always the string \"0\" even on a charge that succeeded — the proof there is `success: true` plus a non-empty `orderTx` (fiat rails) or `transaction` (crypto rails). Do not gate on `creditsRedeemed` without reading `billingModel` first: on a card rail that reports a real charge as a decline and invites a retry of a payment that already went through. Note the credit fields are strings, so \"0\" is truthy while Number(\"0\") > 0 is false.","properties":{"success":{"type":"boolean","description":"Whether settlement was successful.","uniqueKey":"success","typeLabel":"boolean"},"errorReason":{"type":"string","description":"Reason for settlement failure (only present if success is false).","uniqueKey":"errorReason","typeLabel":"string"},"payer":{"type":"string","description":"Address of the payer's wallet.","uniqueKey":"payer","typeLabel":"string"},"transaction":{"type":"string","description":"Blockchain transaction hash. On crypto pay-as-you-go plans this is also the reference for the per-request charge.","uniqueKey":"transaction","typeLabel":"string"},"network":{"type":"string","description":"Network identifier. The discriminator is the rail, not the billing model: a CAIP-2 chain id (eip155:84532) for crypto rails under both billing models, or the settling payment provider (stripe, braintree, visa) for fiat card-delegation rails.","example":"eip155:84532","uniqueKey":"network","typeLabel":"string"},"billingModel":{"type":"string","enum":["credits","pay-as-you-go"],"description":"Which billing model this settle was priced under. Present regardless of `success` — check `success` before treating it as evidence of a charge. Read it before the two credit fields.","uniqueKey":"billingModel","typeLabel":"enum\u003cstring>"},"creditsRedeemed":{"type":"string","description":"Number of credits redeemed. Always \"0\" for pay-as-you-go plans, which hold no credit balance — including on a settle that charged the buyer successfully.","example":"2","uniqueKey":"creditsRedeemed","typeLabel":"string"},"remainingBalance":{"type":"string","description":"Subscriber's remaining credit balance. Always \"0\" for pay-as-you-go plans — the per-request charge is referenced by `orderTx` (fiat) or `transaction` (crypto), not here.","example":"98","uniqueKey":"remainingBalance","typeLabel":"string"},"orderTx":{"type":"string","description":"Reference for the order or per-request charge, if one occurred. On fiat pay-as-you-go this is the per-request charge (a Stripe PaymentIntent id, a Braintree transaction id); crypto pay-as-you-go reports its on-chain order in `transaction` instead. On credits plans it is set only when the settle had to order credits first (auto top-up).","example":"pi_3TUrvfBYvSRKcV420xCBjHb1","uniqueKey":"orderTx","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"errorReason":"\u003cstring>","payer":"\u003cstring>","transaction":"\u003cstring>","network":"eip155:84532","billingModel":"credits","creditsRedeemed":"2","remainingBalance":"98","orderTx":"pi_3TUrvfBYvSRKcV420xCBjHb1"}}},"exampleType":"generated"}},"exampleType":"generated"},"70aef404-b64e-4539-ba0e-f41b18aee682":{"description":"Settlement failed - insufficient credits","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"5693c408-420c-460b-abf0-bd492a166b33":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your Nevermined API Key (starts with 'nvm:'). Get one at [nevermined.app](https://nevermined.app) under **Settings > API Keys**.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"9b76b214-44ba-4d4c-aa15-824dd2a4d557":{"url":"https://api.sandbox.nevermined.app/api/v1","description":"Sandbox (Testing) - Base Sepolia"},"6b59974c-3a98-4daf-af25-6bfd09af5b61":{"url":"https://api.live.nevermined.app/api/v1","description":"Live (Production) - Base Mainnet"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your Nevermined API Key (starts with 'nvm:'). Get one at [nevermined.app](https://nevermined.app) under **Settings > API Keys**.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your Nevermined API Key (starts with 'nvm:'). Get one at [nevermined.app](https://nevermined.app) under **Settings > API Keys**.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"neverminedag","siteName":"Nevermined Documentation","title":"Settle - Nevermined Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-29T15:48:33.922Z","originalFileLocation":"api-reference/x402/settle-permission.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=\"Finalizes and records delegated permission usage after service delivery.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Nevermined Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/neverminedag/kfri__UAQkYRE-Ph/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/neverminedag/kfri__UAQkYRE-Ph/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/neverminedag/kfri__UAQkYRE-Ph/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/neverminedag/kfri__UAQkYRE-Ph/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/neverminedag/kfri__UAQkYRE-Ph/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/neverminedag/kfri__UAQkYRE-Ph/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/neverminedag/kfri__UAQkYRE-Ph/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/neverminedag/kfri__UAQkYRE-Ph/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/neverminedag/kfri__UAQkYRE-Ph/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Settle - Nevermined Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Finalizes and records delegated permission usage after service delivery.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Nevermined Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://nevermined.ai/docs/api-reference/x402/settle-permission\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://neverminedag.mintlify.app/_mintlify/api/og/v2?division=x402\u0026amp;title=Settle\u0026amp;description=Finalizes+and+records+delegated+permission+usage+after+service+delivery.\u0026amp;theme=c89a77452a99234468b325dc\u0026amp;signature=2afdfdf86f81e69f1160a8993646be8806cff034bf264333d643186d870d6045\">\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=\"Settle - Nevermined Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Finalizes and records delegated permission usage after service delivery.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://neverminedag.mintlify.app/_mintlify/api/og/v2?division=x402\u0026amp;title=Settle\u0026amp;description=Finalizes+and+records+delegated+permission+usage+after+service+delivery.\u0026amp;theme=c89a77452a99234468b325dc\u0026amp;signature=2afdfdf86f81e69f1160a8993646be8806cff034bf264333d643186d870d6045\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/neverminedag/kfri__UAQkYRE-Ph/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Nevermined Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0f766e\">\u003clink data-mint-head rel=\"canonical\" href=\"https://nevermined.ai/docs/api-reference/x402/settle-permission\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/x402/settle-permission.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://nevermined.ai/#organization\",\"name\":\"Nevermined Documentation\",\"url\":\"https://nevermined.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/neverminedag/pEEAPbhrOtjiJvrW/logo/light.svg?fit=max\u0026auto=format\u0026n=pEEAPbhrOtjiJvrW\u0026q=85\u0026s=adbff4ad34c53aed8ca307e9b12104e5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://nevermined.ai/docs#website\",\"name\":\"Nevermined Documentation\",\"url\":\"https://nevermined.ai/docs\",\"publisher\":{\"@id\":\"https://nevermined.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://nevermined.ai/docs/api-reference/x402/settle-permission#webpage\",\"url\":\"https://nevermined.ai/docs/api-reference/x402/settle-permission\",\"name\":\"Settle\",\"description\":\"Finalizes and records delegated permission usage after service delivery.\",\"dateModified\":\"2026-07-29T15:48:33.922Z\",\"isPartOf\":{\"@id\":\"https://nevermined.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://nevermined.ai/docs/api-reference/x402/settle-permission#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://nevermined.ai/docs/api-reference/x402/settle-permission#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"x402\",\"item\":\"https://nevermined.ai/docs/api-reference/x402/verify-permission\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Settle\",\"item\":\"https://nevermined.ai/docs/api-reference/x402/settle-permission\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://nevermined.ai/docs/api-reference/x402/settle-permission#apireference\",\"headline\":\"Settle\",\"name\":\"Settle\",\"description\":\"Finalizes and records delegated permission usage after service delivery.\",\"url\":\"https://nevermined.ai/docs/api-reference/x402/settle-permission\",\"mainEntityOfPage\":{\"@id\":\"https://nevermined.ai/docs/api-reference/x402/settle-permission#webpage\"},\"dateModified\":\"2026-07-29T15:48:33.922Z\",\"publisher\":{\"@id\":\"https://nevermined.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://nevermined.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Nevermined Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Nevermined Documentation","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/getting-started/overview"}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/catalog-mcp/overview"}]},{"tab":"API","groups":[{"group":"Overview","pages":[{"title":"Pre-requisites","icon":"key","href":"/api-reference/introduction"},{"title":"API Versioning","icon":"code-branch","href":"/development-guide/api-versioning"},{"title":"API error model","icon":"circle-exclamation","href":"/development-guide/api-errors/overview"},{"title":"API error codes","href":"/development-guide/api-errors/codes"}]},{"group":"Agents","pages":[{"title":"Register Agent","openapi":"POST /protocol/agents","href":"/api-reference/protocol/register-agent"},{"title":"List Agents","openapi":"GET /protocol/agents","href":"/api-reference/protocol/list-agents"},{"title":"Get Agent","openapi":"GET /protocol/agents/{agentId}","href":"/api-reference/protocol/get-agent"},{"title":"Update Agent","openapi":"PUT /protocol/agents/{agentId}","href":"/api-reference/protocol/update-agent"},{"title":"Register Agent and Plan","openapi":"POST /protocol/agents/plans","href":"/api-reference/protocol/register-agent-and-plan"},{"title":"Activate/Deactivate Agent","openapi":"PUT /protocol/agents/{agentId}/list/{activate}","href":"/api-reference/protocol/toggle-agent-listing"},{"title":"Add Plan to Agent","openapi":"POST /protocol/agents/{agentId}/plan/{planId}","href":"/api-reference/protocol/add-plan-to-agent"},{"title":"Remove Plan from Agent","openapi":"DELETE /protocol/agents/{agentId}/plan/{planId}","href":"/api-reference/protocol/remove-plan-from-agent"},{"title":"Get Agent Plans","openapi":"GET /protocol/agents/{agentId}/plans","href":"/api-reference/protocol/get-agent-plans"}]},{"group":"Plans","pages":[{"title":"Register Plan","openapi":"POST /protocol/plans","href":"/api-reference/protocol/register-plan"},{"title":"List Plans","openapi":"GET /protocol/plans","href":"/api-reference/protocol/list-plans"},{"title":"Get Plan","openapi":"GET /protocol/plans/{planId}","href":"/api-reference/protocol/get-plan"},{"title":"Update Plan","openapi":"PUT /protocol/plans/{planId}","href":"/api-reference/protocol/update-plan"},{"title":"Activate/Deactivate Plan","openapi":"PUT /protocol/plans/{planId}/list/{activate}","href":"/api-reference/protocol/toggle-plan-listing"},{"title":"Order Plan","openapi":"POST /protocol/plans/{planId}/order","href":"/api-reference/protocol/order-plan"},{"title":"Get Plan Balance","openapi":"GET /protocol/plans/{planId}/balance/{holderAddress}","href":"/api-reference/protocol/get-plan-balance"},{"title":"Get Plan Agents","openapi":"GET /protocol/plans/{planId}/agents","href":"/api-reference/protocol/get-plan-agents"}]},{"group":"Access","pages":[{"title":"Get Access Token","openapi":"GET /protocol/token/{planId}/{agentId}","href":"/api-reference/protocol/get-access-token"},{"title":"Initialize Agent Request","openapi":"POST /protocol/agents/initialize/{agentId}","href":"/api-reference/protocol/initialize-agent-request"},{"title":"Track Agent Sub Task","openapi":"POST /protocol/agent-sub-tasks","href":"/api-reference/protocol/track-agent-sub-task"}]},{"group":"x402","pages":[{"title":"Verify","openapi":"POST /x402/verify","description":"Validates a delegated permission before processing a request.","href":"/api-reference/x402/verify-permission"},{"title":"Settle","openapi":"POST /x402/settle","href":"/api-reference/x402/settle-permission"},{"title":"Create Permission","openapi":"POST /x402/permissions","description":"Creates a delegated permission and generates an x402 access token.","href":"/api-reference/x402/create-permission"},{"title":"List Permissions","openapi":"GET /x402/permissions","href":"/api-reference/x402/list-permissions"},{"title":"Get Permission","openapi":"GET /x402/permissions/{permissionHash}","href":"/api-reference/x402/get-permission"},{"title":"Revoke Permission","openapi":"DELETE /x402/permissions/{permissionHash}","href":"/api-reference/x402/revoke-permission"}]},{"group":"Credits","pages":[{"title":"Mint Credits","openapi":"POST /protocol/plans/mint","href":"/api-reference/protocol/mint-credits"},{"title":"Mint Expirable Credits","openapi":"POST /protocol/plans/mintExpirable","href":"/api-reference/protocol/mint-expirable-credits"},{"title":"Redeem Credits","openapi":"POST /protocol/plans/redeem","href":"/api-reference/protocol/redeem-credits"}]},{"group":"Delegation","pages":[{"title":"Create Delegation","openapi":"POST /delegation/create","href":"/api-reference/delegation/create-delegation"},{"title":"List Delegations","openapi":"GET /delegation","href":"/api-reference/delegation/list-delegations"},{"title":"Get Delegation","openapi":"GET /delegation/{delegationId}","href":"/api-reference/delegation/get-delegation"},{"title":"Revoke Delegation","openapi":"DELETE /delegation/{delegationId}","href":"/api-reference/delegation/revoke-delegation"},{"title":"List Delegation Transactions","openapi":"GET /delegation/{delegationId}/transactions","href":"/api-reference/delegation/list-delegation-transactions"}]},{"group":"Router","pages":[{"title":"Mint Payment Credential","openapi":"POST /router/payments","href":"/api-reference/router/mint-payment-credential"},{"title":"Route and Pay a Request","openapi":"POST /router/route","href":"/api-reference/router/route-request"},{"title":"Route and Pay from a Commerce Grant","openapi":"POST /router/commerce/route","href":"/api-reference/router/commerce-route"},{"title":"Quote a Request Before Paying","openapi":"POST /router/quote","href":"/api-reference/router/quote"},{"title":"Quote from a Commerce Grant","openapi":"POST /router/commerce/quote","href":"/api-reference/router/commerce-quote"},{"title":"Call a Service with Subscription Credits","openapi":"POST /router/subscription/route","href":"/api-reference/router/subscription-route"},{"title":"Quote a Call in Subscription Credits","openapi":"POST /router/subscription/quote","href":"/api-reference/router/subscription-quote"},{"title":"Read Your Subscription Credits","openapi":"GET /router/subscription/balance","href":"/api-reference/router/subscription-balance"},{"title":"Read Your Credits","openapi":"GET /credits/balance","href":"/api-reference/router/credits-balance"},{"title":"Read the Welcome Credits Offer","openapi":"GET /credits/welcome/offer","href":"/api-reference/router/welcome-credits-offer"},{"title":"Report Settlement","openapi":"POST /router/payments/{id}/settled","href":"/api-reference/router/report-settlement"},{"title":"List Payments","openapi":"GET /router/payments","href":"/api-reference/router/list-payments"},{"title":"Payments Summary","openapi":"GET /router/payments/summary","href":"/api-reference/router/payments-summary"}]},{"group":"Payment Methods","pages":[{"title":"List Payment Methods","openapi":"GET /payment-methods","href":"/api-reference/payment-methods/list-payment-methods"},{"title":"Update Payment Method","openapi":"PATCH /payment-methods/{paymentMethodId}","href":"/api-reference/payment-methods/update-payment-method"},{"title":"Revoke Payment Method","openapi":"DELETE /payment-methods/{paymentMethodId}","href":"/api-reference/payment-methods/revoke-payment-method"}]},{"group":"Organizations","pages":[{"group":"General","pages":[{"title":"Provision an account for the organization (member or customer)","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/account","href":"/api-reference/organizations/provision-an-account-for-the-organization-member-or-customer"},{"title":"Update organization details","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json put /organizations","href":"/api-reference/organizations/update-organization-details"},{"title":"Get the organization info for a user","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/user-info/{userId}","href":"/api-reference/organizations/get-the-organization-info-for-a-user"},{"title":"Search the members of an organization","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/members","href":"/api-reference/organizations/search-the-members-of-an-organization"},{"title":"List the authenticated user's active org memberships","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/my-memberships","href":"/api-reference/organizations/list-the-authenticated-users-active-org-memberships"},{"title":"Validate that the user may use an org as their workspace context","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/validate","href":"/api-reference/organizations/validate-that-the-user-may-use-an-org-as-their-workspace-context"},{"title":"Remove an organization member","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json delete /organizations/{orgId}/members/{memberId}","href":"/api-reference/organizations/remove-an-organization-member"},{"title":"Change an organization member role","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json patch /organizations/{orgId}/members/{memberId}","href":"/api-reference/organizations/change-an-organization-member-role"},{"title":"Deactivate an organization member","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/members/{memberId}/deactivate","href":"/api-reference/organizations/deactivate-an-organization-member"},{"title":"Reactivate an organization member","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/members/{memberId}/reactivate","href":"/api-reference/organizations/reactivate-an-organization-member"}]},{"group":"Activity","pages":[{"title":"List organization activity events","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/activity","href":"/api-reference/organizations--activity/list-organization-activity-events"}]},{"group":"Analytics","pages":[{"title":"Get revenue breakdown by agent","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/analytics/revenue","href":"/api-reference/organizations--analytics/get-revenue-breakdown-by-agent"},{"title":"Get monthly recurring revenue","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/analytics/mrr","href":"/api-reference/organizations--analytics/get-monthly-recurring-revenue"},{"title":"Get plan consumption","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/analytics/usage","href":"/api-reference/organizations--analytics/get-plan-consumption"},{"title":"Get top customers by spend","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/analytics/customers","href":"/api-reference/organizations--analytics/get-top-customers-by-spend"},{"title":"Get conversion funnel metrics","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/analytics/conversion","href":"/api-reference/organizations--analytics/get-conversion-funnel-metrics"},{"title":"Get per-member credit-burn attribution","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/analytics/credits-by-member","href":"/api-reference/organizations--analytics/get-per-member-credit-burn-attribution"},{"title":"Get a group's Router-rail (crypto) spend","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/analytics/groups/{groupId}/router-spend","href":"/api-reference/organizations--analytics/get-a-groups-router-rail-crypto-spend"}]},{"group":"Billing","pages":[{"title":"Effective tier, caps and feature flags for this org","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/billing/entitlements","href":"/api-reference/organizations--billing/effective-tier-caps-and-feature-flags-for-this-org"},{"title":"Current tier subscription for this org (or null)","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/billing/subscription","href":"/api-reference/organizations--billing/current-tier-subscription-for-this-org-or-null"},{"title":"List Stripe invoices for the org tier subscription","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/billing/invoices","href":"/api-reference/organizations--billing/list-stripe-invoices-for-the-org-tier-subscription"},{"title":"Cancel the org tier subscription at period end","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/billing/cancel","href":"/api-reference/organizations--billing/cancel-the-org-tier-subscription-at-period-end"},{"title":"Downgrade an Enterprise org to Premium without resubscribing","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/billing/downgrade","href":"/api-reference/organizations--billing/downgrade-an-enterprise-org-to-premium-without-resubscribing"},{"title":"Upgrade a Premium org to Enterprise without resubscribing","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/billing/upgrade","href":"/api-reference/organizations--billing/upgrade-a-premium-org-to-enterprise-without-resubscribing"},{"title":"Create a tier-plan Stripe checkout","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/billing/checkout","href":"/api-reference/organizations--billing/create-a-tier-plan-stripe-checkout"},{"title":"List the active hybrid-tier catalog","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/billing/catalog","href":"/api-reference/organizations--billing/list-the-active-hybrid-tier-catalog"}]},{"group":"Customers","pages":[{"title":"List organization customers","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/customers","href":"/api-reference/organizations--customers/list-organization-customers"},{"title":"Org-wide customer aggregations","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/customers/aggregations","href":"/api-reference/organizations--customers/org-wide-customer-aggregations"},{"title":"Export organization customers as CSV","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/customers/export","href":"/api-reference/organizations--customers/export-organization-customers-as-csv"},{"title":"Get an organization customer","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/customers/{customerId}","href":"/api-reference/organizations--customers/get-an-organization-customer"},{"title":"Per-customer aggregations + drill-down series","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/customers/{customerId}/aggregations","href":"/api-reference/organizations--customers/per-customer-aggregations-+-drill-down-series"},{"title":"Per-customer purchase history","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/customers/{customerId}/purchases","href":"/api-reference/organizations--customers/per-customer-purchase-history"},{"title":"Block an organization customer","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/customers/{customerId}/block","href":"/api-reference/organizations--customers/block-an-organization-customer"},{"title":"Unblock an organization customer","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/customers/{customerId}/unblock","href":"/api-reference/organizations--customers/unblock-an-organization-customer"}]},{"group":"Groups \u0026 Budgets","pages":[{"title":"List a group's budgets (one per currency)","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/groups/{groupId}/budgets","href":"/api-reference/groups/list-a-groups-budgets-one-per-currency"},{"title":"Create a per-currency budget for a group","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/groups/{groupId}/budgets","href":"/api-reference/groups/create-a-per-currency-budget-for-a-group"},{"title":"Read a budget's usage for the current period","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/groups/{groupId}/budgets/{budgetId}/usage","href":"/api-reference/groups/read-a-budgets-usage-for-the-current-period"},{"title":"Read one budget by id","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/groups/{groupId}/budgets/{budgetId}","href":"/api-reference/groups/read-one-budget-by-id"},{"title":"Remove one budget by id","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json delete /organizations/{orgId}/groups/{groupId}/budgets/{budgetId}","href":"/api-reference/groups/remove-one-budget-by-id"},{"title":"Update a budget's limit / interval / alert threshold","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json patch /organizations/{orgId}/groups/{groupId}/budgets/{budgetId}","href":"/api-reference/groups/update-a-budgets-limit-interval-alert-threshold"},{"title":"List a group's shared payment methods","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/groups/{groupId}/payment-methods","href":"/api-reference/groups/list-a-groups-shared-payment-methods"},{"title":"Share an enrolled card with a group as a payment method","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/groups/{groupId}/payment-methods","href":"/api-reference/groups/share-an-enrolled-card-with-a-group-as-a-payment-method"},{"title":"Remove a payment method from a group (reverts it to personal)","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json delete /organizations/{orgId}/groups/{groupId}/payment-methods/{id}","href":"/api-reference/groups/remove-a-payment-method-from-a-group-reverts-it-to-personal"},{"title":"List the organization's groups","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/groups","href":"/api-reference/groups/list-the-organizations-groups"},{"title":"Create an organization group","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/groups","href":"/api-reference/groups/create-an-organization-group"},{"title":"Get a group and its members","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/groups/{groupId}","href":"/api-reference/groups/get-a-group-and-its-members"},{"title":"Deactivate a group (soft delete)","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json delete /organizations/{orgId}/groups/{groupId}","href":"/api-reference/groups/deactivate-a-group-soft-delete"},{"title":"Rename or re-describe a group","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json patch /organizations/{orgId}/groups/{groupId}","href":"/api-reference/groups/rename-or-re-describe-a-group"},{"title":"Add an organization member to a group","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/groups/{groupId}/members","href":"/api-reference/groups/add-an-organization-member-to-a-group"},{"title":"Remove a member from a group","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json delete /organizations/{orgId}/groups/{groupId}/members/{memberId}","href":"/api-reference/groups/remove-a-member-from-a-group"}]},{"group":"Agent Discovery","pages":[{"title":"Public llms.txt index for an organization","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/llms.txt","href":"/api-reference/organizations--integration/public-llmstxt-index-for-an-organization"},{"title":"Public agentic instructions for an organization","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/agentic-instructions.md","href":"/api-reference/organizations--integration/public-agentic-instructions-for-an-organization"},{"title":"Public ARD ai-catalog.json for an organization","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/ai-catalog.json","href":"/api-reference/organizations--integration/public-ard-ai-catalogjson-for-an-organization"}]},{"group":"Invitations","pages":[{"title":"List organization invitations","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/invitations","href":"/api-reference/invitations/list-organization-invitations"},{"title":"Invite a teammate by email","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/invitations","href":"/api-reference/invitations/invite-a-teammate-by-email"},{"title":"Revoke an invitation","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/invitations/{id}/revoke","href":"/api-reference/invitations/revoke-an-invitation"},{"title":"Get public info for a pending invitation by token","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/invitations/{token}","href":"/api-reference/invitations/get-public-info-for-a-pending-invitation-by-token"},{"title":"Accept an organization invitation","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/invitations/{token}/accept","href":"/api-reference/invitations/accept-an-organization-invitation"}]},{"group":"Realtime","pages":[{"title":"List the caller's own WebSocket secrets","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/realtime/secrets","href":"/api-reference/organizations--realtime/list-the-callers-own-websocket-secrets"},{"title":"Generate a WebSocket secret","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/realtime/secrets","href":"/api-reference/organizations--realtime/generate-a-websocket-secret"},{"title":"Rotate a WebSocket secret","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/realtime/secrets/{id}/rotate","href":"/api-reference/organizations--realtime/rotate-a-websocket-secret"},{"title":"Revoke a WebSocket secret","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json delete /organizations/{orgId}/realtime/secrets/{id}","href":"/api-reference/organizations--realtime/revoke-a-websocket-secret"}]},{"group":"Wallets","pages":[{"title":"List an org's active stablecoin wallets","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/wallets","href":"/api-reference/organizations--wallets/list-an-orgs-active-stablecoin-wallets"},{"title":"Create an organization stablecoin wallet","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/wallets","href":"/api-reference/organizations--wallets/create-an-organization-stablecoin-wallet"},{"title":"Read one organization wallet by id","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/wallets/{id}","href":"/api-reference/organizations--wallets/read-one-organization-wallet-by-id"},{"title":"Revoke (soft-delete) an organization wallet","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json delete /organizations/{orgId}/wallets/{id}","href":"/api-reference/organizations--wallets/revoke-soft-delete-an-organization-wallet"},{"title":"Rename an organization wallet","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json patch /organizations/{orgId}/wallets/{id}","href":"/api-reference/organizations--wallets/rename-an-organization-wallet"},{"title":"Read a wallet's USDC + EURC balances on the deployment's chain","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/wallets/{id}/balances","href":"/api-reference/organizations--wallets/read-a-wallets-usdc-+-eurc-balances-on-the-deployments-chain"},{"title":"Withdraw stablecoins from an org wallet to a nominated address","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/wallets/{id}/withdraw","href":"/api-reference/organizations--wallets/withdraw-stablecoins-from-an-org-wallet-to-a-nominated-address"},{"title":"Share an org wallet with a group (so it funds the group budget)","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/wallets/{id}/groups/{groupId}","href":"/api-reference/organizations--wallets/share-an-org-wallet-with-a-group-so-it-funds-the-group-budget"},{"title":"Stop a group from drawing on a wallet","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json delete /organizations/{orgId}/wallets/{id}/groups/{groupId}","href":"/api-reference/organizations--wallets/stop-a-group-from-drawing-on-a-wallet"},{"title":"List the org wallets shared with a group (fund its budgets)","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/groups/{groupId}/wallets","href":"/api-reference/organizations--wallets/list-the-org-wallets-shared-with-a-group-fund-its-budgets"},{"title":"List the groups a wallet is shared with","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/wallets/{id}/groups","href":"/api-reference/organizations--wallets/list-the-groups-a-wallet-is-shared-with"}]},{"group":"Webhooks","pages":[{"title":"List webhook subscriptions","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/webhooks","href":"/api-reference/organizations--webhooks/list-webhook-subscriptions"},{"title":"Create a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/webhooks","href":"/api-reference/organizations--webhooks/create-a-webhook-subscription"},{"title":"Get a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/webhooks/{id}","href":"/api-reference/organizations--webhooks/get-a-webhook-subscription"},{"title":"Delete a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json delete /organizations/{orgId}/webhooks/{id}","href":"/api-reference/organizations--webhooks/delete-a-webhook-subscription"},{"title":"Update a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json patch /organizations/{orgId}/webhooks/{id}","href":"/api-reference/organizations--webhooks/update-a-webhook-subscription"},{"title":"Rotate a webhook signing secret","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/webhooks/{id}/rotate-secret","href":"/api-reference/organizations--webhooks/rotate-a-webhook-signing-secret"},{"title":"List deliveries for a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/webhooks/{subscriptionId}/deliveries","href":"/api-reference/organizations--webhooks/list-deliveries-for-a-webhook-subscription"},{"title":"Get a webhook delivery record","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json get /organizations/{orgId}/webhooks/deliveries/{deliveryId}","href":"/api-reference/organizations--webhooks/get-a-webhook-delivery-record"},{"title":"Retry a webhook delivery","deprecated":null,"version":null,"openapi":"/api-reference/organizations-openapi.json post /organizations/{orgId}/webhooks/deliveries/{deliveryId}/retry","href":"/api-reference/organizations--webhooks/retry-a-webhook-delivery"}]}]},{"group":"Authentication","pages":[{"group":"Ceremony","pages":[{"title":"Generate an OAuth 2.1 authorization code","deprecated":null,"version":null,"openapi":"/api-reference/oauth-openapi.json post /oauth/authorize","href":"/api-reference/authentication--ceremony/generate-an-oauth-21-authorization-code"},{"title":"Exchange a code, device_code, or refresh_token for a credential","deprecated":null,"version":null,"openapi":"/api-reference/oauth-openapi.json post /oauth/token","href":"/api-reference/authentication--ceremony/exchange-a-code-device_code-or-refresh_token-for-a-credential"},{"title":"RFC 8628 device authorization request","deprecated":null,"version":null,"openapi":"/api-reference/oauth-openapi.json post /oauth/device_authorization","href":"/api-reference/authentication--ceremony/rfc-8628-device-authorization-request"},{"title":"Approve or deny a device authorization","deprecated":null,"version":null,"openapi":"/api-reference/oauth-openapi.json post /oauth/device","href":"/api-reference/authentication--ceremony/approve-or-deny-a-device-authorization"},{"title":"Resolve a user_code to its verification-page details","deprecated":null,"version":null,"openapi":"/api-reference/oauth-openapi.json post /oauth/device/details","href":"/api-reference/authentication--ceremony/resolve-a-user_code-to-its-verification-page-details"},{"title":"Resolve a connect client_id to its display name + eligibility","deprecated":null,"version":null,"openapi":"/api-reference/oauth-openapi.json post /oauth/connect/details","href":"/api-reference/authentication--ceremony/resolve-a-connect-client_id-to-its-display-name-+-eligibility"}]},{"group":"Connections","pages":[{"title":"Revoke a credential (RFC 7009)","deprecated":null,"version":null,"openapi":"/api-reference/oauth-openapi.json post /oauth/revoke","href":"/api-reference/authentication--connections/revoke-a-credential-rfc-7009"},{"title":"List connected agents (AgentBindings) for the signed-in user","deprecated":null,"version":null,"openapi":"/api-reference/oauth-openapi.json get /oauth/bindings","href":"/api-reference/authentication--connections/list-connected-agents-agentbindings-for-the-signed-in-user"},{"title":"Revoke an AgentBinding by id","deprecated":null,"version":null,"openapi":"/api-reference/oauth-openapi.json post /oauth/bindings/{id}/revoke","href":"/api-reference/authentication--connections/revoke-an-agentbinding-by-id"}]},{"group":"Discovery","pages":[{"title":"Authorization Server Metadata (RFC 8414)","deprecated":null,"version":null,"openapi":"/api-reference/oauth-openapi.json get /.well-known/oauth-authorization-server","href":"/api-reference/authentication--discovery/authorization-server-metadata-rfc-8414"},{"title":"Protected Resource Metadata (RFC 9728)","deprecated":null,"version":null,"openapi":"/api-reference/oauth-openapi.json get /.well-known/oauth-protected-resource","href":"/api-reference/authentication--discovery/protected-resource-metadata-rfc-9728"},{"title":"JSON Web Key Set (ES256K / secp256k1)","deprecated":null,"version":null,"openapi":"/api-reference/oauth-openapi.json get /.well-known/jwks.json","href":"/api-reference/authentication--discovery/json-web-key-set-es256k-secp256k1"}]}]}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/api-reference/typescript/installation"}]}]},"basePath":"","title":"Settle - Nevermined Documentation","buildId":"dpl_4RHMRqtvdHvKgaEfTTjFqjzja3B6","deploymentId":"dpl_4RHMRqtvdHvKgaEfTTjFqjzja3B6","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-D_4Sesi0.js","utils-DRHeK26p.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C6d-DUc2.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dex7slho.js","snippetPresets-BcCEBp0Z.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CufowNTX.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-A4lJSCIe.js","shallow-DqoHP7zn.js","getApiPlaygroundDisplay-Cku8AmtL.js","CodeSnippet-CtHQbNqc.js","CodeSnippets-CGo5Cslf.js","Page-BoJxk0m8.js","getPastedJson-M-bKdue4.js","icon-DEqCU4st.js","MethodPill-DnfSSXiJ.js","DuplicateIcon-BHu2PE8M.js","createIcon-BPsE5X7c.js","DynamicMarkdown-Dnt6YhtR.js","SectionHeading-6CtFWqMQ.js","axios-vUo_bRtp.js","Markdown-BoKe_1fI.js","clsx-DM5-sUNJ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CkIdkovK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-B3e6Nh_r.js"]}