| X-Request-ID required | string Unique ID of request |
required | Array of objects |
required | object (Geo) |
| customTaxCodes | Array of strings (Custom tax codes) Optional list of custom tax codes. Every code that matches a configured custom tax adds its rate
to the combined tax rate of taxable items and is listed in |
{- "items": [
- {
- "productId": "some-product-id-001",
- "productType": "Subscription",
- "productName": "Annual Subscription",
- "taxable": true,
- "amount": 10
}, - {
- "productId": "some-product-id-002",
- "productType": "Onetime",
- "productName": "Clip",
- "taxable": false,
- "amount": 8
}
], - "geo": {
- "zip": "10001",
- "country": "USA",
- "city": "New York",
- "state": "NY"
}, - "customTaxCodes": [
- "utah2"
]
}{- "items": [
- {
- "productId": "some-product-id-001",
- "productType": "Subscription",
- "productName": "Annual Subscription",
- "taxable": true,
- "taxName": "Combined",
- "taxRate": 16.25,
- "beforeTaxAmount": 10,
- "taxAmount": 1.63,
- "afterTaxAmount": 11.63,
- "taxes": [
- {
- "name": "State",
- "rate": 5
}, - {
- "name": "Country",
- "rate": 10
}, - {
- "name": "Utah special",
- "rate": 1.25
}
]
}, - {
- "productId": "some-product-id-002",
- "productType": "Onetime",
- "productName": "Clip",
- "taxable": false,
- "taxName": null,
- "taxRate": 0,
- "beforeTaxAmount": 8,
- "taxAmount": 0,
- "afterTaxAmount": 8,
- "taxes": [ ]
}
], - "geo": {
- "zip": "10001",
- "country": "USA",
- "city": "New York",
- "state": "NY"
}
}