Authorize credit spending
authorize_credit_spendingDelegate prepaid credit: let one agent buy named offers (plan periods, posting passes, listing time) within a budget, a per-purchase cap and an expiry. Charges nothing. Requires scope 'billing:authorize'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offers | Yes | ||
| agent_id | Yes | Agent allowed to spend; it needs orders:write for plans, boards:publish for passes and boards:extend for listing time. | |
| accept_terms | No | ||
| budget_cents | Yes | Total this agent may spend under this authorization. | |
| expires_in_days | No | ||
| idempotency_key | No | Optional. Same key + same arguments within 24 h returns the original result. | |
| max_order_cents | Yes | Largest single purchase allowed. |