Universal purchase
purchaseAttempt a purchase for a quote_id from prepare_order using an explicitly selected buyer_mode and payment_method supported by payment_capabilities. stripe_checkout requires human/delegated confirmation, accepted terms, customer email and a customer-paid Stripe link; agent_wallet and stripe_off_session are available only when their offline-sandbox capabilities are enabled and the machine has the necessary authority or balance. This can create an order or start a payment; reuse the SAME idempotency_key on retries and never infer success before verified payment.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"quote_id": "<quote_id>",
"buyer_mode": "<buyer_mode>",
"payment_method": "<payment_method>"
},
"name": "purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language for names and texts (default en). | |
| No | |||
| quote_id | Yes | ||
| buyer_mode | Yes | ||
| payment_method | Yes | ||
| terms_accepted | No | ||
| idempotency_key | No | ||
| authorization_id | No | Required for stripe_off_session; from create_card_authorization. | |
| customer_confirmed | No |