finalize_order
Finalize a draft order and deduct the payment from the user's wallet. Optionally include a tip in cents, donated to the school's PAC.
Instructions
Finalizes a draft order, deducting payment from the wallet. Optionally include tip_cents (donated to the school's PAC). This is a FINANCIAL + WRITE operation - always confirm with the user before calling. Idempotent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | Order ID from create_draft_order | |
| tip_cents | No | Tip in cents (donated to school PAC) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| status | No | ||
| tipCents | No | ||
| totalCents | No | ||
| balanceCents | No | ||
| itemTotalCents | No |