create_payment_mandate
Create an AP2 payment mandate: a pre-authorization that lets your agent place orders autonomously (human-not-present) within strict limits — total budget, optional per-order cap, currency, optional seller/category scope, and expiry. Returns a mandate_id to pass to place_order. Each order authorized against it is recorded as a verifiable intent and decrements the budget. Requires authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | Currency, e.g. USD (default USD). Must match the order currency to authorize. | |
| expires_at | No | Optional ISO timestamp after which the mandate is no longer valid. | |
| seller_scope | No | Optional list of allowed seller_user_id UUIDs. Omit = any seller. | |
| category_scope | No | Optional list of allowed category codes (mall_category_code). Omit = any category. | |
| max_total_amount | Yes | Total spend budget for this mandate (required, > 0) | |
| max_per_order_amount | No | Optional per-order cap |