Skip to main content
A spend intent (spi_…) asks a business to approve one purchase on one of its cards. Your agent creates it, a business owner approves or declines it at approval_url, and your browser worker then claims the card details and enters them at the seller’s checkout. For the full flow, see Build browser purchases with Spend.

Attributes

string
Unique identifier for the spend intent (spi_…).
string
The business whose card is used.
string
The agent that created the request. Only this agent can read, claim, or cancel it.
boolean
true in live mode, false in test mode.
integer
Increases each time the spend intent changes.
enum
What the card is for. Use payment.
string
The card the agent asked to use (spcard_…).
string
What the agent is buying, shown to the owner during approval.
object
The seller’s name and checkout_url, shown to the owner during approval.
integer
The purchase amount in the smallest currency unit. 6000 is $60.00.
string
Three-letter ISO currency code, in lowercase.
object
The name, optional email, and address to enter at checkout.
string | null
Your own identifier for the task. It isn’t unique, so don’t use it to prevent duplicates.
enum
Where the request is in approval and card delivery.
array of strings
The exact hosts where card details can be entered, approved by the owner. Redirects don’t add hosts.
string | null
The Ionic page where an owner reviews and decides the request. Send the owner here.
string | null
Where the owner returns after deciding, for a platform’s agent. Retrieve the spend intent to confirm the decision; the redirect alone doesn’t confirm it.
timestamp
When the request was created, in Unix seconds.
timestamp
When a pending request expires if it isn’t approved.
timestamp | null
When the final approval was given.
timestamp | null
When card details were first delivered.
timestamp | null
When the request was canceled.
timestamp | null
The deadline to claim: approved_at plus claim_within_seconds. null before approval.
timestamp | null
When the delivered card details stop working. Retrying a claim doesn’t extend it.
boolean
Whether retrying the claim with its original Idempotency-Key can still return the card details.
enum
Whether card details may have left Ionic: none, possible, or issued.
integer
Seconds after approval to claim. Defaults to 300, which is also the maximum.
array of objects
Each approval the request needs, in the order they happen. Each has authority (owner, platform, or business), status, over_limit, and decided_at. The card owner decides last. Empty on a blocked request.
array of objects
Spending limits the request exceeds. Empty when it is within every limit. A breach with on_breach: "block" ends the request as blocked.
timestamp | null
When a blocking limit ended the request, at creation or at final approval.