---
search:
  tags:
    - billing
    - POST
seo:
  description: >-
    Quote tax for a draft invoice. Reference for the POST
    /v1/invoices/{invoiceId}/tax/quote endpoint in the Vortex Payments API.
sidebar:
  label: Quote tax for a draft invoice
  badge: POST
title: Quote tax for a draft invoice
type: openapi-operation
---
`POST /v1/invoices/{invoiceId}/tax/quote`

**curl**

```bash
curl "https://api.vortex.nyc/v1/invoices/{invoiceId}/tax/quote?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"customerTaxAddress":{"line1":"897 Broadway","city":"New York","region":"NY","postalCode":"10003","country":"US"},"taxBehaviorPolicy":{"behavior":"exclusive"},"requestedByRef":"internal-integration"}'
```

**TypeScript**

```ts
import { quoteInvoiceTax, createVortex } from "@vortex-api/vortex/2026-09";

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await quoteInvoiceTax({
  client: vortex,
  path: { invoiceId: "..." },
  query: { environment: "sandbox", merchantAccountId: "..." },
  body: {"customerTaxAddress":{"line1":"897 Broadway","city":"New York","region":"NY","postalCode":"10003","country":"US"},"taxBehaviorPolicy":{"behavior":"exclusive"},"requestedByRef":"internal-integration"},
});
```

**Request body** (`application/json`, required)

- `customerTaxAddress` (TaxAddress, required)
- `taxBehaviorPolicy` (TaxBehaviorPolicyRequest)
- `requestedByRef` (string)

Request body example:

```json
{
  "customerTaxAddress": {
    "line1": "897 Broadway",
    "city": "New York",
    "region": "NY",
    "postalCode": "10003",
    "country": "US"
  },
  "taxBehaviorPolicy": {
    "behavior": "exclusive"
  },
  "requestedByRef": "internal-integration"
}
```

**Responses**

- `200` — Success
- `400` — Bad request, including malformed JSON
- `401` — Missing or invalid API key
- `409` — Conflict, including idempotency body drift
- `422` — Validation failed
- `429` — API key rate limit exceeded
- `default` — Error

Response example, 200:

```json
{
  "data": {
    "tax": {
      "invoiceNumber": "string",
      "status": "not_required",
      "currency": "string",
      "subtotal": 0,
      "taxTotal": 0,
      "total": 0,
      "evidenceVersion": "string",
      "taxBehaviorPolicy": {
        "behavior": "exclusive",
        "source": "request",
        "amountIncludesTax": true,
        "locationRef": "string"
      },
      "quotedAt": "2019-08-24T14:15:22Z",
      "finalizedAt": "2019-08-24T14:15:22Z",
      "lineEvidence": [
        {
          "sourceLineId": "string",
          "classificationKey": "string",
          "classificationLabel": "string",
          "classificationVersion": 0,
          "classificationMappingVersion": 0,
          "taxableAmount": 0,
          "taxAmount": 0,
          "taxBehavior": "exclusive",
          "amountIncludesTax": true
        }
      ],
      "jurisdictionEvidence": [
        {
          "jurisdictionType": "string",
          "jurisdictionName": "string",
          "taxableAmount": 0,
          "taxAmount": 0,
          "rate": 0
        }
      ],
      "failure": {
        "code": "tax_company_mapping_missing",
        "message": "string",
        "nextAction": "configure_tax_company"
      }
    },
    "replayed": true
  },
  "requestId": "string"
}
```
