A platform calculation quotes tax for a sale where a merchant is the seller and you facilitate it. Use it if you’re a marketplace, a payment processor, or a merchant of record. The order and your platform fees are taxed separately: the order where the customer is, the fees where the merchant is. Once the customer pays, record the sale with Create platform transactions.
Where platform calculations fit
The Platform calculation object
Attributes
string
The ID of the platform calculation,
plat_calc_…. Use it to create platform transactions.string, value is "tax.platform_calculation"
String representing the object’s type.
boolean
true if made with a test API key.string
ISO 4217 currency code of the calculation.
object
The merchant used in this calculation.
array of strings
Echo of the
roles you sent.array of objects
Tax on the order, one entry per line item in
order_details. Taxed where the customer is.string
Numeral-generated ID for this line item.
object
array of objects
One row per taxing jurisdiction.
number
Statutory rate for the jurisdiction, as a decimal fraction (
0.029 = 2.9%). Doesn’t include flat fees.number
Unrounded tax due for this jurisdiction, in the currency’s smallest unit.
number
Flat fee charged by this jurisdiction, in the currency’s smallest unit.
string
Name of the tax, e.g.
GENERAL STATE SALES TAX.string
Taxing jurisdiction, e.g.
Colorado or Adams.string
Type of authority. Often empty.
enum
SALES, USE, VAT, or GST.integer
Tax for this line item, in the currency’s smallest unit.
integer
Line amount before tax (
amount × quantity).integer
amount_excluding_tax + tax_amount.number
Echo of the quantity you sent.
array of objects
Tax on your platform fees, one entry per line item in
fee_details. Same fields as line_items, including note on every tax_jurisdictions row. Taxed where the merchant is, because the merchant pays the fee. Only present when fee_details is sent.object
Totals for the order and for the fees, kept separate.
object
Totals for
line_items.integer
Total tax on the order, in the currency’s smallest unit.
integer
Order total excluding tax.
integer
Order total including tax.
string
ISO 4217 currency code.
number
New in 2026-11-01.
tax_amount / amount_excluding_tax for the order, as a decimal fraction (0.085 = 8.5%), up to 6 decimal places. Includes flat fees. 0 when nothing is taxed. See Effective tax rate.object
Totals for
fee_line_items, with the same fields as totals.order. Its effective_tax_rate covers the fees only. Only present when fee_details is sent.enum
address or ip: which input set the location.enum
STREET, POSTAL_PLUS, POSTAL, PROVINCE, COUNTRY, or APPROXIMATED.object
There’s no combined order-plus-fees rate. The order and the fees are taxed in different places, so their rows often come from two different states. In the example, the order is taxed in Colorado (the customer) and the fee in California (the merchant).
The Platform calculation object
Create a platform calculation
Quotes tax for an order and, optionally, your platform fees on it. SendX-API-Version on every request. Try it in the API reference.Parameters
object
required
Who is buying. At least one of
customer.address or customer.ip is required.object
object
IP address for location lookup when you don’t have a full address. See IP-based tax resolution.
string
The
cust_… ID or your own reference ID of a customer you created in Numeral. Applies the customer’s exemptions to the order: a tax-exempt customer gets zero tax, and exemption certificates on file apply for the destination jurisdiction. Not applied to fee_details, whose buyer is the merchant.enum
default:"CONSUMER"
CONSUMER or BUSINESS.object
required
object
required
The order. Taxed where the customer is.
string
required
ISO 4217 currency code. See supported currencies.
boolean
required
Whether line item amounts already include tax.
enum
required
autoreturns real rates only where you have an active tax registration, and 0 elsewhere.disabledalways returns 0.forcedreturns real destination rates whatever your own registrations are. Use it as a payment processor to show the rates the merchant would owe. Only valid whenrolesis exactly["payment_processor"]. Customer exemptions, reverse charge and business rules still apply.
auto or forced.array of objects
required
One entry per product.
integer
required
Per-unit price in the currency’s smallest unit. For a $25.00 item, send
2500. Taxable base is amount × quantity.integer
required
Number of units.
string
Tax category from the category list, e.g.
GENERAL_MERCHANDISE.string
Your product ID, as created in Numeral.
string
Your line item ID, echoed back.
array of enums
required
Your role in this sale. One or more of:
marketplace_provider: you run a marketplace that connects buyers and sellers.payment_processor: you process the payment.merchant_of_record: you’re the legal seller of record.
object
Your platform fees, taxed separately from the order. Taxed where the merchant is, because the merchant pays the fee. Same shape as
order_details.string
required
ISO 4217 currency code.
boolean
required
Whether fee amounts already include tax.
enum
required
auto or disabled. forced isn’t allowed: the fee is your own sale to the merchant, so your own registrations apply.array of objects
required
One entry per fee, with the same fields as
order_details.line_items. amount is per unit.integer
When the sale happened, Unix seconds. Rates and rules, such as sales tax holidays, are evaluated as of this time. Defaults to now.
enum
CONSUMER or BUSINESS. Used when customer.id isn’t found in Numeral, instead of returning an error. Lets you always send a customer ID without creating the customer first. If the customer is found, its exemptions apply as normal.Returns
A Platform calculation object.POST /tax/platform/calculations
Response
Create platform transactions
Records the sale from a platform calculation once the customer pays. Numeral uses it for reporting and filing. Try it in the API reference.How many transactions are created depends on theroles in the calculation:Payment processors get two transactions, so the fee’s tax is reported separately from the order’s. Marketplace providers and merchants of record get one transaction. Fee tax, if calculated, is included in it.
Parameters
string
required
The
id of the platform calculation to record.string
required
Your unique ID for this order.
string
Your ID for the payment.
integer
When the sale was processed, as a Unix timestamp.
Returns
An object withobject: "list" and a transactions array: two transactions for payment processors, one otherwise.array of objects
The transactions created.
string
The ID of the transaction,
tr_….string, value is "tax.transaction"
String representing the object’s type.
string
The platform calculation this transaction was created from.
string
Your order ID, as sent.
enum
order for the sale, or fee for the platform fee. fee transactions are created for payment processors only.array of strings
Your role for this transaction. Empty on
fee transactions.boolean
true if made with a test API key.POST /tax/platform/transactions