| X-Request-ID required | string Unique ID of request |
required | Array of objects |
required | object (Geo) |
{- "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"
}
}{- "items": [
- {
- "productId": "some-product-id-001",
- "productType": "Subscription",
- "productName": "Annual Subscription",
- "taxable": true,
- "taxName": "Combined",
- "taxRate": 15,
- "beforeTaxAmount": 10,
- "taxAmount": 1.5,
- "afterTaxAmount": 11.5,
- "taxes": [
- {
- "name": "State",
- "rate": 5
}, - {
- "name": "Country",
- "rate": 10
}
]
}, - {
- "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"
}
}