confirm_batch_mail
Pay for a draft from the account's prepaid credits and queue it for printing. Debits exactly batch.pricing.total_cents once (repeating returns the current state). Only after the person has seen the proof. The key's policies apply: a key that requires approval cannot pay (the owner confirms in the dashboard), max_daily_pieces counts the whole batch, and max_cost_cents refuses before any debit. A sandbox key pays nothing, and a sandbox batch moves forward only through the sandbox advance call.
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": {
"batch_id": "<batch_id>"
},
"name": "confirm_batch_mail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_id | Yes | The batch's id (UUID). | |
| max_cost_cents | No | Refuse before any debit if batch.pricing.total_cents is above this, in cents. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | The batch after payment, credits_charged_cents, credit_balance_cents, sandbox and next_step. |