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

**curl**

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

**TypeScript**

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

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

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `tenantId` (string, required)
- `originalTaxTransactionId` (string | null)
- `sourceDocumentId` (string, required)
- `idempotencyKey` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "tenantId": "string",
  "originalTaxTransactionId": "string",
  "sourceDocumentId": "string",
  "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"
}
```
