Skip to Content
Docs
API referenceManagement API

Billing tax

POST
/billing/tax/preview

billing.payment.v1.TaxService/PreviewTax (38-payments-and-tax.md, API Surface, Tax). Calculated tax, without recording: the calculation finalization uses. Give customer or address, not both; currency is required with an address. The RPC writes nothing and takes no idempotency key, so X-Idempotency-Key is not read. No location under missing_location hold is customer_location_required.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Response Body

A tax_preview object: { mode, status, tax_total, lines, tax_breakdown }

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X POST 'https://api.us.pontive.com/v1/billing/tax/preview'
Example Response
{  "id": "string",  "object": "string"}