confirm_batch_mail
Pays for a reviewed mail batch from prepaid credits and queues it for printing, debiting the batch total once per confirmation.
Instructions
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; then poll get_batch_mail until submitted and use advance_test_batch_mail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_id | Yes | The batch's id (UUID) from create_batch_mail or list_batch_mail. | |
| 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. |