Skip to main content
Run these tests in test mode, with the test card and checkout Ionic provides when it enables Spend for you. You also need a business owner who can complete the card and approval steps. Don’t write keys, claim responses, card details, or security codes to logs, recordings, screenshots, or model prompts. Record IDs and outcomes for each test instead.

Complete one approved purchase

  1. Create a setup session and complete it as the business owner. Retrieve it until status is completed and card_id is set.
  2. Give the agent access to the card. Confirm GET /v1/spend/cards returns it for the agent’s key and business.
  3. Create a spend intent with a stored idempotency key. Complete every approval, then retrieve the spend intent and check its status.
  4. Take the job’s lock and claim with a separate stored key. Record that checkout may start before you enter any card fields.
  5. Submit once. Record the seller’s order ID and outcome. claimed alone doesn’t mean the purchase succeeded.

Test refusals and recovery

Handle claim errors

For each claim error, follow Recover without creating another purchase. If the claim window closes before checkout, stop the job and confirm nothing was submitted before you request a new approval. See also requests and errors.