Tax

Calculate tax

Quotes the tax on an offer for a buyer’s location and, for a company, its tax number. Nothing is written.

Authorization

bearer charges:read
AuthorizationBearer <token>

A v1 API key; the scope named is the one the route needs.

In: header

Scope: charges:read

Header Parameters

Idempotency-Key?string

Names the act so a retry under it lands on the stored answer (idempotency-key).

Length1 <= length <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

POST
/v1/tax-calculations
curl -X POST "https://example.com/v1/tax-calculations" \  -H "Content-Type: application/json" \  -d '{    "offerId": "42da58f8-9040-4cf5-98ce-bce9965cca0d",    "country": "string"  }'
{  "liveMode": true,  "offerId": "42da58f8-9040-4cf5-98ce-bce9965cca0d",  "quantity": 1,  "customerType": "string",  "taxBehavior": "inclusive",  "subtotal": {    "amount": -9007199254740991,    "currency": "string"  },  "tax": {    "amount": -9007199254740991,    "currency": "string"  },  "total": {    "amount": -9007199254740991,    "currency": "string"  },  "reverseChargeEligible": true,  "reverseChargeApplied": true,  "taxNumberCheck": {    "status": "string",    "reason": "string"  },  "breakdown": [    {      "country": "string",      "region": "string",      "taxType": "string",      "taxRatePercent": "string",      "taxBehavior": "inclusive",      "taxable": {        "amount": -9007199254740991,        "currency": "string"      },      "tax": {        "amount": -9007199254740991,        "currency": "string"      }    }  ]}