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. Your platform fees can be taxed separately from the order. Once the customer pays, record the sale with Create platform transactions.Platform endpoints are new in 2026-01-01 and require
X-API-Version: 2026-01-01.Where platform calculations fit
The Platform calculation object
Attributes
string
The ID of the platform calculation. Use it to create platform transactions.
string, value is "tax.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
array of strings
Echo of the
roles you sent.array of objects
Tax on the order, one entry per line item in
order_details.object
array of objects
One row per taxing jurisdiction.
number
Statutory rate for the jurisdiction, as a decimal fraction (
0.0875 = 8.75%). Some rates apply to only part of the amount, so don’t sum these. See Summing tax rates.string
Descriptive rate classification, e.g.
SALES TAX.string
Name of the jurisdiction, e.g.
California.string
Name of the tax authority, e.g.
California State.enum
STATE, COUNTY, CITY, or DISTRICT.enum
SALES, USE, VAT, or GST.number
Fixed fee charged by this jurisdiction.
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.integer
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. Only present when fee_details is sent.object
Totals for the order and for the fees, kept separate.
timestamp
Unix seconds when the quoted rates expire.
Always charge the returned
tax_amount. For an effective rate, divide tax_amount by amount_excluding_tax instead of adding up tax_rate values. See Summing tax rates.The Platform calculation object
Create a platform calculation
Quotes tax for an order and, optionally, your platform fees on it. Try it in the API reference.Parameters
object
required
The buyer.
object
required
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 for the customer apply for the destination jurisdiction. Not applied to fee_details, whose buyer is the merchant. If no customer matches, returns CUSTOMER_NOT_FOUND unless default_customer_type is sent.enum
default:"CONSUMER"
CONSUMER or BUSINESS.object
required
object
required
The order.
string
required
ISO 4217 currency code, e.g.
USD or EUR.boolean
required
Whether line item amounts already include tax.
enum
default:"auto"
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 B2B rules still apply.
auto or forced: disabled is rejected.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.integer
required
Number of units. Taxable base is
amount × quantity.string
Tax category from the category list, e.g.
GENERAL_MERCHANDISE or SAAS_GENERAL.string
Your line item ID.
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. Same shape as
order_details.string
required
ISO 4217 currency code.
boolean
required
Whether fee amounts already include tax.
enum
default:"auto"
auto or disabled. forced isn’t allowed: the fee is your own tax event toward 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.enum
CONSUMER or BUSINESS. Used when customer.id isn’t found in Numeral: the order is priced with this customer type instead of returning CUSTOMER_NOT_FOUND. 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.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 liability is reported separately from the order’s. Marketplace providers and merchants of record get one transaction with all order items. 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.
string
Your payment ID, if 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.string
ISO 4217 currency of the transaction.
string
Currency the tax will be filed in.
array of objects
The line items, with the same fields as a transaction’s line items.
boolean
true if made with a test API key.timestamp
When the sale was processed.
POST /tax/platform/transactions