API Changelog
Version 2026-01-01
Release Date: January 1, 2026This version introduces Merchant Management and Platform Calculations for marketplace and payment processor scenarios.
New Endpoints
Merchant CRUD
Full create, read, update, and delete operations for merchants (sellers) on your platform.
POST /tax/merchants- Create merchantGET /tax/merchants- List merchantsGET /tax/merchants/:id- Get merchantPOST /tax/merchants/:id- Update merchantDELETE /tax/merchants/:id- Delete merchant
Platform Calculations
Tax calculations for marketplace transactions with merchant context.
POST /tax/platform/calculations
Platform Transactions
Convert platform calculations into recorded transactions for tax reporting.
POST /tax/platform/transactions
Breaking Changes
New Features
Merchant Management
Create and manage merchants (sellers) on your platform:- Use your own IDs via
reference_merchant_id - Store merchant tax IDs for B2B transactions
- Default addresses used as origin in calculations
- Testmode isolation (test merchants separate from live)
Platform Calculations
Calculate taxes for marketplace/platform transactions:- Per-unit pricing -
amount × quantity = taxable base - Merchant context - Link calculations to specific sellers
- Platform roles - Specify your role (marketplace, payment processor, merchant of record)
- Fee calculations - Separate tax calculation for platform fees
- Enhanced response - Includes
tax_authority_name,tax_authority_type,tax_type
Platform Roles
Specify your role in the transaction:| Role | Description |
|---|---|
marketplace_provider | You operate a marketplace connecting buyers and sellers |
payment_processor | You process payments for the transaction |
merchant_of_record | You are the legal seller of record |
Platform Transactions
Convert platform calculations into recorded transactions for tax reporting and filing:- Returns a list - May return one or two transactions depending on your platform role
- Payment processors - Receive separate
orderandfeetransactions - Marketplace providers / Merchants of record - Receive a single
ordertransaction - Transaction types -
type: "order"for sales,type: "fee"for platform fees
| Platform Role | Transactions Created |
|---|---|
payment_processor | 2 (order + fee) |
marketplace_provider | 1 (order only) |
merchant_of_record | 1 (order only) |
Fee Calculations
Calculate taxes on platform fees separately from order items:Enhanced Tax Response
Platform calculations include additional jurisdiction details:| Field | Description |
|---|---|
tax_authority_name | Human-readable authority name |
tax_authority_type | STATE, COUNTY, CITY, or DISTRICT |
tax_type | SALES, USE, VAT, or GST |
New Error Format
Previous format (2025-05-12 and earlier):- Flattened structure - No more nested
errorobject - HTTP status in response -
codefield contains the HTTP status code - Uppercase error types - Error types are now SCREAMING_SNAKE_CASE
- Consistent typing - Use the
typefield for programmatic error handling
Error Codes Reference
See the complete list of error types and their meanings.
Migration Guide
From 2025-05-12 to 2026-01-01
- Update error handling - Error responses use a new flattened format with
code,type, andmessagefields - New endpoints require
X-API-Version: 2026-01-01header - Platform calculations use per-unit amounts (important!)
Adopting Platform Calculations
- Create merchants for your sellers
- Use
/tax/platform/calculationsinstead of/tax/calculations - Remember:
amountis per-unit, taxable base =amount × quantity - Specify your
rolesin each request
Previous Versions
| Version | Key Features |
|---|---|
| 2025-05-12 | Customer types (B2B/B2C), tax IDs, 32 currencies, automatic_tax |
| 2024-09-01 | Base version with core tax calculation features |