Asks the business to approve one purchase on a card the agent can use. Send a business owner to the returned approval_url, then wait for status to become approved before claiming.
Requires an agent secret key with spend:write and access to the card. A platform’s agent selects the connected business with Ionic-Account. Set action to payment and use a positive amount.
Store the Idempotency-Key before you send the request so a retry can’t create a second purchase request. A request that breaks a blocking spending limit fails with 422 limit_exceeded and is saved with status: "blocked".
Backend secret key for hosted setup; Agent secret key for card inventory and every spending-request operation. A delegated request also selects the authorized business through Ionic-Account. Machine keys cannot approve requests.
Headers
Ionic-Account
string
Required for delegated Connect requests; omit for direct business requests. Selector is not authorization.
Pattern: ^mer_[A-Za-z0-9]{14}$
Idempotency-Key
string
required
Stable opaque key. Same body/key retries only. Claim key is bound permanently to the intent issuance; no second key can remint.
Required string length: 16 - 255
Pattern: ^[\x21-\x7e]+$
Body
application/json
Option 1
Option 2
Supply allowed_hosts to request exact card-reveal destinations without seller pre-registration. The business approves these hosts; they are immutable and included in create idempotency. allowed_hosts is required; omitted, null and empty lists are invalid. There is no seller-registry fallback. Caller-selected hosts require CVC at approval and remain test-only. Hosts do not certify merchant legitimacy or enforce merchant account, amount or single use. Redirects never authorize another reveal host. save_card and replace_card remain action_not_enabled. Caller never supplies account, Agent, mode, proxy credentials or approval.
action
enum<string>
required
Available options:
payment
amount
integer
required
Required range: 1 <= x <= 9007199254740991
card_id
string
required
Pattern: ^spcard_[A-Za-z0-9]{14}$
purpose
string
required
Required string length: 1 - 1000
Pattern: .*\S.*
seller
object
required
Show child attributes
currency
string
required
Pattern: ^[a-z]{3}$
billing_details
object
required
Show child attributes
allowed_hosts
string[]
required
Exact plaintext reveal destinations. Supply 1-20 distinct lowercase public DNS hosts on create to avoid seller pre-registration. Null, empty, wildcard, URL, port, path, IP and local/internal names are rejected. The actual hosts are customer-approved and immutable; redirects do not expand them. Not a whole-browser network allowlist, merchant-legitimacy check, or merchant-account/amount constraint.
Seconds after approved_at within which the first claim must complete. Resolved and frozen at creation, shown during approval, and returned on the intent. Does not extend credential TTL. The supported range is 1-300 seconds; a larger valid duration returns HTTP 422 claim_window_unsupported before intent creation. Null and out-of-range values are invalid.
Required range: 1 <= x <= 86400
return_url
string
Optional. Where the Ionic approval page returns the owner after they decide, with spend_intent={id} added. Only a platform's delegated Agent can send it; the origin must be one of the platform's approved origins in this mode (HTTPS; test mode also allows HTTP localhost with a port). No userinfo or fragment. The redirect is not proof of the decision: read the intent or use spend_intent.updated.
Required string length: 10 - 2048
Response
Returned when you retry with the same Idempotency-Key. The body is the existing object.
Credential/approval state, never merchant payment status. Unknown issuance preserves credential_exposure=possible even after cancellation. Null credential_expires_at means no verified expiry is known, not that exposure ended.
id
string
required
Pattern: ^spi_[A-Za-z0-9]{14}$
object
enum<string>
required
Available options:
spend_intent
account_id
string
required
Pattern: ^mer_[A-Za-z0-9]{14}$
agent_id
string
required
Pattern: ^agt_[A-Za-z0-9]{14}$
livemode
boolean
required
version
integer
required
Required range: x >= 1
action
enum<string>
required
Available options:
payment,
save_card,
replace_card
card_id
string
required
Pattern: ^spcard_[A-Za-z0-9]{14}$
purpose
string
required
Required string length: 1 - 1000
Pattern: .*\S.*
seller
object
required
Show child attributes
amount
integer
required
Required range: 0 <= x <= 9007199254740991
currency
string
required
Pattern: ^[a-z]{3}$
billing_details
object
required
Show child attributes
reference
string | null
required
Required string length: 1 - 200
Pattern: .*\S.*
status
enum<string>
required
Available options:
pending_approval,
approved,
declined,
claimed,
expired,
canceled,
issuance_unknown,
blocked
allowed_hosts
string[]
required
Exact plaintext reveal destinations. Supply 1-20 distinct lowercase public DNS hosts on create to avoid seller pre-registration. Null, empty, wildcard, URL, port, path, IP and local/internal names are rejected. The actual hosts are customer-approved and immutable; redirects do not expand them. Not a whole-browser network allowlist, merchant-legitimacy check, or merchant-account/amount constraint.
Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.
Where a platform's Agent asked the owner be returned after deciding: an absolute URL on one of the platform's approved origins, or null. The Ionic approval page sends the owner there with spend_intent={id}; the redirect is not proof of the decision, so read the intent. Only a platform's delegated Agent can set it.
Required string length: 10 - 2048
created
integer<int64>
required
Unix epoch seconds. Equality with a deadline is expired.
Required range: x >= 0
approval_expires_at
integer<int64>
required
Server-selected deadline for the owner to approve a pending intent, in Unix seconds. This deadline does not shorten a claim window that starts after approval.
Required range: x >= 0
approved_at
integer<int64> | null
required
Unix epoch seconds. Equality with a deadline is expired.
Required range: x >= 0
claimed_at
integer<int64> | null
required
Unix epoch seconds. Equality with a deadline is expired.
Required range: x >= 0
canceled_at
integer<int64> | null
required
Unix epoch seconds. Equality with a deadline is expired.
Required range: x >= 0
claim_expires_at
integer<int64> | null
required
approved_at + claim_within_seconds, in Unix seconds; null before approval. Preserve the original deadline in later states. It is independent of the pending-approval deadline; same-key recovery after this deadline remains subject to original credential expiry and current authority.
Required range: x >= 0
credential_expires_at
integer<int64> | null
required
Unix epoch seconds. Equality with a deadline is expired.
Required range: x >= 0
claim_replay_available
boolean
required
credential_exposure
enum<string>
required
Available options:
none,
possible,
issued
claim_within_seconds
integer
default:300
required
Seconds after approved_at within which the first claim must complete. Resolved and frozen at creation, shown during approval, and returned on the intent. Does not extend credential TTL. The supported range is 1-300 seconds; a larger valid duration returns HTTP 422 claim_window_unsupported before intent creation. Null and out-of-range values are invalid.
Required range: 1 <= x <= 86400
approvals
object[]
required
Every required human approval, in decision order. The card owner's approval (business, or owner for a direct Agent) is always present and decides last, except on a blocked request (decision 0110), which no one can decide: there the list is empty.
Maximum array length: 3
Show child attributes
limit_breaches
object[]
required
Limits exceeded when evaluated; empty when within every limit. Budgets cap approvals, not merchant charges.
Maximum array length: 30
Show child attributes
blocked_at
integer<int64> | null
required
When a blocking limit rule ended the request, in Unix seconds: at creation or at the final approval (decision 0110). Null on every other status.
Required range: x >= 0
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ionic Docs","colors":{"primary":"#111111","light":"#FFFFFF","dark":"#111111"},"logo":{"light":"https://mintcdn.com/engine-3f2795e6/micsmh5TxT8586Ns/logo/ionic-logo.png?fit=max\u0026auto=format\u0026n=micsmh5TxT8586Ns\u0026q=85\u0026s=be759cb8138247726a7138846473093e","dark":"https://mintcdn.com/engine-3f2795e6/RrBg14p3uVYf6tF5/logo/ionic-logo-dark.png?fit=max\u0026auto=format\u0026n=RrBg14p3uVYf6tF5\u0026q=85\u0026s=8428ad2a7a4ebb0c5b416bb1171279ee","href":"https://ionicfi.com"},"favicon":"https://mintcdn.com/engine-3f2795e6/micsmh5TxT8586Ns/favicon.png?fit=max\u0026auto=format\u0026n=micsmh5TxT8586Ns\u0026q=85\u0026s=44ae686a55c5492ae344b7ebec9fbd4b","appearance":{"default":"light"},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://app.ionicfi.com"}},"footer":{"links":[{"header":"Legal","items":[{"label":"Terms of Service","href":"https://ionicfi.com/legal/terms-of-service"},{"label":"Privacy Policy","href":"https://ionicfi.com/legal/privacy-policy"}]}]},"contextual":{"options":["copy","view","chatgpt","claude","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"engine-3f2795e6","hasAudioNarration":false,"actualSubdomain":"engine-3f2795e6","customDomains":["docs.ionicfi.com"],"gitSource":{"type":"github","owner":"arezj","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6afac750e7db7ac255ac55e3","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"API reference","count":187},{"language":"default","tag":"Guides","count":77},{"language":"default","tag":"Payments","count":56},{"language":"default","tag":"Products","count":54},{"language":"default","tag":"Billing","count":45},{"language":"default","tag":"In-person payments","count":30},{"language":"default","tag":"Agents","count":27},{"language":"default","tag":"Connect","count":27},{"language":"default","tag":"Customers and catalog","count":19},{"language":"default","tag":"Invoices","count":17}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":":root{--rounded: 0px;--rounded-sm: 0px;--rounded-md: 0px;--rounded-lg: 0px;--rounded-xl: 0px;--rounded-2xl: 0px;--rounded-3xl: 0px;--radius: 0px}[class*=\"rounded\"],[data-component-part*=\"card\"],[data-component-part*=\"code-block\"],[data-component-part*=\"tabs\"],[data-component-part*=\"badge\"],[data-component-part*=\"callout\"],button,input,textarea,select,kbd,:not(pre)>code{border-radius:0!important}#api-playground-2-operation-page .tryit-button{min-height:2.5rem!important}#api-playground-2-operation-page div:has(>.tryit-button)>.relative.flex-1.border-standard{border:0!important;background:transparent!important}.ionic-playground-frame{display:block;width:100%;height:calc(100dvh - 7.5rem - var(--banner-height, 0px));border:0}@media (min-width: 1024px){.ionic-playground-frame{height:calc(100dvh - 7rem - var(--banner-height, 0px))}}#navbar a:has(>.nav-logo){display:inline-flex;align-items:center;gap:0;margin-left:-0.75rem}#navbar .nav-logo{width:2.75rem;height:2.75rem;max-height:none}#navbar a:has(>.nav-logo)::after{content:\"Ionic\";font-size:1.25rem;font-weight:600;letter-spacing:-0.02em;line-height:1;color:#111111}.dark #navbar a:has(>.nav-logo)::after{color:#ffffff}"}]}
{"page":{"pagePath":"api-reference/create-a-spend-intent","slug":"/api-reference/create-a-spend-intent","pageMetadata":{"title":"Create a spend intent","description":"Asks the business to approve one purchase on a card the agent can use. Send a business owner to the returned `approval_url`, then wait for `status` to become `approved` before claiming.\n\nRequires an agent secret key with `spend:write` and access to the card. A platform's agent selects the connected business with `Ionic-Account`. Set `action` to `payment` and use a positive `amount`.\n\nStore the `Idempotency-Key` before you send the request so a retry can't create a second purchase request. A request that breaks a blocking spending limit fails with `422 limit_exceeded` and is saved with `status: \"blocked\"`.","deprecated":null,"version":null,"openapi":"/openapi/spend.json post /v1/spend_intents","href":"/api-reference/create-a-spend-intent","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Asks the business to approve one purchase on a card the agent can use. Send a business owner to the returned \", _jsx(_components.code, {\n children: \"approval_url\"\n }), \", then wait for \", _jsx(_components.code, {\n children: \"status\"\n }), \" to become \", _jsx(_components.code, {\n children: \"approved\"\n }), \" before claiming.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Requires an agent secret key with \", _jsx(_components.code, {\n children: \"spend:write\"\n }), \" and access to the card. A platform’s agent selects the connected business with \", _jsx(_components.code, {\n children: \"Ionic-Account\"\n }), \". Set \", _jsx(_components.code, {\n children: \"action\"\n }), \" to \", _jsx(_components.code, {\n children: \"payment\"\n }), \" and use a positive \", _jsx(_components.code, {\n children: \"amount\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Store the \", _jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \" before you send the request so a retry can’t create a second purchase request. A request that breaks a blocking spending limit fails with \", _jsx(_components.code, {\n children: \"422 limit_exceeded\"\n }), \" and is saved with \", _jsx(_components.code, {\n children: \"status: \\\"blocked\\\"\"\n }), \".\"]\n })]\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":"Create a spend intent","description":"Asks the business to approve one purchase on a card the agent can use. Send a business owner to the returned `approval_url`, then wait for `status` to become `approved` before claiming.\n\nRequires an agent secret key with `spend:write` and access to the card. A platform's agent selects the connected business with `Ionic-Account`. Set `action` to `payment` and use a positive `amount`.\n\nStore the `Idempotency-Key` before you send the request so a retry can't create a second purchase request. A request that breaks a blocking spending limit fails with `422 limit_exceeded` and is saved with `status: \"blocked\"`.","deprecated":null,"version":null,"openapi":"/openapi/spend.json post /v1/spend_intents","href":"/api-reference/create-a-spend-intent","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/engine-3f2795e6/523561abb9074b9b/playground-theme.js"],"openApiReferenceData":{"operation":{"summary":"Create a spend intent","operationId":"spend_intents_create","parameters":["86fd34f8-4790-4680-94aa-2ab6cea0fea9","91f48dab-0fcd-41b9-a608-e6c7c8ee2cdb"],"responses":{"200":"e921f740-4eb4-4d01-bc3c-eb1213003a4b","201":"2dcfb1e3-7189-413f-a7b5-d27ebf2219fe","400":"c4b3135c-5636-470a-bfbb-b253bafe906f","401":"33eaa6a4-d06b-4cd7-be94-8379175f312b","403":"6a29187e-ac22-4cfd-8f2a-f00c0e202a6a","404":"b96fb8ff-74bd-4447-83be-55cfddf64bdd","409":"38545d41-67a0-4868-8b08-3b7209d3090f","422":"7769b435-dbcd-4ede-b364-cb32d8adfe73","429":"95b3cf64-1310-4d6f-b46c-c9ed9d10e040","503":"9415fcd3-d619-4644-a499-c135a41784ca"},"requestBody":"e48e718c-bba2-416d-960f-815f460d0f02","description":"Asks the business to approve one purchase on a card the agent can use. Send a business owner to the returned `approval_url`, then wait for `status` to become `approved` before claiming.\n\nRequires an agent secret key with `spend:write` and access to the card. A platform's agent selects the connected business with `Ionic-Account`. Set `action` to `payment` and use a positive `amount`.\n\nStore the `Idempotency-Key` before you send the request so a retry can't create a second purchase request. A request that breaks a blocking spending limit fails with `422 limit_exceeded` and is saved with `status: \"blocked\"`.","method":"post","type":"path","servers":["c347acde-849f-4ab0-97a3-c1ba4da25705"],"security":["31cc9f21-4791-4f43-81e4-8b194450933b"],"path":"/v1/spend_intents","baseUrlOptions":["https://api.ionicfi.com"],"title":"Create a spend intent","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"86fd34f8-4790-4680-94aa-2ab6cea0fea9":{"name":"Ionic-Account","in":"header","required":false,"schema":{"type":"string","pattern":"^mer_[A-Za-z0-9]{14}$","isRequired":false,"description":"Required for delegated Connect requests; omit for direct business requests. Selector is not authorization.","uniqueKey":"","typeLabel":"string"},"description":"Required for delegated Connect requests; omit for direct business requests. Selector is not authorization."},"91f48dab-0fcd-41b9-a608-e6c7c8ee2cdb":{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":255,"pattern":"^[\\x21-\\x7e]+$","isRequired":true,"description":"Stable opaque key. Same body/key retries only. Claim key is bound permanently to the intent issuance; no second key can remint.","uniqueKey":"","typeLabel":"string"},"description":"Stable opaque key. Same body/key retries only. Claim key is bound permanently to the intent issuance; no second key can remint."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Supply allowed_hosts to request exact card-reveal destinations without seller pre-registration. The business approves these hosts; they are immutable and included in create idempotency. allowed_hosts is required; omitted, null and empty lists are invalid. There is no seller-registry fallback. Caller-selected hosts require CVC at approval and remain test-only. Hosts do not certify merchant legitimacy or enforce merchant account, amount or single use. Redirects never authorize another reveal host. save_card and replace_card remain action_not_enabled. Caller never supplies account, Agent, mode, proxy credentials or approval.","required":["action","card_id","purpose","seller","amount","currency","billing_details","allowed_hosts"],"properties":{"action":{"type":"string","enum":["payment"],"isRequired":true,"uniqueKey":"oneOf.0.action","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","maximum":9007199254740991,"minimum":1,"isRequired":true,"uniqueKey":"oneOf.0.amount","typeLabel":"integer"},"card_id":{"type":"string","pattern":"^spcard_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"oneOf.0.card_id","typeLabel":"string"},"purpose":{"type":"string","minLength":1,"maxLength":1000,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"oneOf.0.purpose","typeLabel":"string"},"seller":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"oneOf.0.seller.name","typeLabel":"string"},"checkout_url":{"type":"string","minLength":10,"maxLength":2048,"pattern":"^https://[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?:/[^\\s?#]*)?$","description":"Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.","isRequired":true,"uniqueKey":"oneOf.0.seller.checkout_url","typeLabel":"string"}},"required":["name","checkout_url"],"isRequired":true,"uniqueKey":"oneOf.0.seller","typeLabel":"object"},"currency":{"type":"string","pattern":"^[a-z]{3}$","isRequired":true,"uniqueKey":"oneOf.0.currency","typeLabel":"string"},"billing_details":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"oneOf.0.billing_details.name","typeLabel":"string"},"address":{"type":"object","additionalProperties":false,"properties":{"line1":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"oneOf.0.billing_details.address.line1","typeLabel":"string"},"city":{"type":"string","minLength":1,"maxLength":100,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"oneOf.0.billing_details.address.city","typeLabel":"string"},"postal_code":{"type":"string","minLength":1,"maxLength":32,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"oneOf.0.billing_details.address.postal_code","typeLabel":"string"},"country":{"type":"string","pattern":"^[A-Z]{2}$","isRequired":true,"uniqueKey":"oneOf.0.billing_details.address.country","typeLabel":"string"},"line2":{"type":"string","maxLength":200,"uniqueKey":"oneOf.0.billing_details.address.line2","typeLabel":"string"},"state":{"type":"string","maxLength":100,"uniqueKey":"oneOf.0.billing_details.address.state","typeLabel":"string"}},"required":["line1","city","postal_code","country"],"isRequired":true,"uniqueKey":"oneOf.0.billing_details.address","typeLabel":"object"},"email":{"type":"string","format":"email","maxLength":254,"uniqueKey":"oneOf.0.billing_details.email","typeLabel":"string\u003cemail>"}},"required":["name","address"],"isRequired":true,"uniqueKey":"oneOf.0.billing_details","typeLabel":"object"},"allowed_hosts":{"type":"array","minItems":1,"maxItems":20,"uniqueItems":true,"items":{"type":"string","maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)+$","not":{"anyOf":[{"pattern":"^[0-9.]+$"},{"pattern":"\\.(local|internal|localhost)$"}]},"uniqueKey":"oneOf.0.allowed_hosts.items.[INDEX]","typeLabel":"string"},"description":"Exact plaintext reveal destinations. Supply 1-20 distinct lowercase public DNS hosts on create to avoid seller pre-registration. Null, empty, wildcard, URL, port, path, IP and local/internal names are rejected. The actual hosts are customer-approved and immutable; redirects do not expand them. Not a whole-browser network allowlist, merchant-legitimacy check, or merchant-account/amount constraint.","isRequired":true,"uniqueKey":"oneOf.0.allowed_hosts","typeLabel":"string[]"},"reference":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","uniqueKey":"oneOf.0.reference","typeLabel":"string"},"claim_within_seconds":{"type":"integer","minimum":1,"maximum":86400,"default":300,"description":"Seconds after approved_at within which the first claim must complete. Resolved and frozen at creation, shown during approval, and returned on the intent. Does not extend credential TTL. The supported range is 1-300 seconds; a larger valid duration returns HTTP 422 claim_window_unsupported before intent creation. Null and out-of-range values are invalid.","uniqueKey":"oneOf.0.claim_within_seconds","typeLabel":"integer"},"return_url":{"type":"string","minLength":10,"maxLength":2048,"description":"Optional. Where the Ionic approval page returns the owner after they decide, with spend_intent={id} added. Only a platform's delegated Agent can send it; the origin must be one of the platform's approved origins in this mode (HTTPS; test mode also allows HTTP localhost with a port). No userinfo or fragment. The redirect is not proof of the decision: read the intent or use spend_intent.updated.","uniqueKey":"oneOf.0.return_url","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Supply allowed_hosts to request exact card-reveal destinations without seller pre-registration. The business approves these hosts; they are immutable and included in create idempotency. allowed_hosts is required; omitted, null and empty lists are invalid. There is no seller-registry fallback. Caller-selected hosts require CVC at approval and remain test-only. Hosts do not certify merchant legitimacy or enforce merchant account, amount or single use. Redirects never authorize another reveal host. save_card and replace_card remain action_not_enabled. Caller never supplies account, Agent, mode, proxy credentials or approval.","required":["action","card_id","purpose","seller","amount","currency","billing_details","allowed_hosts"],"properties":{"action":{"type":"string","enum":["save_card","replace_card"],"isRequired":true,"uniqueKey":"oneOf.1.action","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","maximum":9007199254740991,"minimum":0,"enum":[0],"isRequired":true,"uniqueKey":"oneOf.1.amount","typeLabel":"enum\u003cinteger>"},"card_id":{"type":"string","pattern":"^spcard_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"oneOf.1.card_id","typeLabel":"string"},"purpose":{"type":"string","minLength":1,"maxLength":1000,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"oneOf.1.purpose","typeLabel":"string"},"seller":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"oneOf.1.seller.name","typeLabel":"string"},"checkout_url":{"type":"string","minLength":10,"maxLength":2048,"pattern":"^https://[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?:/[^\\s?#]*)?$","description":"Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.","isRequired":true,"uniqueKey":"oneOf.1.seller.checkout_url","typeLabel":"string"}},"required":["name","checkout_url"],"isRequired":true,"uniqueKey":"oneOf.1.seller","typeLabel":"object"},"currency":{"type":"string","pattern":"^[a-z]{3}$","isRequired":true,"uniqueKey":"oneOf.1.currency","typeLabel":"string"},"billing_details":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"oneOf.1.billing_details.name","typeLabel":"string"},"address":{"type":"object","additionalProperties":false,"properties":{"line1":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"oneOf.1.billing_details.address.line1","typeLabel":"string"},"city":{"type":"string","minLength":1,"maxLength":100,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"oneOf.1.billing_details.address.city","typeLabel":"string"},"postal_code":{"type":"string","minLength":1,"maxLength":32,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"oneOf.1.billing_details.address.postal_code","typeLabel":"string"},"country":{"type":"string","pattern":"^[A-Z]{2}$","isRequired":true,"uniqueKey":"oneOf.1.billing_details.address.country","typeLabel":"string"},"line2":{"type":"string","maxLength":200,"uniqueKey":"oneOf.1.billing_details.address.line2","typeLabel":"string"},"state":{"type":"string","maxLength":100,"uniqueKey":"oneOf.1.billing_details.address.state","typeLabel":"string"}},"required":["line1","city","postal_code","country"],"isRequired":true,"uniqueKey":"oneOf.1.billing_details.address","typeLabel":"object"},"email":{"type":"string","format":"email","maxLength":254,"uniqueKey":"oneOf.1.billing_details.email","typeLabel":"string\u003cemail>"}},"required":["name","address"],"isRequired":true,"uniqueKey":"oneOf.1.billing_details","typeLabel":"object"},"allowed_hosts":{"type":"array","minItems":1,"maxItems":20,"uniqueItems":true,"items":{"type":"string","maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)+$","not":{"anyOf":[{"pattern":"^[0-9.]+$"},{"pattern":"\\.(local|internal|localhost)$"}]},"uniqueKey":"oneOf.1.allowed_hosts.items.[INDEX]","typeLabel":"string"},"description":"Exact plaintext reveal destinations. Supply 1-20 distinct lowercase public DNS hosts on create to avoid seller pre-registration. Null, empty, wildcard, URL, port, path, IP and local/internal names are rejected. The actual hosts are customer-approved and immutable; redirects do not expand them. Not a whole-browser network allowlist, merchant-legitimacy check, or merchant-account/amount constraint.","isRequired":true,"uniqueKey":"oneOf.1.allowed_hosts","typeLabel":"string[]"},"reference":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","uniqueKey":"oneOf.1.reference","typeLabel":"string"},"claim_within_seconds":{"type":"integer","minimum":1,"maximum":86400,"default":300,"description":"Seconds after approved_at within which the first claim must complete. Resolved and frozen at creation, shown during approval, and returned on the intent. Does not extend credential TTL. The supported range is 1-300 seconds; a larger valid duration returns HTTP 422 claim_window_unsupported before intent creation. Null and out-of-range values are invalid.","uniqueKey":"oneOf.1.claim_within_seconds","typeLabel":"integer"},"return_url":{"type":"string","minLength":10,"maxLength":2048,"description":"Optional. Where the Ionic approval page returns the owner after they decide, with spend_intent={id} added. Only a platform's delegated Agent can send it; the origin must be one of the platform's approved origins in this mode (HTTPS; test mode also allows HTTP localhost with a port). No userinfo or fragment. The redirect is not proof of the decision: read the intent or use spend_intent.updated.","uniqueKey":"oneOf.1.return_url","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"action":"payment","amount":4503599627370496,"card_id":"\u003cstring>","purpose":"\u003cstring>","seller":{"name":"\u003cstring>","checkout_url":"\u003cstring>"},"currency":"\u003cstring>","billing_details":{"name":"\u003cstring>","address":{"line1":"\u003cstring>","city":"\u003cstring>","postal_code":"\u003cstring>","country":"\u003cstring>","line2":"\u003cstring>","state":"\u003cstring>"},"email":"[email protected]"},"allowed_hosts":["\u003cstring>"],"reference":"\u003cstring>","claim_within_seconds":300,"return_url":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"e921f740-4eb4-4d01-bc3c-eb1213003a4b":{"description":"Returned when you retry with the same `Idempotency-Key`. The body is the existing object.","headers":{"Cache-Control":{"description":"Always no-store, including errors and claim retries.","schema":{"type":"string","enum":["no-store"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","pattern":"^spi_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","enum":["spend_intent"],"isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"account_id":{"type":"string","pattern":"^mer_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"account_id","typeLabel":"string"},"agent_id":{"type":"string","pattern":"^agt_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"agent_id","typeLabel":"string"},"livemode":{"type":"boolean","isRequired":true,"uniqueKey":"livemode","typeLabel":"boolean"},"version":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"version","typeLabel":"integer"},"action":{"type":"string","enum":["payment","save_card","replace_card"],"isRequired":true,"uniqueKey":"action","typeLabel":"enum\u003cstring>"},"card_id":{"type":"string","pattern":"^spcard_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"card_id","typeLabel":"string"},"purpose":{"type":"string","minLength":1,"maxLength":1000,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"purpose","typeLabel":"string"},"seller":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"seller.name","typeLabel":"string"},"checkout_url":{"type":"string","minLength":10,"maxLength":2048,"pattern":"^https://[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?:/[^\\s?#]*)?$","description":"Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.","isRequired":true,"uniqueKey":"seller.checkout_url","typeLabel":"string"}},"required":["name","checkout_url"],"isRequired":true,"uniqueKey":"seller","typeLabel":"object"},"amount":{"type":"integer","minimum":0,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"amount","typeLabel":"integer"},"currency":{"type":"string","pattern":"^[a-z]{3}$","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"billing_details":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"billing_details.name","typeLabel":"string"},"address":{"type":"object","additionalProperties":false,"properties":{"line1":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"billing_details.address.line1","typeLabel":"string"},"city":{"type":"string","minLength":1,"maxLength":100,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"billing_details.address.city","typeLabel":"string"},"postal_code":{"type":"string","minLength":1,"maxLength":32,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"billing_details.address.postal_code","typeLabel":"string"},"country":{"type":"string","pattern":"^[A-Z]{2}$","isRequired":true,"uniqueKey":"billing_details.address.country","typeLabel":"string"},"line2":{"type":"string","maxLength":200,"uniqueKey":"billing_details.address.line2","typeLabel":"string"},"state":{"type":"string","maxLength":100,"uniqueKey":"billing_details.address.state","typeLabel":"string"}},"required":["line1","city","postal_code","country"],"isRequired":true,"uniqueKey":"billing_details.address","typeLabel":"object"},"email":{"type":"string","format":"email","maxLength":254,"uniqueKey":"billing_details.email","typeLabel":"string\u003cemail>"}},"required":["name","address"],"isRequired":true,"uniqueKey":"billing_details","typeLabel":"object"},"reference":{"oneOf":[{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"reference.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"reference.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"reference","typeLabel":"string | null"},"status":{"type":"string","enum":["pending_approval","approved","declined","claimed","expired","canceled","issuance_unknown","blocked"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"allowed_hosts":{"type":"array","minItems":1,"maxItems":20,"uniqueItems":true,"items":{"type":"string","maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)+$","not":{"anyOf":[{"pattern":"^[0-9.]+$"},{"pattern":"\\.(local|internal|localhost)$"}]},"uniqueKey":"allowed_hosts.items.[INDEX]","typeLabel":"string"},"description":"Exact plaintext reveal destinations. Supply 1-20 distinct lowercase public DNS hosts on create to avoid seller pre-registration. Null, empty, wildcard, URL, port, path, IP and local/internal names are rejected. The actual hosts are customer-approved and immutable; redirects do not expand them. Not a whole-browser network allowlist, merchant-legitimacy check, or merchant-account/amount constraint.","isRequired":true,"uniqueKey":"allowed_hosts","typeLabel":"string[]"},"approval_url":{"oneOf":[{"type":"string","minLength":10,"maxLength":2048,"pattern":"^https://[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?:/[^\\s?#]*)?$","description":"Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.","isRequired":true,"uniqueKey":"approval_url.oneOf.0","typeLabel":"string"},{"type":"null","minLength":10,"maxLength":2048,"pattern":"^https://[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?:/[^\\s?#]*)?$","description":"Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.","isRequired":true,"uniqueKey":"approval_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"approval_url","typeLabel":"string | null"},"return_url":{"oneOf":[{"type":"string","minLength":10,"maxLength":2048,"description":"Where a platform's Agent asked the owner be returned after deciding: an absolute URL on one of the platform's approved origins, or null. The Ionic approval page sends the owner there with spend_intent={id}; the redirect is not proof of the decision, so read the intent. Only a platform's delegated Agent can set it.","isRequired":true,"uniqueKey":"return_url.oneOf.0","typeLabel":"string"},{"type":"null","minLength":10,"maxLength":2048,"description":"Where a platform's Agent asked the owner be returned after deciding: an absolute URL on one of the platform's approved origins, or null. The Ionic approval page sends the owner there with spend_intent={id}; the redirect is not proof of the decision, so read the intent. Only a platform's delegated Agent can set it.","isRequired":true,"uniqueKey":"return_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"return_url","typeLabel":"string | null"},"created":{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"created","typeLabel":"integer\u003cint64>"},"approval_expires_at":{"type":"integer","description":"Server-selected deadline for the owner to approve a pending intent, in Unix seconds. This deadline does not shorten a claim window that starts after approval.","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"approval_expires_at","typeLabel":"integer\u003cint64>"},"approved_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"approved_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"approved_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"approved_at","typeLabel":"integer\u003cint64> | null"},"claimed_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"claimed_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"claimed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"claimed_at","typeLabel":"integer\u003cint64> | null"},"canceled_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"canceled_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"canceled_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"canceled_at","typeLabel":"integer\u003cint64> | null"},"claim_expires_at":{"oneOf":[{"type":"integer","minimum":0,"description":"approved_at + claim_within_seconds, in Unix seconds; null before approval. Preserve the original deadline in later states. It is independent of the pending-approval deadline; same-key recovery after this deadline remains subject to original credential expiry and current authority.","format":"int64","isRequired":true,"uniqueKey":"claim_expires_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"approved_at + claim_within_seconds, in Unix seconds; null before approval. Preserve the original deadline in later states. It is independent of the pending-approval deadline; same-key recovery after this deadline remains subject to original credential expiry and current authority.","format":"int64","isRequired":true,"uniqueKey":"claim_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"claim_expires_at","typeLabel":"integer\u003cint64> | null"},"credential_expires_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"credential_expires_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"credential_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"credential_expires_at","typeLabel":"integer\u003cint64> | null"},"claim_replay_available":{"type":"boolean","isRequired":true,"uniqueKey":"claim_replay_available","typeLabel":"boolean"},"credential_exposure":{"type":"string","enum":["none","possible","issued"],"isRequired":true,"uniqueKey":"credential_exposure","typeLabel":"enum\u003cstring>"},"claim_within_seconds":{"type":"integer","minimum":1,"maximum":86400,"default":300,"description":"Seconds after approved_at within which the first claim must complete. Resolved and frozen at creation, shown during approval, and returned on the intent. Does not extend credential TTL. The supported range is 1-300 seconds; a larger valid duration returns HTTP 422 claim_window_unsupported before intent creation. Null and out-of-range values are invalid.","isRequired":true,"uniqueKey":"claim_within_seconds","typeLabel":"integer"},"approvals":{"type":"array","minItems":0,"maxItems":3,"items":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string","enum":["owner","platform","business"],"description":"Party whose human approval is required: owner for a direct Agent's own Account, platform for a delegated Agent's owner, business for the Account whose card is used.","isRequired":true,"uniqueKey":"approvals.items.[INDEX].authority","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["pending","approved","declined"],"isRequired":true,"uniqueKey":"approvals.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"over_limit":{"type":"boolean","description":"True when this party must explicitly approve exceeding one of its own limits.","isRequired":true,"uniqueKey":"approvals.items.[INDEX].over_limit","typeLabel":"boolean"},"decided_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds.","format":"int64","isRequired":true,"uniqueKey":"approvals.items.[INDEX].decided_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds.","format":"int64","isRequired":true,"uniqueKey":"approvals.items.[INDEX].decided_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"approvals.items.[INDEX].decided_at","typeLabel":"integer\u003cint64> | null"}},"required":["authority","status","over_limit","decided_at"],"description":"One required human approval. Platform decisions precede the business decision; the business decides last. Approver identity is shown only in authenticated Ionic owner routes.","uniqueKey":"approvals.items.[INDEX]","typeLabel":"object"},"description":"Every required human approval, in decision order. The card owner's approval (business, or owner for a direct Agent) is always present and decides last, except on a blocked request (decision 0110), which no one can decide: there the list is empty.","isRequired":true,"uniqueKey":"approvals","typeLabel":"object[]"},"limit_breaches":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string","enum":["owner","platform","business"],"description":"Party whose human approval is required: owner for a direct Agent's own Account, platform for a delegated Agent's owner, business for the Account whose card is used.","isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].authority","typeLabel":"enum\u003cstring>"},"limit_id":{"type":"string","pattern":"^alm_[0-9A-Za-z]{14}$","isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].limit_id","typeLabel":"string"},"rule":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["max_amount","window_amount","window_count"],"isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].rule.type","typeLabel":"enum\u003cstring>"},"window":{"oneOf":[{"type":"string","enum":["1h","24h","7d","30d"],"isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].rule.window.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["1h","24h","7d","30d"],"isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].rule.window.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].rule.window","typeLabel":"enum\u003cstring> | null"}},"required":["type","window"],"isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].rule","typeLabel":"object"},"limit":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Minor units for amount rules; a count for window_count.","isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].limit","typeLabel":"integer"},"usage":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Approved card access already counted in the window when the breach was evaluated. Not money spent.","isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].usage","typeLabel":"integer"},"requested":{"type":"integer","minimum":0,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].requested","typeLabel":"integer"},"on_breach":{"type":"string","enum":["hold","block"],"description":"What the rule does when exceeded: hold asks for an explicit approval, block refuses the request (decision 0110).","isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].on_breach","typeLabel":"enum\u003cstring>"}},"required":["authority","limit_id","rule","limit","usage","requested","on_breach"],"description":"A limit this request exceeds. Frozen when evaluated; the matching approval covers only this overage.","uniqueKey":"limit_breaches.items.[INDEX]","typeLabel":"object"},"description":"Limits exceeded when evaluated; empty when within every limit. Budgets cap approvals, not merchant charges.","isRequired":true,"uniqueKey":"limit_breaches","typeLabel":"object[]"},"blocked_at":{"oneOf":[{"type":"integer","minimum":0,"format":"int64","description":"When a blocking limit rule ended the request, in Unix seconds: at creation or at the final approval (decision 0110). Null on every other status.","isRequired":true,"uniqueKey":"blocked_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"format":"int64","description":"When a blocking limit rule ended the request, in Unix seconds: at creation or at the final approval (decision 0110). Null on every other status.","isRequired":true,"uniqueKey":"blocked_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"blocked_at","typeLabel":"integer\u003cint64> | null"}},"required":["id","object","account_id","agent_id","livemode","version","action","card_id","purpose","seller","amount","currency","billing_details","reference","status","allowed_hosts","approval_url","return_url","created","approval_expires_at","approved_at","claimed_at","canceled_at","claim_expires_at","credential_expires_at","claim_replay_available","credential_exposure","claim_within_seconds","approvals","limit_breaches","blocked_at"],"description":"Credential/approval state, never merchant payment status. Unknown issuance preserves credential_exposure=possible even after cancellation. Null credential_expires_at means no verified expiry is known, not that exposure ended.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","object":"spend_intent","account_id":"\u003cstring>","agent_id":"\u003cstring>","livemode":true,"version":2,"action":"payment","card_id":"\u003cstring>","purpose":"\u003cstring>","seller":{"name":"\u003cstring>","checkout_url":"\u003cstring>"},"amount":4503599627370495,"currency":"\u003cstring>","billing_details":{"name":"\u003cstring>","address":{"line1":"\u003cstring>","city":"\u003cstring>","postal_code":"\u003cstring>","country":"\u003cstring>","line2":"\u003cstring>","state":"\u003cstring>"},"email":"[email protected]"},"reference":"\u003cstring>","status":"pending_approval","allowed_hosts":["\u003cstring>"],"approval_url":"\u003cstring>","return_url":"\u003cstring>","created":1,"approval_expires_at":1,"approved_at":1,"claimed_at":1,"canceled_at":1,"claim_expires_at":1,"credential_expires_at":1,"claim_replay_available":true,"credential_exposure":"none","claim_within_seconds":300,"approvals":[{"authority":"owner","status":"pending","over_limit":true,"decided_at":1}],"limit_breaches":[{"authority":"owner","limit_id":"\u003cstring>","rule":{"type":"max_amount","window":"1h"},"limit":4503599627370496,"usage":4503599627370495,"requested":4503599627370495,"on_breach":"hold"}],"blocked_at":1}}},"exampleType":"generated"}},"exampleType":"generated"},"2dcfb1e3-7189-413f-a7b5-d27ebf2219fe":{"description":"The new spend intent.","headers":{"Cache-Control":{"description":"Always no-store, including errors and claim retries.","schema":{"type":"string","enum":["no-store"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","pattern":"^spi_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","enum":["spend_intent"],"isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"account_id":{"type":"string","pattern":"^mer_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"account_id","typeLabel":"string"},"agent_id":{"type":"string","pattern":"^agt_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"agent_id","typeLabel":"string"},"livemode":{"type":"boolean","isRequired":true,"uniqueKey":"livemode","typeLabel":"boolean"},"version":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"version","typeLabel":"integer"},"action":{"type":"string","enum":["payment","save_card","replace_card"],"isRequired":true,"uniqueKey":"action","typeLabel":"enum\u003cstring>"},"card_id":{"type":"string","pattern":"^spcard_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"card_id","typeLabel":"string"},"purpose":{"type":"string","minLength":1,"maxLength":1000,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"purpose","typeLabel":"string"},"seller":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"seller.name","typeLabel":"string"},"checkout_url":{"type":"string","minLength":10,"maxLength":2048,"pattern":"^https://[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?:/[^\\s?#]*)?$","description":"Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.","isRequired":true,"uniqueKey":"seller.checkout_url","typeLabel":"string"}},"required":["name","checkout_url"],"isRequired":true,"uniqueKey":"seller","typeLabel":"object"},"amount":{"type":"integer","minimum":0,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"amount","typeLabel":"integer"},"currency":{"type":"string","pattern":"^[a-z]{3}$","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"billing_details":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"billing_details.name","typeLabel":"string"},"address":{"type":"object","additionalProperties":false,"properties":{"line1":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"billing_details.address.line1","typeLabel":"string"},"city":{"type":"string","minLength":1,"maxLength":100,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"billing_details.address.city","typeLabel":"string"},"postal_code":{"type":"string","minLength":1,"maxLength":32,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"billing_details.address.postal_code","typeLabel":"string"},"country":{"type":"string","pattern":"^[A-Z]{2}$","isRequired":true,"uniqueKey":"billing_details.address.country","typeLabel":"string"},"line2":{"type":"string","maxLength":200,"uniqueKey":"billing_details.address.line2","typeLabel":"string"},"state":{"type":"string","maxLength":100,"uniqueKey":"billing_details.address.state","typeLabel":"string"}},"required":["line1","city","postal_code","country"],"isRequired":true,"uniqueKey":"billing_details.address","typeLabel":"object"},"email":{"type":"string","format":"email","maxLength":254,"uniqueKey":"billing_details.email","typeLabel":"string\u003cemail>"}},"required":["name","address"],"isRequired":true,"uniqueKey":"billing_details","typeLabel":"object"},"reference":{"oneOf":[{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"reference.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"reference.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"reference","typeLabel":"string | null"},"status":{"type":"string","enum":["pending_approval","approved","declined","claimed","expired","canceled","issuance_unknown","blocked"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"allowed_hosts":{"type":"array","minItems":1,"maxItems":20,"uniqueItems":true,"items":{"type":"string","maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)+$","not":{"anyOf":[{"pattern":"^[0-9.]+$"},{"pattern":"\\.(local|internal|localhost)$"}]},"uniqueKey":"allowed_hosts.items.[INDEX]","typeLabel":"string"},"description":"Exact plaintext reveal destinations. Supply 1-20 distinct lowercase public DNS hosts on create to avoid seller pre-registration. Null, empty, wildcard, URL, port, path, IP and local/internal names are rejected. The actual hosts are customer-approved and immutable; redirects do not expand them. Not a whole-browser network allowlist, merchant-legitimacy check, or merchant-account/amount constraint.","isRequired":true,"uniqueKey":"allowed_hosts","typeLabel":"string[]"},"approval_url":{"oneOf":[{"type":"string","minLength":10,"maxLength":2048,"pattern":"^https://[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?:/[^\\s?#]*)?$","description":"Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.","isRequired":true,"uniqueKey":"approval_url.oneOf.0","typeLabel":"string"},{"type":"null","minLength":10,"maxLength":2048,"pattern":"^https://[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?:/[^\\s?#]*)?$","description":"Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.","isRequired":true,"uniqueKey":"approval_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"approval_url","typeLabel":"string | null"},"return_url":{"oneOf":[{"type":"string","minLength":10,"maxLength":2048,"description":"Where a platform's Agent asked the owner be returned after deciding: an absolute URL on one of the platform's approved origins, or null. The Ionic approval page sends the owner there with spend_intent={id}; the redirect is not proof of the decision, so read the intent. Only a platform's delegated Agent can set it.","isRequired":true,"uniqueKey":"return_url.oneOf.0","typeLabel":"string"},{"type":"null","minLength":10,"maxLength":2048,"description":"Where a platform's Agent asked the owner be returned after deciding: an absolute URL on one of the platform's approved origins, or null. The Ionic approval page sends the owner there with spend_intent={id}; the redirect is not proof of the decision, so read the intent. Only a platform's delegated Agent can set it.","isRequired":true,"uniqueKey":"return_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"return_url","typeLabel":"string | null"},"created":{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"created","typeLabel":"integer\u003cint64>"},"approval_expires_at":{"type":"integer","description":"Server-selected deadline for the owner to approve a pending intent, in Unix seconds. This deadline does not shorten a claim window that starts after approval.","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"approval_expires_at","typeLabel":"integer\u003cint64>"},"approved_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"approved_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"approved_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"approved_at","typeLabel":"integer\u003cint64> | null"},"claimed_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"claimed_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"claimed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"claimed_at","typeLabel":"integer\u003cint64> | null"},"canceled_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"canceled_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"canceled_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"canceled_at","typeLabel":"integer\u003cint64> | null"},"claim_expires_at":{"oneOf":[{"type":"integer","minimum":0,"description":"approved_at + claim_within_seconds, in Unix seconds; null before approval. Preserve the original deadline in later states. It is independent of the pending-approval deadline; same-key recovery after this deadline remains subject to original credential expiry and current authority.","format":"int64","isRequired":true,"uniqueKey":"claim_expires_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"approved_at + claim_within_seconds, in Unix seconds; null before approval. Preserve the original deadline in later states. It is independent of the pending-approval deadline; same-key recovery after this deadline remains subject to original credential expiry and current authority.","format":"int64","isRequired":true,"uniqueKey":"claim_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"claim_expires_at","typeLabel":"integer\u003cint64> | null"},"credential_expires_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"credential_expires_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"credential_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"credential_expires_at","typeLabel":"integer\u003cint64> | null"},"claim_replay_available":{"type":"boolean","isRequired":true,"uniqueKey":"claim_replay_available","typeLabel":"boolean"},"credential_exposure":{"type":"string","enum":["none","possible","issued"],"isRequired":true,"uniqueKey":"credential_exposure","typeLabel":"enum\u003cstring>"},"claim_within_seconds":{"type":"integer","minimum":1,"maximum":86400,"default":300,"description":"Seconds after approved_at within which the first claim must complete. Resolved and frozen at creation, shown during approval, and returned on the intent. Does not extend credential TTL. The supported range is 1-300 seconds; a larger valid duration returns HTTP 422 claim_window_unsupported before intent creation. Null and out-of-range values are invalid.","isRequired":true,"uniqueKey":"claim_within_seconds","typeLabel":"integer"},"approvals":{"type":"array","minItems":0,"maxItems":3,"items":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string","enum":["owner","platform","business"],"description":"Party whose human approval is required: owner for a direct Agent's own Account, platform for a delegated Agent's owner, business for the Account whose card is used.","isRequired":true,"uniqueKey":"approvals.items.[INDEX].authority","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["pending","approved","declined"],"isRequired":true,"uniqueKey":"approvals.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"over_limit":{"type":"boolean","description":"True when this party must explicitly approve exceeding one of its own limits.","isRequired":true,"uniqueKey":"approvals.items.[INDEX].over_limit","typeLabel":"boolean"},"decided_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds.","format":"int64","isRequired":true,"uniqueKey":"approvals.items.[INDEX].decided_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds.","format":"int64","isRequired":true,"uniqueKey":"approvals.items.[INDEX].decided_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"approvals.items.[INDEX].decided_at","typeLabel":"integer\u003cint64> | null"}},"required":["authority","status","over_limit","decided_at"],"description":"One required human approval. Platform decisions precede the business decision; the business decides last. Approver identity is shown only in authenticated Ionic owner routes.","uniqueKey":"approvals.items.[INDEX]","typeLabel":"object"},"description":"Every required human approval, in decision order. The card owner's approval (business, or owner for a direct Agent) is always present and decides last, except on a blocked request (decision 0110), which no one can decide: there the list is empty.","isRequired":true,"uniqueKey":"approvals","typeLabel":"object[]"},"limit_breaches":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string","enum":["owner","platform","business"],"description":"Party whose human approval is required: owner for a direct Agent's own Account, platform for a delegated Agent's owner, business for the Account whose card is used.","isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].authority","typeLabel":"enum\u003cstring>"},"limit_id":{"type":"string","pattern":"^alm_[0-9A-Za-z]{14}$","isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].limit_id","typeLabel":"string"},"rule":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["max_amount","window_amount","window_count"],"isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].rule.type","typeLabel":"enum\u003cstring>"},"window":{"oneOf":[{"type":"string","enum":["1h","24h","7d","30d"],"isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].rule.window.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["1h","24h","7d","30d"],"isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].rule.window.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].rule.window","typeLabel":"enum\u003cstring> | null"}},"required":["type","window"],"isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].rule","typeLabel":"object"},"limit":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Minor units for amount rules; a count for window_count.","isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].limit","typeLabel":"integer"},"usage":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Approved card access already counted in the window when the breach was evaluated. Not money spent.","isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].usage","typeLabel":"integer"},"requested":{"type":"integer","minimum":0,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].requested","typeLabel":"integer"},"on_breach":{"type":"string","enum":["hold","block"],"description":"What the rule does when exceeded: hold asks for an explicit approval, block refuses the request (decision 0110).","isRequired":true,"uniqueKey":"limit_breaches.items.[INDEX].on_breach","typeLabel":"enum\u003cstring>"}},"required":["authority","limit_id","rule","limit","usage","requested","on_breach"],"description":"A limit this request exceeds. Frozen when evaluated; the matching approval covers only this overage.","uniqueKey":"limit_breaches.items.[INDEX]","typeLabel":"object"},"description":"Limits exceeded when evaluated; empty when within every limit. Budgets cap approvals, not merchant charges.","isRequired":true,"uniqueKey":"limit_breaches","typeLabel":"object[]"},"blocked_at":{"oneOf":[{"type":"integer","minimum":0,"format":"int64","description":"When a blocking limit rule ended the request, in Unix seconds: at creation or at the final approval (decision 0110). Null on every other status.","isRequired":true,"uniqueKey":"blocked_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"format":"int64","description":"When a blocking limit rule ended the request, in Unix seconds: at creation or at the final approval (decision 0110). Null on every other status.","isRequired":true,"uniqueKey":"blocked_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"blocked_at","typeLabel":"integer\u003cint64> | null"}},"required":["id","object","account_id","agent_id","livemode","version","action","card_id","purpose","seller","amount","currency","billing_details","reference","status","allowed_hosts","approval_url","return_url","created","approval_expires_at","approved_at","claimed_at","canceled_at","claim_expires_at","credential_expires_at","claim_replay_available","credential_exposure","claim_within_seconds","approvals","limit_breaches","blocked_at"],"description":"Credential/approval state, never merchant payment status. Unknown issuance preserves credential_exposure=possible even after cancellation. Null credential_expires_at means no verified expiry is known, not that exposure ended.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","object":"spend_intent","account_id":"\u003cstring>","agent_id":"\u003cstring>","livemode":true,"version":2,"action":"payment","card_id":"\u003cstring>","purpose":"\u003cstring>","seller":{"name":"\u003cstring>","checkout_url":"\u003cstring>"},"amount":4503599627370495,"currency":"\u003cstring>","billing_details":{"name":"\u003cstring>","address":{"line1":"\u003cstring>","city":"\u003cstring>","postal_code":"\u003cstring>","country":"\u003cstring>","line2":"\u003cstring>","state":"\u003cstring>"},"email":"[email protected]"},"reference":"\u003cstring>","status":"pending_approval","allowed_hosts":["\u003cstring>"],"approval_url":"\u003cstring>","return_url":"\u003cstring>","created":1,"approval_expires_at":1,"approved_at":1,"claimed_at":1,"canceled_at":1,"claim_expires_at":1,"credential_expires_at":1,"claim_replay_available":true,"credential_exposure":"none","claim_within_seconds":300,"approvals":[{"authority":"owner","status":"pending","over_limit":true,"decided_at":1}],"limit_breaches":[{"authority":"owner","limit_id":"\u003cstring>","rule":{"type":"max_amount","window":"1h"},"limit":4503599627370496,"usage":4503599627370495,"requested":4503599627370495,"on_breach":"hold"}],"blocked_at":1}}},"exampleType":"generated"}},"exampleType":"generated"},"c4b3135c-5636-470a-bfbb-b253bafe906f":{"description":"The request is invalid, for example `invalid_request`, `invalid_cursor`, or a missing `Idempotency-Key`.","headers":{"Cache-Control":{"description":"Always no-store, including errors and claim retries.","schema":{"type":"string","enum":["no-store"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","minLength":1,"maxLength":100,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","minLength":1,"maxLength":1000,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","uniqueKey":"error.retryable","typeLabel":"boolean"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true}}}},"exampleType":"generated"}},"exampleType":"generated"},"33eaa6a4-d06b-4cd7-be94-8379175f312b":{"description":"The API key is missing, invalid, expired, or revoked.","headers":{"Cache-Control":{"description":"Always no-store, including errors and claim retries.","schema":{"type":"string","enum":["no-store"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","minLength":1,"maxLength":100,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","minLength":1,"maxLength":1000,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","uniqueKey":"error.retryable","typeLabel":"boolean"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true}}}},"exampleType":"generated"}},"exampleType":"generated"},"6a29187e-ac22-4cfd-8f2a-f00c0e202a6a":{"description":"The key or agent doesn't have access, for example `action_not_enabled`, `ACCOUNT_ACCESS_DENIED`, or `setup_access_denied`.","headers":{"Cache-Control":{"description":"Always no-store, including errors and claim retries.","schema":{"type":"string","enum":["no-store"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","minLength":1,"maxLength":100,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","minLength":1,"maxLength":1000,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","uniqueKey":"error.retryable","typeLabel":"boolean"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true}}}},"exampleType":"generated"}},"exampleType":"generated"},"b96fb8ff-74bd-4447-83be-55cfddf64bdd":{"description":"The object doesn't exist, or the key can't see it.","headers":{"Cache-Control":{"description":"Always no-store, including errors and claim retries.","schema":{"type":"string","enum":["no-store"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","minLength":1,"maxLength":100,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","minLength":1,"maxLength":1000,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","uniqueKey":"error.retryable","typeLabel":"boolean"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true}}}},"exampleType":"generated"}},"exampleType":"generated"},"38545d41-67a0-4868-8b08-3b7209d3090f":{"description":"`idempotency_conflict`, `claim_key_conflict`, `claim_in_progress`, or `issuance_unknown`. See [Recover without creating another purchase](/guides/spend-platform-integration#recover-without-creating-another-purchase).","headers":{"Cache-Control":{"description":"Always no-store, including errors and claim retries.","schema":{"type":"string","enum":["no-store"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","minLength":1,"maxLength":100,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","minLength":1,"maxLength":1000,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"spend_intent":{"type":"object","description":"Present only on limit_exceeded: the saved, blocked request.","required":["id","object","account_id","agent_id","livemode","version","action","card_id","purpose","seller","amount","currency","billing_details","reference","status","allowed_hosts","approval_url","return_url","created","approval_expires_at","approved_at","claimed_at","canceled_at","claim_expires_at","credential_expires_at","claim_replay_available","credential_exposure","claim_within_seconds","approvals","limit_breaches","blocked_at"],"properties":{"id":{"type":"string","pattern":"^spi_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"error.spend_intent.id","typeLabel":"string"},"object":{"type":"string","enum":["spend_intent"],"isRequired":true,"uniqueKey":"error.spend_intent.object","typeLabel":"enum\u003cstring>"},"account_id":{"type":"string","pattern":"^mer_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"error.spend_intent.account_id","typeLabel":"string"},"agent_id":{"type":"string","pattern":"^agt_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"error.spend_intent.agent_id","typeLabel":"string"},"livemode":{"type":"boolean","isRequired":true,"uniqueKey":"error.spend_intent.livemode","typeLabel":"boolean"},"version":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"error.spend_intent.version","typeLabel":"integer"},"action":{"type":"string","enum":["payment","save_card","replace_card"],"isRequired":true,"uniqueKey":"error.spend_intent.action","typeLabel":"enum\u003cstring>"},"card_id":{"type":"string","pattern":"^spcard_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"error.spend_intent.card_id","typeLabel":"string"},"purpose":{"type":"string","minLength":1,"maxLength":1000,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.purpose","typeLabel":"string"},"seller":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.seller.name","typeLabel":"string"},"checkout_url":{"type":"string","minLength":10,"maxLength":2048,"pattern":"^https://[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?:/[^\\s?#]*)?$","description":"Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.","isRequired":true,"uniqueKey":"error.spend_intent.seller.checkout_url","typeLabel":"string"}},"required":["name","checkout_url"],"isRequired":true,"uniqueKey":"error.spend_intent.seller","typeLabel":"object"},"amount":{"type":"integer","minimum":0,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"error.spend_intent.amount","typeLabel":"integer"},"currency":{"type":"string","pattern":"^[a-z]{3}$","isRequired":true,"uniqueKey":"error.spend_intent.currency","typeLabel":"string"},"billing_details":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.billing_details.name","typeLabel":"string"},"address":{"type":"object","additionalProperties":false,"properties":{"line1":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.billing_details.address.line1","typeLabel":"string"},"city":{"type":"string","minLength":1,"maxLength":100,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.billing_details.address.city","typeLabel":"string"},"postal_code":{"type":"string","minLength":1,"maxLength":32,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.billing_details.address.postal_code","typeLabel":"string"},"country":{"type":"string","pattern":"^[A-Z]{2}$","isRequired":true,"uniqueKey":"error.spend_intent.billing_details.address.country","typeLabel":"string"},"line2":{"type":"string","maxLength":200,"uniqueKey":"error.spend_intent.billing_details.address.line2","typeLabel":"string"},"state":{"type":"string","maxLength":100,"uniqueKey":"error.spend_intent.billing_details.address.state","typeLabel":"string"}},"required":["line1","city","postal_code","country"],"isRequired":true,"uniqueKey":"error.spend_intent.billing_details.address","typeLabel":"object"},"email":{"type":"string","format":"email","maxLength":254,"uniqueKey":"error.spend_intent.billing_details.email","typeLabel":"string\u003cemail>"}},"required":["name","address"],"isRequired":true,"uniqueKey":"error.spend_intent.billing_details","typeLabel":"object"},"reference":{"oneOf":[{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.reference.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.reference.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.reference","typeLabel":"string | null"},"status":{"type":"string","enum":["pending_approval","approved","declined","claimed","expired","canceled","issuance_unknown","blocked"],"isRequired":true,"uniqueKey":"error.spend_intent.status","typeLabel":"enum\u003cstring>"},"allowed_hosts":{"type":"array","minItems":1,"maxItems":20,"uniqueItems":true,"items":{"type":"string","maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)+$","not":{"anyOf":[{"pattern":"^[0-9.]+$"},{"pattern":"\\.(local|internal|localhost)$"}]},"uniqueKey":"error.spend_intent.allowed_hosts.items.[INDEX]","typeLabel":"string"},"description":"Exact plaintext reveal destinations. Supply 1-20 distinct lowercase public DNS hosts on create to avoid seller pre-registration. Null, empty, wildcard, URL, port, path, IP and local/internal names are rejected. The actual hosts are customer-approved and immutable; redirects do not expand them. Not a whole-browser network allowlist, merchant-legitimacy check, or merchant-account/amount constraint.","isRequired":true,"uniqueKey":"error.spend_intent.allowed_hosts","typeLabel":"string[]"},"approval_url":{"oneOf":[{"type":"string","minLength":10,"maxLength":2048,"pattern":"^https://[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?:/[^\\s?#]*)?$","description":"Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.","isRequired":true,"uniqueKey":"error.spend_intent.approval_url.oneOf.0","typeLabel":"string"},{"type":"null","minLength":10,"maxLength":2048,"pattern":"^https://[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?:/[^\\s?#]*)?$","description":"Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.","isRequired":true,"uniqueKey":"error.spend_intent.approval_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.approval_url","typeLabel":"string | null"},"return_url":{"oneOf":[{"type":"string","minLength":10,"maxLength":2048,"description":"Where a platform's Agent asked the owner be returned after deciding: an absolute URL on one of the platform's approved origins, or null. The Ionic approval page sends the owner there with spend_intent={id}; the redirect is not proof of the decision, so read the intent. Only a platform's delegated Agent can set it.","isRequired":true,"uniqueKey":"error.spend_intent.return_url.oneOf.0","typeLabel":"string"},{"type":"null","minLength":10,"maxLength":2048,"description":"Where a platform's Agent asked the owner be returned after deciding: an absolute URL on one of the platform's approved origins, or null. The Ionic approval page sends the owner there with spend_intent={id}; the redirect is not proof of the decision, so read the intent. Only a platform's delegated Agent can set it.","isRequired":true,"uniqueKey":"error.spend_intent.return_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.return_url","typeLabel":"string | null"},"created":{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.created","typeLabel":"integer\u003cint64>"},"approval_expires_at":{"type":"integer","description":"Server-selected deadline for the owner to approve a pending intent, in Unix seconds. This deadline does not shorten a claim window that starts after approval.","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"error.spend_intent.approval_expires_at","typeLabel":"integer\u003cint64>"},"approved_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.approved_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.approved_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.approved_at","typeLabel":"integer\u003cint64> | null"},"claimed_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.claimed_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.claimed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.claimed_at","typeLabel":"integer\u003cint64> | null"},"canceled_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.canceled_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.canceled_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.canceled_at","typeLabel":"integer\u003cint64> | null"},"claim_expires_at":{"oneOf":[{"type":"integer","minimum":0,"description":"approved_at + claim_within_seconds, in Unix seconds; null before approval. Preserve the original deadline in later states. It is independent of the pending-approval deadline; same-key recovery after this deadline remains subject to original credential expiry and current authority.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.claim_expires_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"approved_at + claim_within_seconds, in Unix seconds; null before approval. Preserve the original deadline in later states. It is independent of the pending-approval deadline; same-key recovery after this deadline remains subject to original credential expiry and current authority.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.claim_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.claim_expires_at","typeLabel":"integer\u003cint64> | null"},"credential_expires_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.credential_expires_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.credential_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.credential_expires_at","typeLabel":"integer\u003cint64> | null"},"claim_replay_available":{"type":"boolean","isRequired":true,"uniqueKey":"error.spend_intent.claim_replay_available","typeLabel":"boolean"},"credential_exposure":{"type":"string","enum":["none","possible","issued"],"isRequired":true,"uniqueKey":"error.spend_intent.credential_exposure","typeLabel":"enum\u003cstring>"},"claim_within_seconds":{"type":"integer","minimum":1,"maximum":86400,"default":300,"description":"Seconds after approved_at within which the first claim must complete. Resolved and frozen at creation, shown during approval, and returned on the intent. Does not extend credential TTL. The supported range is 1-300 seconds; a larger valid duration returns HTTP 422 claim_window_unsupported before intent creation. Null and out-of-range values are invalid.","isRequired":true,"uniqueKey":"error.spend_intent.claim_within_seconds","typeLabel":"integer"},"approvals":{"type":"array","minItems":0,"maxItems":3,"items":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string","enum":["owner","platform","business"],"description":"Party whose human approval is required: owner for a direct Agent's own Account, platform for a delegated Agent's owner, business for the Account whose card is used.","isRequired":true,"uniqueKey":"error.spend_intent.approvals.items.[INDEX].authority","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["pending","approved","declined"],"isRequired":true,"uniqueKey":"error.spend_intent.approvals.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"over_limit":{"type":"boolean","description":"True when this party must explicitly approve exceeding one of its own limits.","isRequired":true,"uniqueKey":"error.spend_intent.approvals.items.[INDEX].over_limit","typeLabel":"boolean"},"decided_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.approvals.items.[INDEX].decided_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.approvals.items.[INDEX].decided_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.approvals.items.[INDEX].decided_at","typeLabel":"integer\u003cint64> | null"}},"required":["authority","status","over_limit","decided_at"],"description":"One required human approval. Platform decisions precede the business decision; the business decides last. Approver identity is shown only in authenticated Ionic owner routes.","uniqueKey":"error.spend_intent.approvals.items.[INDEX]","typeLabel":"object"},"description":"Every required human approval, in decision order. The card owner's approval (business, or owner for a direct Agent) is always present and decides last, except on a blocked request (decision 0110), which no one can decide: there the list is empty.","isRequired":true,"uniqueKey":"error.spend_intent.approvals","typeLabel":"object[]"},"limit_breaches":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string","enum":["owner","platform","business"],"description":"Party whose human approval is required: owner for a direct Agent's own Account, platform for a delegated Agent's owner, business for the Account whose card is used.","isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].authority","typeLabel":"enum\u003cstring>"},"limit_id":{"type":"string","pattern":"^alm_[0-9A-Za-z]{14}$","isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].limit_id","typeLabel":"string"},"rule":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["max_amount","window_amount","window_count"],"isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].rule.type","typeLabel":"enum\u003cstring>"},"window":{"oneOf":[{"type":"string","enum":["1h","24h","7d","30d"],"isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].rule.window.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["1h","24h","7d","30d"],"isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].rule.window.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].rule.window","typeLabel":"enum\u003cstring> | null"}},"required":["type","window"],"isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].rule","typeLabel":"object"},"limit":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Minor units for amount rules; a count for window_count.","isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].limit","typeLabel":"integer"},"usage":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Approved card access already counted in the window when the breach was evaluated. Not money spent.","isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].usage","typeLabel":"integer"},"requested":{"type":"integer","minimum":0,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].requested","typeLabel":"integer"},"on_breach":{"type":"string","enum":["hold","block"],"description":"What the rule does when exceeded: hold asks for an explicit approval, block refuses the request (decision 0110).","isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].on_breach","typeLabel":"enum\u003cstring>"}},"required":["authority","limit_id","rule","limit","usage","requested","on_breach"],"description":"A limit this request exceeds. Frozen when evaluated; the matching approval covers only this overage.","uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX]","typeLabel":"object"},"description":"Limits exceeded when evaluated; empty when within every limit. Budgets cap approvals, not merchant charges.","isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches","typeLabel":"object[]"},"blocked_at":{"oneOf":[{"type":"integer","minimum":0,"format":"int64","description":"When a blocking limit rule ended the request, in Unix seconds: at creation or at the final approval (decision 0110). Null on every other status.","isRequired":true,"uniqueKey":"error.spend_intent.blocked_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"format":"int64","description":"When a blocking limit rule ended the request, in Unix seconds: at creation or at the final approval (decision 0110). Null on every other status.","isRequired":true,"uniqueKey":"error.spend_intent.blocked_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.blocked_at","typeLabel":"integer\u003cint64> | null"}},"additionalProperties":false,"uniqueKey":"error.spend_intent","typeLabel":"object"}},"required":["code","message","retryable"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"description":"Existing Ionic error envelope. Spend errors always include retryable. Authentication/Connect middleware retains its existing envelope and may omit retryable.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"spend_intent":{"id":"\u003cstring>","object":"spend_intent","account_id":"\u003cstring>","agent_id":"\u003cstring>","livemode":true,"version":2,"action":"payment","card_id":"\u003cstring>","purpose":"\u003cstring>","seller":{"name":"\u003cstring>","checkout_url":"\u003cstring>"},"amount":4503599627370495,"currency":"\u003cstring>","billing_details":{"name":"\u003cstring>","address":{"line1":"\u003cstring>","city":"\u003cstring>","postal_code":"\u003cstring>","country":"\u003cstring>","line2":"\u003cstring>","state":"\u003cstring>"},"email":"[email protected]"},"reference":"\u003cstring>","status":"pending_approval","allowed_hosts":["\u003cstring>"],"approval_url":"\u003cstring>","return_url":"\u003cstring>","created":1,"approval_expires_at":1,"approved_at":1,"claimed_at":1,"canceled_at":1,"claim_expires_at":1,"credential_expires_at":1,"claim_replay_available":true,"credential_exposure":"none","claim_within_seconds":300,"approvals":[{"authority":"owner","status":"pending","over_limit":true,"decided_at":1}],"limit_breaches":[{"authority":"owner","limit_id":"\u003cstring>","rule":{"type":"max_amount","window":"1h"},"limit":4503599627370496,"usage":4503599627370495,"requested":4503599627370495,"on_breach":"hold"}],"blocked_at":1}}}}},"exampleType":"generated"}},"exampleType":"generated"},"7769b435-dbcd-4ede-b364-cb32d8adfe73":{"description":"The request can't be completed: `checkout_unsupported`, `approval_required`, `limit_exceeded`, `intent_not_claimable`, `intent_expired`, `checkout_configuration_unavailable`, `claim_window_unsupported`, `currency_not_allowed`, or `setup_session_expired`. See [Recover without creating another purchase](/guides/spend-platform-integration#recover-without-creating-another-purchase).","headers":{"Cache-Control":{"description":"Always no-store, including errors and claim retries.","schema":{"type":"string","enum":["no-store"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","minLength":1,"maxLength":100,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","minLength":1,"maxLength":1000,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"spend_intent":{"type":"object","description":"Present only on limit_exceeded: the saved, blocked request.","required":["id","object","account_id","agent_id","livemode","version","action","card_id","purpose","seller","amount","currency","billing_details","reference","status","allowed_hosts","approval_url","return_url","created","approval_expires_at","approved_at","claimed_at","canceled_at","claim_expires_at","credential_expires_at","claim_replay_available","credential_exposure","claim_within_seconds","approvals","limit_breaches","blocked_at"],"properties":{"id":{"type":"string","pattern":"^spi_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"error.spend_intent.id","typeLabel":"string"},"object":{"type":"string","enum":["spend_intent"],"isRequired":true,"uniqueKey":"error.spend_intent.object","typeLabel":"enum\u003cstring>"},"account_id":{"type":"string","pattern":"^mer_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"error.spend_intent.account_id","typeLabel":"string"},"agent_id":{"type":"string","pattern":"^agt_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"error.spend_intent.agent_id","typeLabel":"string"},"livemode":{"type":"boolean","isRequired":true,"uniqueKey":"error.spend_intent.livemode","typeLabel":"boolean"},"version":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"error.spend_intent.version","typeLabel":"integer"},"action":{"type":"string","enum":["payment","save_card","replace_card"],"isRequired":true,"uniqueKey":"error.spend_intent.action","typeLabel":"enum\u003cstring>"},"card_id":{"type":"string","pattern":"^spcard_[A-Za-z0-9]{14}$","isRequired":true,"uniqueKey":"error.spend_intent.card_id","typeLabel":"string"},"purpose":{"type":"string","minLength":1,"maxLength":1000,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.purpose","typeLabel":"string"},"seller":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.seller.name","typeLabel":"string"},"checkout_url":{"type":"string","minLength":10,"maxLength":2048,"pattern":"^https://[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?:/[^\\s?#]*)?$","description":"Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.","isRequired":true,"uniqueKey":"error.spend_intent.seller.checkout_url","typeLabel":"string"}},"required":["name","checkout_url"],"isRequired":true,"uniqueKey":"error.spend_intent.seller","typeLabel":"object"},"amount":{"type":"integer","minimum":0,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"error.spend_intent.amount","typeLabel":"integer"},"currency":{"type":"string","pattern":"^[a-z]{3}$","isRequired":true,"uniqueKey":"error.spend_intent.currency","typeLabel":"string"},"billing_details":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.billing_details.name","typeLabel":"string"},"address":{"type":"object","additionalProperties":false,"properties":{"line1":{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.billing_details.address.line1","typeLabel":"string"},"city":{"type":"string","minLength":1,"maxLength":100,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.billing_details.address.city","typeLabel":"string"},"postal_code":{"type":"string","minLength":1,"maxLength":32,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.billing_details.address.postal_code","typeLabel":"string"},"country":{"type":"string","pattern":"^[A-Z]{2}$","isRequired":true,"uniqueKey":"error.spend_intent.billing_details.address.country","typeLabel":"string"},"line2":{"type":"string","maxLength":200,"uniqueKey":"error.spend_intent.billing_details.address.line2","typeLabel":"string"},"state":{"type":"string","maxLength":100,"uniqueKey":"error.spend_intent.billing_details.address.state","typeLabel":"string"}},"required":["line1","city","postal_code","country"],"isRequired":true,"uniqueKey":"error.spend_intent.billing_details.address","typeLabel":"object"},"email":{"type":"string","format":"email","maxLength":254,"uniqueKey":"error.spend_intent.billing_details.email","typeLabel":"string\u003cemail>"}},"required":["name","address"],"isRequired":true,"uniqueKey":"error.spend_intent.billing_details","typeLabel":"object"},"reference":{"oneOf":[{"type":"string","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.reference.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":200,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.spend_intent.reference.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.reference","typeLabel":"string | null"},"status":{"type":"string","enum":["pending_approval","approved","declined","claimed","expired","canceled","issuance_unknown","blocked"],"isRequired":true,"uniqueKey":"error.spend_intent.status","typeLabel":"enum\u003cstring>"},"allowed_hosts":{"type":"array","minItems":1,"maxItems":20,"uniqueItems":true,"items":{"type":"string","maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)+$","not":{"anyOf":[{"pattern":"^[0-9.]+$"},{"pattern":"\\.(local|internal|localhost)$"}]},"uniqueKey":"error.spend_intent.allowed_hosts.items.[INDEX]","typeLabel":"string"},"description":"Exact plaintext reveal destinations. Supply 1-20 distinct lowercase public DNS hosts on create to avoid seller pre-registration. Null, empty, wildcard, URL, port, path, IP and local/internal names are rejected. The actual hosts are customer-approved and immutable; redirects do not expand them. Not a whole-browser network allowlist, merchant-legitimacy check, or merchant-account/amount constraint.","isRequired":true,"uniqueKey":"error.spend_intent.allowed_hosts","typeLabel":"string[]"},"approval_url":{"oneOf":[{"type":"string","minLength":10,"maxLength":2048,"pattern":"^https://[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?:/[^\\s?#]*)?$","description":"Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.","isRequired":true,"uniqueKey":"error.spend_intent.approval_url.oneOf.0","typeLabel":"string"},{"type":"null","minLength":10,"maxLength":2048,"pattern":"^https://[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?:/[^\\s?#]*)?$","description":"Absolute HTTPS URL; no userinfo, port, query, fragment or whitespace. Return destinations require registration where specified. Seller pre-registration is not required when the caller supplies allowed_hosts.","isRequired":true,"uniqueKey":"error.spend_intent.approval_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.approval_url","typeLabel":"string | null"},"return_url":{"oneOf":[{"type":"string","minLength":10,"maxLength":2048,"description":"Where a platform's Agent asked the owner be returned after deciding: an absolute URL on one of the platform's approved origins, or null. The Ionic approval page sends the owner there with spend_intent={id}; the redirect is not proof of the decision, so read the intent. Only a platform's delegated Agent can set it.","isRequired":true,"uniqueKey":"error.spend_intent.return_url.oneOf.0","typeLabel":"string"},{"type":"null","minLength":10,"maxLength":2048,"description":"Where a platform's Agent asked the owner be returned after deciding: an absolute URL on one of the platform's approved origins, or null. The Ionic approval page sends the owner there with spend_intent={id}; the redirect is not proof of the decision, so read the intent. Only a platform's delegated Agent can set it.","isRequired":true,"uniqueKey":"error.spend_intent.return_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.return_url","typeLabel":"string | null"},"created":{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.created","typeLabel":"integer\u003cint64>"},"approval_expires_at":{"type":"integer","description":"Server-selected deadline for the owner to approve a pending intent, in Unix seconds. This deadline does not shorten a claim window that starts after approval.","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"error.spend_intent.approval_expires_at","typeLabel":"integer\u003cint64>"},"approved_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.approved_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.approved_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.approved_at","typeLabel":"integer\u003cint64> | null"},"claimed_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.claimed_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.claimed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.claimed_at","typeLabel":"integer\u003cint64> | null"},"canceled_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.canceled_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.canceled_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.canceled_at","typeLabel":"integer\u003cint64> | null"},"claim_expires_at":{"oneOf":[{"type":"integer","minimum":0,"description":"approved_at + claim_within_seconds, in Unix seconds; null before approval. Preserve the original deadline in later states. It is independent of the pending-approval deadline; same-key recovery after this deadline remains subject to original credential expiry and current authority.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.claim_expires_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"approved_at + claim_within_seconds, in Unix seconds; null before approval. Preserve the original deadline in later states. It is independent of the pending-approval deadline; same-key recovery after this deadline remains subject to original credential expiry and current authority.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.claim_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.claim_expires_at","typeLabel":"integer\u003cint64> | null"},"credential_expires_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.credential_expires_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds. Equality with a deadline is expired.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.credential_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.credential_expires_at","typeLabel":"integer\u003cint64> | null"},"claim_replay_available":{"type":"boolean","isRequired":true,"uniqueKey":"error.spend_intent.claim_replay_available","typeLabel":"boolean"},"credential_exposure":{"type":"string","enum":["none","possible","issued"],"isRequired":true,"uniqueKey":"error.spend_intent.credential_exposure","typeLabel":"enum\u003cstring>"},"claim_within_seconds":{"type":"integer","minimum":1,"maximum":86400,"default":300,"description":"Seconds after approved_at within which the first claim must complete. Resolved and frozen at creation, shown during approval, and returned on the intent. Does not extend credential TTL. The supported range is 1-300 seconds; a larger valid duration returns HTTP 422 claim_window_unsupported before intent creation. Null and out-of-range values are invalid.","isRequired":true,"uniqueKey":"error.spend_intent.claim_within_seconds","typeLabel":"integer"},"approvals":{"type":"array","minItems":0,"maxItems":3,"items":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string","enum":["owner","platform","business"],"description":"Party whose human approval is required: owner for a direct Agent's own Account, platform for a delegated Agent's owner, business for the Account whose card is used.","isRequired":true,"uniqueKey":"error.spend_intent.approvals.items.[INDEX].authority","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["pending","approved","declined"],"isRequired":true,"uniqueKey":"error.spend_intent.approvals.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"over_limit":{"type":"boolean","description":"True when this party must explicitly approve exceeding one of its own limits.","isRequired":true,"uniqueKey":"error.spend_intent.approvals.items.[INDEX].over_limit","typeLabel":"boolean"},"decided_at":{"oneOf":[{"type":"integer","minimum":0,"description":"Unix epoch seconds.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.approvals.items.[INDEX].decided_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"description":"Unix epoch seconds.","format":"int64","isRequired":true,"uniqueKey":"error.spend_intent.approvals.items.[INDEX].decided_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.approvals.items.[INDEX].decided_at","typeLabel":"integer\u003cint64> | null"}},"required":["authority","status","over_limit","decided_at"],"description":"One required human approval. Platform decisions precede the business decision; the business decides last. Approver identity is shown only in authenticated Ionic owner routes.","uniqueKey":"error.spend_intent.approvals.items.[INDEX]","typeLabel":"object"},"description":"Every required human approval, in decision order. The card owner's approval (business, or owner for a direct Agent) is always present and decides last, except on a blocked request (decision 0110), which no one can decide: there the list is empty.","isRequired":true,"uniqueKey":"error.spend_intent.approvals","typeLabel":"object[]"},"limit_breaches":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string","enum":["owner","platform","business"],"description":"Party whose human approval is required: owner for a direct Agent's own Account, platform for a delegated Agent's owner, business for the Account whose card is used.","isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].authority","typeLabel":"enum\u003cstring>"},"limit_id":{"type":"string","pattern":"^alm_[0-9A-Za-z]{14}$","isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].limit_id","typeLabel":"string"},"rule":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["max_amount","window_amount","window_count"],"isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].rule.type","typeLabel":"enum\u003cstring>"},"window":{"oneOf":[{"type":"string","enum":["1h","24h","7d","30d"],"isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].rule.window.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["1h","24h","7d","30d"],"isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].rule.window.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].rule.window","typeLabel":"enum\u003cstring> | null"}},"required":["type","window"],"isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].rule","typeLabel":"object"},"limit":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Minor units for amount rules; a count for window_count.","isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].limit","typeLabel":"integer"},"usage":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Approved card access already counted in the window when the breach was evaluated. Not money spent.","isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].usage","typeLabel":"integer"},"requested":{"type":"integer","minimum":0,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].requested","typeLabel":"integer"},"on_breach":{"type":"string","enum":["hold","block"],"description":"What the rule does when exceeded: hold asks for an explicit approval, block refuses the request (decision 0110).","isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX].on_breach","typeLabel":"enum\u003cstring>"}},"required":["authority","limit_id","rule","limit","usage","requested","on_breach"],"description":"A limit this request exceeds. Frozen when evaluated; the matching approval covers only this overage.","uniqueKey":"error.spend_intent.limit_breaches.items.[INDEX]","typeLabel":"object"},"description":"Limits exceeded when evaluated; empty when within every limit. Budgets cap approvals, not merchant charges.","isRequired":true,"uniqueKey":"error.spend_intent.limit_breaches","typeLabel":"object[]"},"blocked_at":{"oneOf":[{"type":"integer","minimum":0,"format":"int64","description":"When a blocking limit rule ended the request, in Unix seconds: at creation or at the final approval (decision 0110). Null on every other status.","isRequired":true,"uniqueKey":"error.spend_intent.blocked_at.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","minimum":0,"format":"int64","description":"When a blocking limit rule ended the request, in Unix seconds: at creation or at the final approval (decision 0110). Null on every other status.","isRequired":true,"uniqueKey":"error.spend_intent.blocked_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.spend_intent.blocked_at","typeLabel":"integer\u003cint64> | null"}},"additionalProperties":false,"uniqueKey":"error.spend_intent","typeLabel":"object"}},"required":["code","message","retryable"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"description":"Existing Ionic error envelope. Spend errors always include retryable. Authentication/Connect middleware retains its existing envelope and may omit retryable.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"spend_intent":{"id":"\u003cstring>","object":"spend_intent","account_id":"\u003cstring>","agent_id":"\u003cstring>","livemode":true,"version":2,"action":"payment","card_id":"\u003cstring>","purpose":"\u003cstring>","seller":{"name":"\u003cstring>","checkout_url":"\u003cstring>"},"amount":4503599627370495,"currency":"\u003cstring>","billing_details":{"name":"\u003cstring>","address":{"line1":"\u003cstring>","city":"\u003cstring>","postal_code":"\u003cstring>","country":"\u003cstring>","line2":"\u003cstring>","state":"\u003cstring>"},"email":"[email protected]"},"reference":"\u003cstring>","status":"pending_approval","allowed_hosts":["\u003cstring>"],"approval_url":"\u003cstring>","return_url":"\u003cstring>","created":1,"approval_expires_at":1,"approved_at":1,"claimed_at":1,"canceled_at":1,"claim_expires_at":1,"credential_expires_at":1,"claim_replay_available":true,"credential_exposure":"none","claim_within_seconds":300,"approvals":[{"authority":"owner","status":"pending","over_limit":true,"decided_at":1}],"limit_breaches":[{"authority":"owner","limit_id":"\u003cstring>","rule":{"type":"max_amount","window":"1h"},"limit":4503599627370496,"usage":4503599627370495,"requested":4503599627370495,"on_breach":"hold"}],"blocked_at":1}}}}},"exampleType":"generated"}},"exampleType":"generated"},"95b3cf64-1310-4d6f-b46c-c9ed9d10e040":{"description":"Too many requests. Wait for `Retry-After`.","headers":{"Cache-Control":{"description":"Always no-store, including errors and claim retries.","schema":{"type":"string","enum":["no-store"]}},"Retry-After":{"description":"Seconds to wait before a safe retry.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","minLength":1,"maxLength":100,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","minLength":1,"maxLength":1000,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","uniqueKey":"error.retryable","typeLabel":"boolean"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true}}}},"exampleType":"generated"}},"exampleType":"generated"},"9415fcd3-d619-4644-a499-c135a41784ca":{"description":"The service is temporarily unavailable and the request wasn't processed. Retry with the same `Idempotency-Key`.","headers":{"Cache-Control":{"description":"Always no-store, including errors and claim retries.","schema":{"type":"string","enum":["no-store"]}},"Retry-After":{"description":"Seconds to wait before a safe retry.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","minLength":1,"maxLength":100,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","minLength":1,"maxLength":1000,"pattern":".*\\S.*","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","uniqueKey":"error.retryable","typeLabel":"boolean"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"31cc9f21-4791-4f43-81e4-8b194450933b":{"secretKey":{"type":"http","scheme":"bearer","description":"Backend secret key for hosted setup; Agent secret key for card inventory and every spending-request operation. A delegated request also selects the authorized business through Ionic-Account. Machine keys cannot approve requests.","scopes":[],"schemeName":"secretKey"}}},"servers":{"c347acde-849f-4ab0-97a3-c1ba4da25705":{"url":"https://api.ionicfi.com","description":"Use the API origin Ionic provides for your enabled environment."}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Backend secret key for hosted setup; Agent secret key for card inventory and every spending-request operation. A delegated request also selects the authorized business through Ionic-Account. Machine keys cannot approve requests.","scopes":[],"schemeName":"secretKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Backend secret key for hosted setup; Agent secret key for card inventory and every spending-request operation. A delegated request also selects the authorized business through Ionic-Account. Machine keys cannot approve requests.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"secretKey","name":"Authorization"}],"title":"secretKey"}]},"originalFileLocation":"openapi/spend.json"},"subdomain":"engine-3f2795e6","siteName":"Ionic Docs","title":"Create a spend intent - Ionic Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-16T09:05:28.926Z","originalFileLocation":"api-reference/create-a-spend-intent.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=\"Asks the business to approve one purchase on a card the agent can use. Send a business owner to the returned approval_url, then wait for status to become approved before claiming. Requires an agent secret key with spend:write and access to the card. A platform\u0026#x27;s agent selects the connected business with Ionic-Account. Set action to payment and use a positive amount. Store the Idempotency-Key before you send the request so a retry can\u0026#x27;t create a second purchase request. A request that breaks a blocking spending limit fails with 422 limit_exceeded and is saved with status: \u0026quot;blocked\u0026quot;.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ionic 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/engine-3f2795e6/hT3UFoCegXRRZ7Xk/_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/engine-3f2795e6/hT3UFoCegXRRZ7Xk/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/engine-3f2795e6/hT3UFoCegXRRZ7Xk/_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/engine-3f2795e6/hT3UFoCegXRRZ7Xk/_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/engine-3f2795e6/hT3UFoCegXRRZ7Xk/_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/engine-3f2795e6/hT3UFoCegXRRZ7Xk/_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/engine-3f2795e6/hT3UFoCegXRRZ7Xk/_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/engine-3f2795e6/hT3UFoCegXRRZ7Xk/_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/engine-3f2795e6/hT3UFoCegXRRZ7Xk/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a spend intent - Ionic Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Asks the business to approve one purchase on a card the agent can use. Send a business owner to the returned approval_url, then wait for status to become approved before claiming. Requires an agent secret key with spend:write and access to the card. A platform\u0026#x27;s agent selects the connected business with Ionic-Account. Set action to payment and use a positive amount. Store the Idempotency-Key before you send the request so a retry can\u0026#x27;t create a second purchase request. A request that breaks a blocking spending limit fails with 422 limit_exceeded and is saved with status: \u0026quot;blocked\u0026quot;.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ionic Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ionicfi.com/api-reference/create-a-spend-intent\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://engine-3f2795e6.mintlify.site/_mintlify/api/og/v2?division=Spend+intents\u0026amp;title=Create+a+spend+intent\u0026amp;description=Asks+the+business+to+approve+one+purchase+on+a+card+the+agent+can+use.+Send+a+business+owner+to+the+returned+%60approval_url%60%2C+then+wait+for+%60status%60+to+become+%60a\u0026amp;theme=f6c351a7f4dbafae50fd7f03\u0026amp;signature=a30b319da3aa9082d6f6b52528d230186518a68d9d0bcfb51ef5cb2a0fd4804d\">\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=\"Create a spend intent - Ionic Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Asks the business to approve one purchase on a card the agent can use. Send a business owner to the returned approval_url, then wait for status to become approved before claiming. Requires an agent secret key with spend:write and access to the card. A platform\u0026#x27;s agent selects the connected business with Ionic-Account. Set action to payment and use a positive amount. Store the Idempotency-Key before you send the request so a retry can\u0026#x27;t create a second purchase request. A request that breaks a blocking spending limit fails with 422 limit_exceeded and is saved with status: \u0026quot;blocked\u0026quot;.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://engine-3f2795e6.mintlify.site/_mintlify/api/og/v2?division=Spend+intents\u0026amp;title=Create+a+spend+intent\u0026amp;description=Asks+the+business+to+approve+one+purchase+on+a+card+the+agent+can+use.+Send+a+business+owner+to+the+returned+%60approval_url%60%2C+then+wait+for+%60status%60+to+become+%60a\u0026amp;theme=f6c351a7f4dbafae50fd7f03\u0026amp;signature=a30b319da3aa9082d6f6b52528d230186518a68d9d0bcfb51ef5cb2a0fd4804d\">\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/engine-3f2795e6/hT3UFoCegXRRZ7Xk/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ionic Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#111111\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ionicfi.com/api-reference/create-a-spend-intent\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/create-a-spend-intent.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ionicfi.com/#organization\",\"name\":\"Ionic Docs\",\"url\":\"https://docs.ionicfi.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/engine-3f2795e6/micsmh5TxT8586Ns/logo/ionic-logo.png?fit=max\u0026auto=format\u0026n=micsmh5TxT8586Ns\u0026q=85\u0026s=be759cb8138247726a7138846473093e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ionicfi.com#website\",\"name\":\"Ionic Docs\",\"url\":\"https://docs.ionicfi.com\",\"publisher\":{\"@id\":\"https://docs.ionicfi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ionicfi.com/api-reference/create-a-spend-intent#webpage\",\"url\":\"https://docs.ionicfi.com/api-reference/create-a-spend-intent\",\"name\":\"Create a spend intent\",\"description\":\"Asks the business to approve one purchase on a card the agent can use. Send a business owner to the returned approval_url, then wait for status to become approved before claiming. Requires an agent secret key with spend:write and access to the card. A platform's agent selects the connected business with Ionic-Account. Set action to payment and use a positive amount. Store the Idempotency-Key before you send the request so a retry can't create a second purchase request. A request that breaks a blocking spending limit fails with 422 limit_exceeded and is saved with status: \\\"blocked\\\".\",\"dateModified\":\"2026-11-16T09:05:28.926Z\",\"isPartOf\":{\"@id\":\"https://docs.ionicfi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ionicfi.com/api-reference/create-a-spend-intent#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ionicfi.com/api-reference/create-a-spend-intent#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Spend (preview)\",\"item\":\"https://docs.ionicfi.com/api-reference/spend-setup-sessions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spend intents\",\"item\":\"https://docs.ionicfi.com/api-reference/spend-intents\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create a spend intent\",\"item\":\"https://docs.ionicfi.com/api-reference/create-a-spend-intent\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.ionicfi.com/api-reference/create-a-spend-intent#apireference\",\"headline\":\"Create a spend intent\",\"name\":\"Create a spend intent\",\"description\":\"Asks the business to approve one purchase on a card the agent can use. Send a business owner to the returned approval_url, then wait for status to become approved before claiming. Requires an agent secret key with spend:write and access to the card. A platform's agent selects the connected business with Ionic-Account. Set action to payment and use a positive amount. Store the Idempotency-Key before you send the request so a retry can't create a second purchase request. A request that breaks a blocking spending limit fails with 422 limit_exceeded and is saved with status: \\\"blocked\\\".\",\"url\":\"https://docs.ionicfi.com/api-reference/create-a-spend-intent\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ionicfi.com/api-reference/create-a-spend-intent#webpage\"},\"dateModified\":\"2026-11-16T09:05:28.926Z\",\"publisher\":{\"@id\":\"https://docs.ionicfi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ionicfi.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ionic Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ionic Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/create-a-spend-intent.md","siteName":"Ionic Docs","nav":{"global":null,"tabs":[{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","icon":"code","groups":[{"group":"Fundamentals","pages":[{"title":"API overview","icon":"map","href":"/api-reference/overview"},{"title":"Authentication","icon":"key","href":"/api-reference/authentication"},{"title":"Requests and responses","icon":"brackets-curly","href":"/api-reference/request-response"},{"title":"IDs","icon":"fingerprint","href":"/api-reference/ids"},{"title":"Idempotency","icon":"repeat","href":"/api-reference/idempotency"},{"title":"Errors","icon":"circle-exclamation","href":"/api-reference/errors"},{"title":"Decline codes","icon":"circle-xmark","href":"/api-reference/decline-codes"},{"title":"Pagination","icon":"list","href":"/api-reference/pagination"},{"title":"Rate limits","icon":"timer","href":"/api-reference/rate-limits"},{"title":"Backwards compatibility","icon":"code-branch","href":"/api-reference/backwards-compatibility"}]},{"group":"Agents","icon":"robot","pages":[{"group":"Agents","pages":[{"title":"The agent object","sidebarTitle":"The agent object","icon":"cube","href":"/api-reference/agents"},{"title":"Create an agent","deprecated":null,"version":null,"openapi":"/openapi/agents.yaml post /agents","href":"/api-reference/agents/create-an-agent"},{"title":"List your agents","deprecated":null,"version":null,"openapi":"/openapi/agents.yaml get /agents","href":"/api-reference/agents/list-your-agents"},{"title":"Retrieve an agent","deprecated":null,"version":null,"openapi":"/openapi/agents.yaml get /agents/{id}","href":"/api-reference/agents/retrieve-an-agent"},{"title":"Update an agent","deprecated":null,"version":null,"openapi":"/openapi/agents.yaml post /agents/{id}","href":"/api-reference/agents/update-an-agent"},{"title":"Suspend an agent","deprecated":null,"version":null,"openapi":"/openapi/agents.yaml post /agents/{id}/suspend","href":"/api-reference/agents/suspend-an-agent"},{"title":"Resume an agent","deprecated":null,"version":null,"openapi":"/openapi/agents.yaml post /agents/{id}/resume","href":"/api-reference/agents/resume-an-agent"},{"title":"Deactivate an agent","deprecated":null,"version":null,"openapi":"/openapi/agents.yaml post /agents/{id}/deactivate","href":"/api-reference/agents/deactivate-an-agent"},{"title":"Retrieve your agent handle prefix","deprecated":null,"version":null,"openapi":"/openapi/agents.yaml get /agents/handle_prefix","href":"/api-reference/agents/retrieve-your-agent-handle-prefix"}]},{"title":"AI agent permissions","sidebarTitle":"Permissions","icon":"key","href":"/api-reference/agent-permissions"}]},{"group":"Payments","icon":"credit-card","pages":[{"group":"Payment intents","pages":[{"title":"The PaymentIntent object","sidebarTitle":"The PaymentIntent object","icon":"cube","href":"/api-reference/payment-intents"},{"title":"Create a payment intent","deprecated":null,"version":null,"openapi":"/openapi/payments.yaml post /payment_intents","href":"/api-reference/payment-intents/create-a-payment-intent"},{"title":"List payment intents","deprecated":null,"version":null,"openapi":"/openapi/payments.yaml get /payment_intents","href":"/api-reference/payment-intents/list-payment-intents"},{"title":"Retrieve a payment intent","deprecated":null,"version":null,"openapi":"/openapi/payments.yaml get /payment_intents/{id}","href":"/api-reference/payment-intents/retrieve-a-payment-intent"},{"title":"Confirm a payment intent","deprecated":null,"version":null,"openapi":"/openapi/payments.yaml post /payment_intents/{id}/confirm","href":"/api-reference/payment-intents/confirm-a-payment-intent"},{"title":"Capture a payment intent","deprecated":null,"version":null,"openapi":"/openapi/payments.yaml post /payment_intents/{id}/capture","href":"/api-reference/payment-intents/capture-a-payment-intent"},{"title":"Cancel a payment intent","deprecated":null,"version":null,"openapi":"/openapi/payments.yaml post /payment_intents/{id}/cancel","href":"/api-reference/payment-intents/cancel-a-payment-intent"}]},{"group":"Charges","pages":[{"title":"The Charge object","sidebarTitle":"The Charge object","icon":"cube","href":"/api-reference/charges"},{"title":"List charges","deprecated":null,"version":null,"openapi":"/openapi/payments.yaml get /charges","href":"/api-reference/charges/list-charges"},{"title":"Retrieve a charge","deprecated":null,"version":null,"openapi":"/openapi/payments.yaml get /charges/{id}","href":"/api-reference/charges/retrieve-a-charge"}]},{"group":"Refunds","pages":[{"title":"The Refund object","sidebarTitle":"The Refund object","icon":"cube","href":"/api-reference/refunds"},{"title":"Create a refund","deprecated":null,"version":null,"openapi":"/openapi/payments.yaml post /refunds","href":"/api-reference/refunds/create-a-refund"},{"title":"List refunds","deprecated":null,"version":null,"openapi":"/openapi/payments.yaml get /refunds","href":"/api-reference/refunds/list-refunds"},{"title":"Retrieve a refund","deprecated":null,"version":null,"openapi":"/openapi/payments.yaml get /refunds/{id}","href":"/api-reference/refunds/retrieve-a-refund"}]},{"group":"Transactions","pages":[{"title":"The Transaction object","sidebarTitle":"The Transaction object","icon":"cube","href":"/api-reference/transactions"},{"title":"List transactions","deprecated":null,"version":null,"openapi":"/openapi/transactions.yaml get /transactions","href":"/api-reference/transactions/list-transactions"},{"title":"Retrieve a transaction","deprecated":null,"version":null,"openapi":"/openapi/transactions.yaml get /transactions/{id}","href":"/api-reference/transactions/retrieve-a-transaction"}]},{"group":"Setup intents","pages":[{"title":"The SetupIntent object","sidebarTitle":"The SetupIntent object","icon":"cube","href":"/api-reference/setup-intents"},{"title":"Create a setup intent","deprecated":null,"version":null,"openapi":"/openapi/setup_intents.yaml post /setup_intents","href":"/api-reference/setup-intents/create-a-setup-intent"},{"title":"List setup intents","deprecated":null,"version":null,"openapi":"/openapi/setup_intents.yaml get /setup_intents","href":"/api-reference/setup-intents/list-setup-intents"},{"title":"Retrieve a setup intent","deprecated":null,"version":null,"openapi":"/openapi/setup_intents.yaml get /setup_intents/{id}","href":"/api-reference/setup-intents/retrieve-a-setup-intent"},{"title":"Confirm a setup intent","deprecated":null,"version":null,"openapi":"/openapi/setup_intents.yaml post /setup_intents/{id}/confirm","href":"/api-reference/setup-intents/confirm-a-setup-intent"},{"title":"Cancel a setup intent","deprecated":null,"version":null,"openapi":"/openapi/setup_intents.yaml post /setup_intents/{id}/cancel","href":"/api-reference/setup-intents/cancel-a-setup-intent"}]},{"group":"Payment methods","pages":[{"title":"The PaymentMethod object","sidebarTitle":"The PaymentMethod object","icon":"cube","href":"/api-reference/payment-methods"},{"title":"Create a payment method","deprecated":null,"version":null,"openapi":"/openapi/payment_methods.yaml post /payment_methods","href":"/api-reference/payment-methods/create-a-payment-method"},{"title":"List payment methods","deprecated":null,"version":null,"openapi":"/openapi/payment_methods.yaml get /payment_methods","href":"/api-reference/payment-methods/list-payment-methods"},{"title":"Retrieve a payment method","deprecated":null,"version":null,"openapi":"/openapi/payment_methods.yaml get /payment_methods/{id}","href":"/api-reference/payment-methods/retrieve-a-payment-method"},{"title":"Attach a payment method to a customer","deprecated":null,"version":null,"openapi":"/openapi/payment_methods.yaml post /payment_methods/{id}/attach","href":"/api-reference/payment-methods/attach-a-payment-method-to-a-customer"},{"title":"Revoke a payment method","deprecated":null,"version":null,"openapi":"/openapi/payment_methods.yaml post /payment_methods/{id}/revoke","href":"/api-reference/payment-methods/revoke-a-payment-method"},{"title":"The ConfirmationToken object","sidebarTitle":"Confirmation tokens","icon":"cube","href":"/api-reference/confirmation-tokens"},{"openapi":"openapi/confirmation_tokens.yaml GET /confirmation_tokens/{id}","title":"Retrieve a confirmation token","href":"/api-reference/confirmation-tokens/retrieve-a-confirmation-token"}]},{"group":"Web domains","pages":[{"title":"List web domains","deprecated":null,"version":null,"openapi":"/openapi/web_domains.yaml get /web_domains","href":"/api-reference/web-domains/list-web-domains"},{"title":"Add a web domain","deprecated":null,"version":null,"openapi":"/openapi/web_domains.yaml post /web_domains","href":"/api-reference/web-domains/add-a-web-domain"},{"title":"Delete a web domain by origin","deprecated":null,"version":null,"openapi":"/openapi/web_domains.yaml delete /web_domains","href":"/api-reference/web-domains/delete-a-web-domain-by-origin"},{"title":"Delete a web domain","deprecated":null,"version":null,"openapi":"/openapi/web_domains.yaml delete /web_domains/{id}","href":"/api-reference/web-domains/delete-a-web-domain"},{"title":"Register a domain for Apple Pay","deprecated":null,"version":null,"openapi":"/openapi/web_domains.yaml post /web_domains/{id}/apple_pay","href":"/api-reference/apple-pay-domains/register-a-domain-for-apple-pay"},{"title":"Deregister a domain from Apple Pay","deprecated":null,"version":null,"openapi":"/openapi/web_domains.yaml delete /web_domains/{id}/apple_pay","href":"/api-reference/apple-pay-domains/deregister-a-domain-from-apple-pay"}]}]},{"group":"Spend (preview)","icon":"cart-shopping","pages":[{"group":"Setup sessions","pages":[{"title":"The setup session object","sidebarTitle":"The setup session object","icon":"cube","href":"/api-reference/spend-setup-sessions"},{"title":"Create a setup session","deprecated":null,"version":null,"openapi":"/openapi/spend.json post /v1/spend/setup_sessions","href":"/api-reference/create-a-setup-session"},{"title":"Retrieve a setup session","deprecated":null,"version":null,"openapi":"/openapi/spend.json get /v1/spend/setup_sessions/{id}","href":"/api-reference/retrieve-a-setup-session"}]},{"group":"Cards","pages":[{"title":"The card object","sidebarTitle":"The card object","icon":"cube","href":"/api-reference/spend-cards"},{"title":"List cards","deprecated":null,"version":null,"openapi":"/openapi/spend.json get /v1/spend/cards","href":"/api-reference/list-cards"}]},{"group":"Spend intents","pages":[{"title":"The spend intent object","sidebarTitle":"The spend intent object","description":"Ask a business to approve one agent purchase, then claim the card for checkout.","icon":"cube","href":"/api-reference/spend-intents"},{"title":"Create a spend intent","deprecated":null,"version":null,"openapi":"/openapi/spend.json post /v1/spend_intents","href":"/api-reference/create-a-spend-intent"},{"title":"List spend intents","description":"Lists the calling agent's spend intents for the selected business.\n\nRequires the agent secret key that created them, with `spend:read`.","deprecated":null,"version":null,"openapi":"/openapi/spend.json get /v1/spend_intents","href":"/api-reference/list-spend-intents"},{"title":"Retrieve a spend intent","deprecated":null,"version":null,"openapi":"/openapi/spend.json get /v1/spend_intents/{id}","href":"/api-reference/retrieve-a-spend-intent"},{"title":"Claim a spend intent","deprecated":null,"version":null,"openapi":"/openapi/spend.json post /v1/spend_intents/{id}/claim","href":"/api-reference/claim-a-spend-intent"},{"title":"Cancel a spend intent","deprecated":null,"version":null,"openapi":"/openapi/spend.json post /v1/spend_intents/{id}/cancel","href":"/api-reference/cancel-a-spend-intent"}]}]},{"group":"Checkout","icon":"shopping-cart","pages":[{"group":"Checkout sessions","pages":[{"title":"The checkout session object","sidebarTitle":"The checkout session object","icon":"cube","href":"/api-reference/checkout-sessions"},{"title":"Create a checkout session","deprecated":null,"version":null,"openapi":"/openapi/checkout.yaml post /checkout/sessions","href":"/api-reference/checkout-sessions/create-a-checkout-session"},{"title":"List checkout sessions","deprecated":null,"version":null,"openapi":"/openapi/checkout.yaml get /checkout/sessions","href":"/api-reference/checkout-sessions/list-checkout-sessions"},{"title":"Retrieve a checkout session","deprecated":null,"version":null,"openapi":"/openapi/checkout.yaml get /checkout/sessions/{id}","href":"/api-reference/checkout-sessions/retrieve-a-checkout-session"},{"title":"Confirm a checkout session","deprecated":null,"version":null,"openapi":"/openapi/checkout.yaml post /checkout/sessions/{id}/confirm","href":"/api-reference/checkout-sessions/confirm-a-checkout-session"},{"title":"Adjust a line item quantity","deprecated":null,"version":null,"openapi":"/openapi/checkout.yaml post /checkout/sessions/{id}/line_items/{line_item_id}/adjust_quantity","href":"/api-reference/checkout-sessions/adjust-a-line-item-quantity"},{"title":"Select an optional item","deprecated":null,"version":null,"openapi":"/openapi/checkout.yaml post /checkout/sessions/{id}/optional_items/{line_item_id}/select","href":"/api-reference/checkout-sessions/select-an-optional-item"},{"title":"Deselect an optional item","deprecated":null,"version":null,"openapi":"/openapi/checkout.yaml post /checkout/sessions/{id}/optional_items/{line_item_id}/deselect","href":"/api-reference/checkout-sessions/deselect-an-optional-item"}]},{"group":"Payment links","pages":[{"title":"The payment link object","sidebarTitle":"The payment link object","icon":"cube","href":"/api-reference/payment-links"},{"title":"Create a payment link","deprecated":null,"version":null,"openapi":"/openapi/payment_links.yaml post /payment_links","href":"/api-reference/payment-links/create-a-payment-link"},{"title":"List payment links","deprecated":null,"version":null,"openapi":"/openapi/payment_links.yaml get /payment_links","href":"/api-reference/payment-links/list-payment-links"},{"title":"Retrieve a payment link","deprecated":null,"version":null,"openapi":"/openapi/payment_links.yaml get /payment_links/{id}","href":"/api-reference/payment-links/retrieve-a-payment-link"},{"title":"Update a payment link","deprecated":null,"version":null,"openapi":"/openapi/payment_links.yaml post /payment_links/{id}","href":"/api-reference/payment-links/update-a-payment-link"},{"title":"Deactivate a payment link","deprecated":null,"version":null,"openapi":"/openapi/payment_links.yaml post /payment_links/{id}/deactivate","href":"/api-reference/payment-links/deactivate-a-payment-link"},{"title":"Activate a payment link","deprecated":null,"version":null,"openapi":"/openapi/payment_links.yaml post /payment_links/{id}/activate","href":"/api-reference/payment-links/activate-a-payment-link"}]}]},{"group":"In-person payments","icon":"cash-register","pages":[{"group":"Terminal payments","pages":[{"title":"The terminal payment object","sidebarTitle":"The terminal payment object","icon":"cube","href":"/api-reference/terminal-payments"},{"title":"Process a PaymentIntent on a Terminal","deprecated":null,"version":null,"openapi":"/openapi/terminal-payments.yaml post /terminals/{id}/process_payment_intent","href":"/api-reference/terminal-payments/process-a-paymentintent-on-a-terminal"},{"title":"Retrieve a Terminal Payment","deprecated":null,"version":null,"openapi":"/openapi/terminal-payments.yaml get /terminal_payments/{id}","href":"/api-reference/terminal-payments/retrieve-a-terminal-payment"},{"title":"Request cancellation of an active Terminal Payment","deprecated":null,"version":null,"openapi":"/openapi/terminal-payments.yaml post /terminal_payments/{id}/cancel","href":"/api-reference/terminal-payments/request-cancellation-of-an-active-terminal-payment"},{"title":"Print a refund receipt on a Terminal","deprecated":null,"version":null,"openapi":"/openapi/terminal-payments.yaml post /terminals/{id}/print","href":"/api-reference/terminal-payments/print-a-refund-receipt-on-a-terminal"}]},{"group":"Terminals","pages":[{"title":"The Terminal object","sidebarTitle":"The Terminal object","icon":"cube","href":"/api-reference/terminals"},{"title":"List Terminals","deprecated":null,"version":null,"openapi":"/openapi/terminal-management.yaml get /terminals","href":"/api-reference/terminals/list-terminals"},{"title":"Retrieve a Terminal","deprecated":null,"version":null,"openapi":"/openapi/terminal-management.yaml get /terminals/{id}","href":"/api-reference/terminals/retrieve-a-terminal"},{"title":"Check a Terminal's connection","deprecated":null,"version":null,"openapi":"/openapi/terminal-management.yaml post /terminals/{id}/connection_observations","href":"/api-reference/terminals/check-a-terminals-connection"}]},{"group":"Terminal provisioning","pages":[{"title":"The provisioning request object","sidebarTitle":"The provisioning request object","icon":"cube","href":"/api-reference/terminal-provisioning"},{"title":"List Terminal provisioning options","deprecated":null,"version":null,"openapi":"/openapi/terminal-management.yaml get /terminal_provisioning_catalog","href":"/api-reference/terminal-provisioning/list-terminal-provisioning-options"},{"title":"Request physical Terminal hardware","deprecated":null,"version":null,"openapi":"/openapi/terminal-management.yaml post /terminal_provisioning_requests","href":"/api-reference/terminal-provisioning/request-physical-terminal-hardware"},{"title":"List Terminal provisioning requests","deprecated":null,"version":null,"openapi":"/openapi/terminal-management.yaml get /terminal_provisioning_requests","href":"/api-reference/terminal-provisioning/list-terminal-provisioning-requests"},{"title":"Retrieve a Terminal provisioning request","deprecated":null,"version":null,"openapi":"/openapi/terminal-management.yaml get /terminal_provisioning_requests/{id}","href":"/api-reference/terminal-provisioning/retrieve-a-terminal-provisioning-request"}]},{"group":"Terminal batches","pages":[{"title":"The terminal batch object","sidebarTitle":"The terminal batch object","icon":"cube","href":"/api-reference/terminal-batches"},{"title":"Refresh a Terminal's current batches","deprecated":null,"version":null,"openapi":"/openapi/terminal-management.yaml post /terminal_batches/refresh","href":"/api-reference/terminal-batches/refresh-a-terminals-current-batches"},{"title":"List Terminal batches","deprecated":null,"version":null,"openapi":"/openapi/terminal-management.yaml get /terminal_batches","href":"/api-reference/terminal-batches/list-terminal-batches"},{"title":"Retrieve a Terminal batch","deprecated":null,"version":null,"openapi":"/openapi/terminal-management.yaml get /terminal_batches/{id}","href":"/api-reference/terminal-batches/retrieve-a-terminal-batch"},{"title":"List Terminal batch items","deprecated":null,"version":null,"openapi":"/openapi/terminal-management.yaml get /terminal_batches/{id}/items","href":"/api-reference/terminal-batches/list-terminal-batch-items"},{"title":"List Terminal settlement profiles","deprecated":null,"version":null,"openapi":"/openapi/terminal-management.yaml get /settlement_profiles","href":"/api-reference/terminal-batches/list-terminal-settlement-profiles"},{"title":"Retrieve a Terminal settlement profile","deprecated":null,"version":null,"openapi":"/openapi/terminal-management.yaml get /settlement_profiles/{id}","href":"/api-reference/terminal-batches/retrieve-a-terminal-settlement-profile"}]},{"group":"Terminal locations","pages":[{"title":"The location object","sidebarTitle":"The location object","icon":"cube","href":"/api-reference/terminal-locations"},{"title":"Create a terminal Location","deprecated":null,"version":null,"openapi":"/openapi/terminal-locations.yaml post /locations","href":"/api-reference/terminal-locations/create-a-terminal-location"},{"title":"List terminal Locations","deprecated":null,"version":null,"openapi":"/openapi/terminal-locations.yaml get /locations","href":"/api-reference/terminal-locations/list-terminal-locations"},{"title":"Retrieve a terminal Location","deprecated":null,"version":null,"openapi":"/openapi/terminal-locations.yaml get /locations/{id}","href":"/api-reference/terminal-locations/retrieve-a-terminal-location"},{"title":"Update a terminal Location","deprecated":null,"version":null,"openapi":"/openapi/terminal-locations.yaml patch /locations/{id}","href":"/api-reference/terminal-locations/update-a-terminal-location"}]},{"group":"Terminal testing","pages":[{"title":"Override a Terminal payment scenario","deprecated":null,"version":null,"openapi":"/openapi/terminal-testing.yaml post /test_helpers/terminals/{id}/payment_scenarios","href":"/api-reference/terminal-testing/override-a-terminal-payment-scenario"},{"title":"Configure a Terminal batch scenario","deprecated":null,"version":null,"openapi":"/openapi/terminal-testing.yaml post /test_helpers/terminals/{id}/batch_scenarios","href":"/api-reference/terminal-testing/configure-a-terminal-batch-scenario"}]}]},{"group":"Customers and catalog","icon":"users","pages":[{"group":"Customers","pages":[{"title":"The Customer object","sidebarTitle":"The Customer object","icon":"cube","href":"/api-reference/customers"},{"title":"Create a customer","deprecated":null,"version":null,"openapi":"/openapi/customers.yaml post /customers","href":"/api-reference/customers/create-a-customer"},{"title":"List customers","deprecated":null,"version":null,"openapi":"/openapi/customers.yaml get /customers","href":"/api-reference/customers/list-customers"},{"title":"Retrieve a customer","deprecated":null,"version":null,"openapi":"/openapi/customers.yaml get /customers/{id}","href":"/api-reference/customers/retrieve-a-customer"},{"title":"Update a customer","deprecated":null,"version":null,"openapi":"/openapi/customers.yaml post /customers/{id}","href":"/api-reference/customers/update-a-customer"},{"title":"Delete a customer","deprecated":null,"version":null,"openapi":"/openapi/customers.yaml delete /customers/{id}","href":"/api-reference/customers/delete-a-customer"},{"title":"Restore a customer","deprecated":null,"version":null,"openapi":"/openapi/customers.yaml post /customers/{id}/restore","href":"/api-reference/customers/restore-a-customer"},{"title":"Set default payment method","deprecated":null,"version":null,"openapi":"/openapi/customers.yaml post /customers/{id}/default_payment_method","href":"/api-reference/customers/set-default-payment-method"}]},{"group":"Products and prices","pages":[{"title":"The product and price objects","sidebarTitle":"The product and price objects","icon":"cube","href":"/api-reference/catalog"},{"title":"Create a product","deprecated":null,"version":null,"openapi":"/openapi/catalog.yaml post /products","href":"/api-reference/products/create-a-product"},{"title":"List products","deprecated":null,"version":null,"openapi":"/openapi/catalog.yaml get /products","href":"/api-reference/products/list-products"},{"title":"Retrieve a product","deprecated":null,"version":null,"openapi":"/openapi/catalog.yaml get /products/{id}","href":"/api-reference/products/retrieve-a-product"},{"title":"Update a product","deprecated":null,"version":null,"openapi":"/openapi/catalog.yaml post /products/{id}","href":"/api-reference/products/update-a-product"},{"title":"Delete a product","deprecated":null,"version":null,"openapi":"/openapi/catalog.yaml delete /products/{id}","href":"/api-reference/products/delete-a-product"},{"title":"Set the default price","deprecated":null,"version":null,"openapi":"/openapi/catalog.yaml post /products/{id}/set_default_price","href":"/api-reference/products/set-the-default-price"},{"title":"Create a price","deprecated":null,"version":null,"openapi":"/openapi/catalog.yaml post /prices","href":"/api-reference/prices/create-a-price"},{"title":"List prices","deprecated":null,"version":null,"openapi":"/openapi/catalog.yaml get /prices","href":"/api-reference/prices/list-prices"},{"title":"Retrieve a price","deprecated":null,"version":null,"openapi":"/openapi/catalog.yaml get /prices/{id}","href":"/api-reference/prices/retrieve-a-price"},{"title":"Update a price","deprecated":null,"version":null,"openapi":"/openapi/catalog.yaml post /prices/{id}","href":"/api-reference/prices/update-a-price"}]}]},{"group":"Connect","icon":"sitemap","pages":[{"group":"Account links","pages":[{"title":"The Account Link object","sidebarTitle":"The Account Link object","icon":"cube","href":"/api-reference/account-links"},{"title":"Create a hosted onboarding link","deprecated":null,"version":null,"openapi":"/openapi/connect.yaml post /account_links","href":"/api-reference/account-links/create-a-hosted-onboarding-link"},{"title":"Retrieve hosted onboarding progress","deprecated":null,"version":null,"openapi":"/openapi/connect.yaml get /account_links/{id}","href":"/api-reference/account-links/retrieve-hosted-onboarding-progress"}]},{"group":"Account authorizations","pages":[{"title":"The account authorization object","sidebarTitle":"The account authorization object","icon":"cube","href":"/api-reference/account-authorizations"},{"title":"Start existing-Account authorization","deprecated":null,"version":null,"openapi":"/openapi/connect.yaml post /account_authorizations","href":"/api-reference/account-authorizations/start-existing-account-authorization"},{"title":"Exchange an Account-approved code","deprecated":null,"version":null,"openapi":"/openapi/connect.yaml post /account_authorizations/{id}/exchange","href":"/api-reference/account-authorizations/exchange-an-account-approved-code"}]},{"group":"Connected accounts","pages":[{"title":"The connected account object","sidebarTitle":"The connected account object","icon":"cube","href":"/api-reference/connected-accounts"},{"title":"List connected Accounts","deprecated":null,"version":null,"openapi":"/openapi/connect.yaml get /connected_accounts","href":"/api-reference/connected-accounts/list-connected-accounts"},{"title":"Retrieve a connected Account","deprecated":null,"version":null,"openapi":"/openapi/connect.yaml get /connected_accounts/{id}","href":"/api-reference/connected-accounts/retrieve-a-connected-account"}]}]},{"group":"Billing","icon":"file-invoice-dollar","pages":[{"group":"Subscriptions","pages":[{"title":"The subscription object","sidebarTitle":"The subscription object","icon":"cube","href":"/api-reference/subscriptions"},{"title":"Create a subscription","deprecated":null,"version":null,"openapi":"/openapi/subscriptions.yaml post /subscriptions","href":"/api-reference/subscriptions/create-a-subscription"},{"title":"List subscriptions","deprecated":null,"version":null,"openapi":"/openapi/subscriptions.yaml get /subscriptions","href":"/api-reference/subscriptions/list-subscriptions"},{"title":"Retrieve a subscription","deprecated":null,"version":null,"openapi":"/openapi/subscriptions.yaml get /subscriptions/{id}","href":"/api-reference/subscriptions/retrieve-a-subscription"},{"title":"Check subscription entitlement","deprecated":null,"version":null,"openapi":"/openapi/subscriptions.yaml get /subscriptions/{id}/entitlement","href":"/api-reference/subscriptions/check-subscription-entitlement"},{"title":"Cancel a subscription","deprecated":null,"version":null,"openapi":"/openapi/subscriptions.yaml post /subscriptions/{id}/cancel","href":"/api-reference/subscriptions/cancel-a-subscription"},{"title":"Resume a subscription","deprecated":null,"version":null,"openapi":"/openapi/subscriptions.yaml post /subscriptions/{id}/resume","href":"/api-reference/subscriptions/resume-a-subscription"},{"title":"Update subscription items","deprecated":null,"version":null,"openapi":"/openapi/subscriptions.yaml post /subscriptions/{id}/items","href":"/api-reference/subscriptions/update-subscription-items"},{"title":"Update collection method","deprecated":null,"version":null,"openapi":"/openapi/subscriptions.yaml post /subscriptions/{id}/collection_method","href":"/api-reference/subscriptions/update-collection-method"},{"title":"Update default payment method","deprecated":null,"version":null,"openapi":"/openapi/subscriptions.yaml post /subscriptions/{id}/default_payment_method","href":"/api-reference/subscriptions/update-default-payment-method"},{"title":"Update metadata","deprecated":null,"version":null,"openapi":"/openapi/subscriptions.yaml post /subscriptions/{id}/metadata","href":"/api-reference/subscriptions/update-metadata"}]},{"group":"Invoices","pages":[{"title":"The invoice object","sidebarTitle":"The invoice object","icon":"cube","href":"/api-reference/invoices"},{"title":"Create an invoice item","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml post /invoice_items","href":"/api-reference/invoice-items/create-an-invoice-item"},{"title":"Retrieve an invoice item","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml get /invoice_items/{id}","href":"/api-reference/invoice-items/retrieve-an-invoice-item"},{"title":"Update an invoice item","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml post /invoice_items/{id}","href":"/api-reference/invoice-items/update-an-invoice-item"},{"title":"Delete an invoice item","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml delete /invoice_items/{id}","href":"/api-reference/invoice-items/delete-an-invoice-item"},{"title":"Create an invoice","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml post /invoices","href":"/api-reference/invoices/create-an-invoice"},{"title":"List invoices","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml get /invoices","href":"/api-reference/invoices/list-invoices"},{"title":"Retrieve an invoice","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml get /invoices/{id}","href":"/api-reference/invoices/retrieve-an-invoice"},{"title":"Download an invoice PDF","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml get /invoices/{id}/pdf","href":"/api-reference/invoices/download-an-invoice-pdf"},{"title":"Update an invoice's payment method","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml post /invoices/{id}/payment_method","href":"/api-reference/invoices/update-an-invoices-payment-method"},{"title":"Add a line to a draft invoice","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml post /invoices/{id}/lines","href":"/api-reference/invoices/add-a-line-to-a-draft-invoice"},{"title":"Remove a line from a draft invoice","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml delete /invoices/{id}/lines/{line_id}","href":"/api-reference/invoices/remove-a-line-from-a-draft-invoice"},{"title":"Finalize an invoice","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml post /invoices/{id}/finalize","href":"/api-reference/invoices/finalize-an-invoice"},{"title":"Collect payment on an invoice","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml post /invoices/{id}/pay","href":"/api-reference/invoices/collect-payment-on-an-invoice"},{"title":"Void an invoice","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml post /invoices/{id}/void","href":"/api-reference/invoices/void-an-invoice"},{"title":"Mark an invoice uncollectible","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml post /invoices/{id}/mark_uncollectible","href":"/api-reference/invoices/mark-an-invoice-uncollectible"},{"title":"List an invoice's payment attempts","deprecated":null,"version":null,"openapi":"/openapi/invoices.yaml get /invoices/{id}/payment_attempts","href":"/api-reference/invoices/list-an-invoices-payment-attempts"}]},{"group":"Credit notes","pages":[{"title":"The credit note object","sidebarTitle":"The credit note object","icon":"cube","href":"/api-reference/credit-notes"},{"title":"Create a credit note","deprecated":null,"version":null,"openapi":"/openapi/credit_notes.yaml post /credit_notes","href":"/api-reference/credit-notes/create-a-credit-note"},{"title":"Preview a credit note","deprecated":null,"version":null,"openapi":"/openapi/credit_notes.yaml post /credit_notes/preview","href":"/api-reference/credit-notes/preview-a-credit-note"},{"title":"List credit notes","deprecated":null,"version":null,"openapi":"/openapi/credit_notes.yaml get /credit_notes","href":"/api-reference/credit-notes/list-credit-notes"},{"title":"Retrieve a credit note","deprecated":null,"version":null,"openapi":"/openapi/credit_notes.yaml get /credit_notes/{id}","href":"/api-reference/credit-notes/retrieve-a-credit-note"},{"title":"Void a credit note","deprecated":null,"version":null,"openapi":"/openapi/credit_notes.yaml post /credit_notes/{id}/void","href":"/api-reference/credit-notes/void-a-credit-note"},{"title":"Download a credit note as PDF","deprecated":null,"version":null,"openapi":"/openapi/credit_notes.yaml get /credit_notes/{id}/pdf","href":"/api-reference/credit-notes/download-a-credit-note-as-pdf"}]},{"group":"Test clocks","pages":[{"title":"The test clock object","sidebarTitle":"The test clock object","icon":"cube","href":"/api-reference/test-clocks"},{"title":"Create a test clock","deprecated":null,"version":null,"openapi":"/openapi/test-clocks.yaml post /test_clocks","href":"/api-reference/test-clocks/create-a-test-clock"},{"title":"Retrieve a test clock","deprecated":null,"version":null,"openapi":"/openapi/test-clocks.yaml get /test_clocks/{id}","href":"/api-reference/test-clocks/retrieve-a-test-clock"},{"title":"Advance a test clock","deprecated":null,"version":null,"openapi":"/openapi/test-clocks.yaml post /test_clocks/{id}/advance","href":"/api-reference/test-clocks/advance-a-test-clock"},{"title":"Arm the next subscription collection outcome","deprecated":null,"version":null,"openapi":"/openapi/test-clocks.yaml post /test_helpers/subscriptions/{id}/collection_scenarios","href":"/api-reference/test-clocks/arm-the-next-subscription-collection-outcome"}]}]},{"group":"Webhooks","icon":"tower-broadcast","pages":[{"group":"Webhook endpoints","pages":[{"title":"The webhook endpoint object","sidebarTitle":"The webhook endpoint object","icon":"cube","href":"/api-reference/webhook-endpoints"},{"title":"Create a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi/webhook_endpoints.yaml post /webhook_endpoints","href":"/api-reference/webhook-endpoints/create-a-webhook-endpoint"},{"title":"List webhook endpoints","deprecated":null,"version":null,"openapi":"/openapi/webhook_endpoints.yaml get /webhook_endpoints","href":"/api-reference/webhook-endpoints/list-webhook-endpoints"},{"title":"Retrieve a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi/webhook_endpoints.yaml get /webhook_endpoints/{id}","href":"/api-reference/webhook-endpoints/retrieve-a-webhook-endpoint"},{"title":"Update a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi/webhook_endpoints.yaml post /webhook_endpoints/{id}","href":"/api-reference/webhook-endpoints/update-a-webhook-endpoint"},{"title":"Update a webhook endpoint (PATCH)","deprecated":null,"version":null,"openapi":"/openapi/webhook_endpoints.yaml patch /webhook_endpoints/{id}","href":"/api-reference/webhook-endpoints/update-a-webhook-endpoint-patch"},{"title":"Delete a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi/webhook_endpoints.yaml delete /webhook_endpoints/{id}","href":"/api-reference/webhook-endpoints/delete-a-webhook-endpoint"},{"title":"Rotate a webhook endpoint's signing secret","deprecated":null,"version":null,"openapi":"/openapi/webhook_endpoints.yaml post /webhook_endpoints/{id}/rotate_secret","href":"/api-reference/webhook-endpoints/rotate-a-webhook-endpoints-signing-secret"}]}]}]},{"tab":"Playground","icon":"laptop-code","pages":[{"title":"Playground","href":"/playground"}]}]},"basePath":"","title":"Create a spend intent - Ionic Docs","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CyAr6xD1.js","snippetPresets-BSqedH3o.js","utils-DXfQSZU_.js","style-to-object-BY3JEAdk.js","utils-DiMyLQC-.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DvPCxzT8.js","conditional-requirements-CFM0id0Q.js","cloneDeep-dx7iM-7h.js","_Uint8Array-DpQIK2Aw.js","isObject-FP1Yky1u.js","ApiExamples-B2sy5qvP.js","usePlaygroundInputsStore-BDc5FJKB.js","shallow-DxZq5uhD.js","isEqual-Bl_IuwU4.js","CodeSnippets-D1UoeS-I.js","CodeSnippet-C87it1Zg.js","use-playground-group-access-DyECiQ2v.js","Page-wigwbDGe.js","api-description-markdown-DHZIfeWZ.js","DynamicMarkdown-D8KwOkxZ.js","SectionHeading-uish4Ed2.js","MethodPill-DR7O5MCP.js","getPastedJson-D2WQib0m.js","Check2Icon-CUuzblYS.js","axios-CsQoIw0U.js","Markdown-K6_WYP3x.js","AssistantPageLink-BrppVW5v.js","dist-OmDnwAnM.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}