Method
POST /v1/verify/tax-preview
Body Parameters
Headers
string
Bearer token (e.g.
Authorization: Bearer YOUR_API_KEY)string
application/jsonRequest Example
curl -X POST https://api.voyantcloud.com/v1/verify/tax-preview \
-H "Authorization: Bearer $VOYANT_API_KEY" \
-H "content-type: application/json" \
-d '{
"productId": "d0a6b9c0-5e4f-4f29-93c9-5f55bd6d2a20",
"buyerType": "B2B",
"buyerVatId": "RO12345678"
}'
const res = await fetch("https://api.voyantcloud.com/v1/verify/tax-preview", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VOYANT_API_KEY}`,
"content-type": "application/json",
},
body: JSON.stringify({ productId, buyerType: "B2C" }),
})
const preview = await res.json()
import os, requests
payload = {
"productId": "d0a6b9c0-5e4f-4f29-93c9-5f55bd6d2a20",
"buyerType": "B2C"
}
resp = requests.post(
"https://api.voyantcloud.com/v1/verify/tax-preview",
headers={
"Authorization": f"Bearer {os.environ['VOYANT_API_KEY']}",
"content-type": "application/json",
},
json=payload,
)
result = resp.json()
Response
{
"marketId": null,
"jurisdiction": "RO",
"buyerType": "B2B",
"hasBuyerVatId": true,
"rule": {
"jurisdiction": "RO",
"buyerType": "B2B",
"requiresBuyerVatId": true,
"taxRate": 0,
"reverseCharge": true,
"taxIncluded": false,
"priority": 10
},
"taxRate": 0
}
{ "error": "Unknown product" }
{ "error": "Invalid request" }
Use the preview in admin tooling to explain price breakdowns. The
rule block mirrors the structure returned by the pricing engine and can be displayed to finance teams for auditing.