---
search:
  tags:
    - taxTransactions
    - POST
seo:
  description: >-
    Reference for the POST /v1/tax-transactions endpoint in the Vortex Payments
    API.
sidebar:
  label: POST /v1/tax-transactions
  badge: POST
title: POST /v1/tax-transactions
type: openapi-operation
---
`POST /v1/tax-transactions`

**curl**

```bash
curl "https://api.vortex.nyc/v1/tax-transactions?environment=...&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await quoteTax({
  client: vortex,
  query: { environment: "...", merchantAccountId: "..." },
  body: {...},
});
```

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `tenantId` (string, required)
- `sourceDocumentId` (string, required)
- `sourceDocumentType` (string | null)
- `currency` (string, required)
- `lines` (object[], required)
- `customerTaxAddress` (object, required)
- `customerExternalId` (string | null)
- `customerName` (string | null)
- `customerEmail` (string | null)
- `customerTaxIds` (object[] | null)
- `customerType` (string | null)
- `customerTaxExempt` (boolean | null)
- `customerTaxExemptionRef` (string | null)
- `fallbackOnProviderUnavailable` (boolean | null)
- `taxIdValidation` (string | null)
- `taxIdUnverifiableTreatment` (string | null)
- `shipFromAddress` (object | null)
- `taxBehavior` (string | null)
- `idempotencyKey` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "tenantId": "string",
  "sourceDocumentId": "string",
  "sourceDocumentType": "invoice",
  "currency": "string",
  "lines": [
    {
      "sourceLineId": "string",
      "amount": 0,
      "quantity": 0,
      "description": "string",
      "classificationKey": "string",
      "productExternalId": "string",
      "taxBehavior": "inclusive"
    }
  ],
  "customerTaxAddress": {
    "line1": "string",
    "city": "string",
    "region": "string",
    "postalCode": "string",
    "country": "string",
    "line2": "string"
  },
  "customerExternalId": "string",
  "customerName": "string",
  "customerEmail": "string",
  "customerTaxIds": [
    {
      "type": "string",
      "value": "string"
    }
  ],
  "customerType": "consumer",
  "customerTaxExempt": true,
  "customerTaxExemptionRef": "string",
  "fallbackOnProviderUnavailable": true,
  "taxIdValidation": "full",
  "taxIdUnverifiableTreatment": "strict",
  "shipFromAddress": {
    "line1": "string",
    "city": "string",
    "region": "string",
    "postalCode": "string",
    "country": "string",
    "line2": "string"
  },
  "taxBehavior": "inclusive",
  "idempotencyKey": "string"
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "id": "string",
    "merchantAccountId": "string",
    "tenantId": "string",
    "sourceDocumentId": "string",
    "sourceDocumentType": "invoice",
    "status": "quoted",
    "currency": "string",
    "subtotal": 0,
    "taxTotal": 0,
    "total": 0,
    "taxBehavior": "exclusive",
    "customerTaxAddress": {
      "line1": "string",
      "city": "string",
      "region": "string",
      "postalCode": "string",
      "country": "string",
      "line2": "string"
    },
    "lineEvidence": [
      {
        "sourceLineId": "string",
        "classificationKey": "string",
        "classificationLabel": "string",
        "taxableAmount": 0,
        "taxAmount": 0
      }
    ],
    "jurisdictionEvidence": [
      {
        "jurisdictionType": "string",
        "jurisdictionName": "string",
        "taxableAmount": 0,
        "taxAmount": 0,
        "rate": 0
      }
    ],
    "createdAt": "string",
    "updatedAt": "string",
    "customerTaxIds": [
      {
        "type": "string",
        "value": "string"
      }
    ],
    "customerType": "consumer",
    "customerTaxExempt": true,
    "customerTaxExemptionRef": "string",
    "fallbackOnProviderUnavailable": true,
    "taxIdValidation": "full",
    "taxIdUnverifiableTreatment": "strict",
    "quotedAt": "string",
    "finalizedAt": "string",
    "reversedAt": "string",
    "originalTaxTransactionId": "string",
    "failureCode": "string",
    "failureMessage": "string"
  },
  "requestId": "string"
}
```
