Create a mail order
create_orderCreates an order from a quote, with a spending cap, acceptance of the standardized address, the sender's US return address and an idempotency key. The same key with the same request returns the same order. Payment methods: checkout returns a link for a person to approve and pay; mpp and x402 return payment_url for an authorized payment client, when enabled; mandate charges a card saved under a standing permission at once if the letter is inside its limits, and otherwise refuses the order with mandate_declined.
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>",
"quote_token": "<quote_token>",
"max_amount_cents": "<max_amount_cents>",
"idempotency_key": "<idempotency_key>",
"accept_standardized_address": "<accept_standardized_address>",
"sender": "<sender>"
},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | Yes | ||
| quote_id | Yes | ||
| mandate_id | No | ||
| quote_token | Yes | ||
| mandate_token | No | ||
| payment_method | No | ||
| idempotency_key | Yes | ||
| max_amount_cents | Yes | ||
| accept_standardized_address | Yes |