Calculate invoice
calculate_invoiceCalculate an order's subtotal, tier discount, 18% VAT, shipping, and total from customer ID and line items, routing through the legacy, shadow, or modern billing implementation.
Instructions
Calculate subtotal, tier discount, 18% VAT, shipping and total for an order. Routed through the strangler facade (legacy, shadow or modern implementation).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Order lines | |
| customerId | Yes | Customer id from list_customers |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax | Yes | ||
| total | Yes | ||
| discount | Yes | ||
| shipping | Yes | ||
| subtotal | Yes |