Create spending authorization
create_spending_authorizationLegacy frontier-offer budgets only. For current model services, use authorize_credit_spending. Requires scope 'billing:authorize'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rails | No | ||
| offers | No | ||
| agent_id | Yes | The agent allowed to spend. It needs scope orders:write. | |
| accept_terms | No | Required: the principal accepts the current terms for the Customer. See GET /v1/offers 'legal'. | |
| budget_cents | Yes | Total the agent may commit, in US cents. | |
| failure_remedy | No | If fulfilment fails: refund card payments, or credit the account. x402 and credit payments are always credited. | refund |
| expires_in_days | No | ||
| idempotency_key | No | Optional. Same key + same arguments within 24 h returns the original result. | |
| max_order_cents | No | Largest single order, in US cents. | |
| stripe_test_payment_method | No | Stripe TEST payment method token such as pm_card_visa, attached without a browser. Omit it to get a Stripe Checkout setup URL for the principal instead. |