Merchants
Merchants represent sellers on your platform. They are used in platform calculations to provide seller context for tax calculations.Merchants are available starting with API version
2026-01-01. You must include the X-API-Version: 2026-01-01 header to use merchant endpoints.The Merchant Object
Attributes
Merchant vs Customer
It’s important to understand the difference between merchants and customers:Using reference_merchant_id
You can use your own ID system by providing areference_merchant_id when creating a merchant. This allows you to:
- Create merchants with your ID:
POST /tax/merchantswithreference_merchant_id - Retrieve by your ID:
GET /tax/merchants/my-seller-123 - Update by your ID:
POST /tax/merchants/my-seller-123 - Delete by your ID:
DELETE /tax/merchants/my-seller-123 - Calculate using your ID:
{ "merchant": { "merchant_id": "my-seller-123" } }
Testmode Isolation
Merchants created with a test API key are completely isolated from merchants created with a live API key:- Test merchants are only visible with test API keys
- Live merchants are only visible with live API keys
- A
merchant_not_founderror is returned when trying to access a merchant from the wrong mode
Default Address
The merchant’sdefault_address is used as the origin address in platform calculations when determining tax sourcing rules. Some jurisdictions (like origin-based states in the US) use the seller’s location to determine tax rates.
Tax IDs
Store merchant tax IDs for B2B scenarios:us-ein- US Employer Identification Numberfr-vat- France VAT numberde-vat- Germany VAT numbergb-vat- UK VAT number
Soft Delete
When you delete a merchant, it’s soft-deleted (thediscarded_at timestamp is set):
- The merchant no longer appears in
GETorLISToperations - The merchant cannot be used in new platform calculations
- Historical data is preserved for reporting