Calculate tax
numeral_calculate_taxCalculate sales tax / VAT for an order — a STATELESS quote that persists nothing (record it later with numeral_create_transaction using the returned calculation id). Returns per-jurisdiction rates, total_tax_amount, and totals. Provide a customer address and one or more line items (each needs reference_product_id OR product_category). Amounts are in the currency's smallest unit (cents). Numeral: POST /tax/calculations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer | Yes | Customer details — address is required. | |
| metadata | No | Arbitrary string key/value metadata. | |
| order_details | Yes | Order details. | |
| origin_address | No | The address a product ships from. Optional on 2024-09-01; required on API version 2025-05-12+. |