Pay for an order
pay_orderHow to pay an order that waits for payment, as an agent, over HTTP 402: an Audit (audit) or its renewal (renewal), a Payment proof (proof), or the Monthly drive (monthly or yearly, one period paid ahead, not renewed by itself). It gives the payment URL, the price and the protocols on now (protocols; MPP: a card through a Stripe Shared Payment Token, or USDC on Tempo or Base; x402: USDC on Base). A POST to the URL without a credential answers 402 with the challenges of the rails that are on (WWW-Authenticate for MPP, PAYMENT-REQUIRED for x402); the same request with a credential from an MPP client or x402 wallet answers with the receipt and queues the drive. The price is what the card checkout charges: a renewal's price, an Audit's paid plan and its purchase with your code at cost, less a promotion code of ours given with the order. The price includes any VAT and every payment has a receipt; buyer {vat_id, company, address} as the JSON body of both requests, or with the order, puts the business on our invoice. On a person's account the card checkout works too (payment.url from ordering); an agent's own account has none until a person claims it. test_mode: true means Stripe's test mode, where no real money moves.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | The order's id, from order or my_orders |