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

**curl**

```bash
curl "https://api.vortex.nyc/v1/invoices/{invoiceId}/tax/finalize?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"},"finalizedByRef":"internal-integration"}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await finalizeInvoiceTax({
  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"},"finalizedByRef":"internal-integration"},
});
```

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `invoiceId` (string | null)
- `tenantId` (string, required)
- `finalizedBy` (string, required)
- `finalizedByRef` (string, required)
- `customerTaxAddress` (object, required)
- `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)
- `taxIdempotencyKey` (string, required)
- `classificationKey` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "invoiceId": "string",
  "tenantId": "string",
  "finalizedBy": "system",
  "finalizedByRef": "string",
  "customerTaxAddress": {
    "line1": "string",
    "city": "string",
    "region": "string",
    "postalCode": "string",
    "country": "string",
    "line2": "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",
  "taxIdempotencyKey": "string",
  "classificationKey": "string"
}
```

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": {
    "invoice": {
      "invoiceId": "string",
      "customerId": "string",
      "billingAccountId": "string",
      "status": "draft",
      "currency": "string",
      "subtotal": 0,
      "discountTotal": 0,
      "taxTotal": 0,
      "total": 0,
      "amountPaid": 0,
      "amountRemaining": 0,
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "subscriptionId": "string",
      "creditNoteTotal": 0,
      "customerBalanceAppliedTotal": 0,
      "periodStartAt": "string",
      "periodEndAt": "string",
      "issuedAt": "string",
      "dueAt": "string",
      "finalizedAt": "string",
      "voidedAt": "string",
      "createdAt": "string",
      "updatedAt": "string"
    },
    "lines": [
      {
        "invoiceLineId": "string",
        "invoiceId": "string",
        "lineType": "fixed",
        "description": "string",
        "quantity": 0,
        "unitAmount": 0,
        "subtotal": 0,
        "priceSnapshot": {
          "property1": "string",
          "property2": "string"
        },
        "metadata": {
          "property1": "string",
          "property2": "string"
        },
        "sortOrder": 0,
        "priceId": "string",
        "meterId": "string",
        "periodStartAt": "string",
        "periodEndAt": "string"
      }
    ],
    "taxTransactionId": "string",
    "taxTotal": 0
  },
  "requestId": "string"
}
```
