Skip to main content
POST
Create a Tax Calculation

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
customer_details
object | null

The tax calculation customer's details, if no organization is created. Useful when you need to display tax rates for a guest or to init a shipping cart. Cannot be used along with customer_id. Leave blank if your account's self-owned organization is the customer of the transaction

customer_id
string | null

The ID of the organization this tax calculation refers as a customer. Cannot be used along with customer_details. Leave blank if your account's self-owned organization is the customer of the transaction.

items
object[]

A list of items the customer is buying or willing to buy. At least one item is required. Each item must have a unique reference within the calculation object.

supplier_details
object | null

The tax calculation supplier's details, if no organization is created. Useful when you need to display tax rates for a guest or to init a shipping cart. Cannot be used along with supplier_id. Leave blank if your account's self-owned organization is the supplier of the transaction

supplier_id
string | null

The ID of the organization this tax calculation refers as a merchant/supplier. Cannot be used along with supplier_details. Leave blank if your account's self-owned organization is the supplier/merchant of the transaction.

Response

successful

id
string
livemode
boolean
object
enum<string>
Available options:
tax_calculation
customer_details
object

The tax calculation customer's details

items
object[]

The list of items the customer is buying or willing to buy, for which tax has been calculated

supplier_details
object

The tax calculation supplier's details