Confirm order
o2c_confirm_orderAccept the order into the books. Runs the credit check. This is the credit gate, and it is the only one. Exposure counts open AR plus the uninvoiced value of everything already confirmed — a limit that only looks at issued invoices lets a slow biller be robbed politely.
If the check fails, that is the answer. Do not confirm around it by splitting the order, raising the limit, or invoicing early. Report the shortfall and let a human decide; a refusal recorded in the log is worth more than an order. Effects: order.status -> confirmed; value counts against the credit limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | The order to confirm. An existing order id. |