Skip to main content

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 merchant
  • GET /tax/merchants - List merchants
  • GET /tax/merchants/:id - Get merchant
  • POST /tax/merchants/:id - Update merchant
  • DELETE /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

Amount is Per-Unit in Platform CalculationsThe most significant change in this version is how amount is interpreted in the /platform/calculations endpoint.Example:

New Features

Merchant Management

Create and manage merchants (sellers) on your platform:
Key features:
  • 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:
Key features:
  • 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:

Platform Transactions

Convert platform calculations into recorded transactions for tax reporting and filing:
Key features:
  • Returns a list - May return one or two transactions depending on your platform role
  • Payment processors - Receive separate order and fee transactions
  • Marketplace providers / Merchants of record - Receive a single order transaction
  • Transaction types - type: "order" for sales, type: "fee" for platform fees

Fee Calculations

Calculate taxes on platform fees separately from order items:
The response includes separate totals:

Enhanced Tax Response

Platform calculations include additional jurisdiction details:

New Error Format

Breaking Change: Simplified Error ResponseError responses now use a flattened structure instead of the nested error object from previous versions.
Previous format (2025-05-12 and earlier):
New format (2026-01-01):
Key changes:
  • Flattened structure - No more nested error object
  • HTTP status in response - code field contains the HTTP status code
  • Uppercase error types - Error types are now SCREAMING_SNAKE_CASE
  • Consistent typing - Use the type field 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

  1. Update error handling - Error responses use a new flattened format with code, type, and message fields
  2. New endpoints require X-API-Version: 2026-01-01 header
  3. Platform calculations use per-unit amounts (important!)

Adopting Platform Calculations

  1. Create merchants for your sellers
  2. Use /tax/platform/calculations instead of /tax/calculations
  3. Remember: amount is per-unit, taxable base = amount × quantity
  4. Specify your roles in each request

Previous Versions