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
Your own identifier for the task. It isn’t unique, so don’t use it to prevent duplicates.
The exact hosts where card details can be entered, approved by the owner. Redirects don’t add hosts.
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.
Whether retrying the claim with its original
Idempotency-Key can still return the card details.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.Spending limits the request exceeds. Empty when it is within every limit.
A breach with
on_breach: "block" ends the request as blocked.
