Skip to main content
POST
Claim a spend intent

Authorizations

Authorization
string
header
required

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]+$

Path Parameters

id
string
required
Pattern: ^spi_[A-Za-z0-9]{14}$

Body

application/json

The body is of type object.

Response

The card details for checkout. Keep this response private.

One protected bundle per intent. Original key recovers the exact same values until original expiry while currently authorized. No refreshed TTL. Generic idempotency caches must never store this response.

spend_intent_id
string
required
Pattern: ^spi_[A-Za-z0-9]{14}$
card
object
required
billing_details
object
required
proxy
object
required
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.

Required array length: 1 - 20 elements
Maximum string length: 253
Pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)+$
browser_requirements
object
required
expires_at
integer<int64>
required

Unix epoch seconds. Equality with a deadline is expired.

Required range: x >= 0