---
search:
  tags:
    - creditNotes
    - POST
seo:
  description: Reference for the POST /v1/credit-notes endpoint in the Vortex Payments API.
sidebar:
  label: POST /v1/credit-notes
  badge: POST
title: POST /v1/credit-notes
type: openapi-operation
---
`POST /v1/credit-notes`

**curl**

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

**TypeScript**

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

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

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `invoiceId` (string, required)
- `reason` (string, required)
- `lines` (object[], required)
- `creditNoteId` (string | null)
- `description` (string | null)
- `issuedAt` (string | null)
- `metadata` (object | null)
- `refundDestination` (string | null)
- `tenantId` (string | null)
- `taxIdempotencyKey` (string | null)
- `customerTaxAddress` (object | 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)
- `classificationKey` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "invoiceId": "string",
  "reason": "duplicated_charge",
  "lines": [
    {
      "description": "string",
      "amount": 0,
      "invoiceLineId": "string",
      "taxClassificationKey": "string",
      "bucket": "credit",
      "metadata": {
        "property1": "string",
        "property2": "string"
      }
    }
  ],
  "creditNoteId": "string",
  "description": "string",
  "issuedAt": "string",
  "metadata": {
    "property1": "string",
    "property2": "string"
  },
  "refundDestination": "cash",
  "tenantId": "string",
  "taxIdempotencyKey": "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",
  "classificationKey": "string"
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "creditNote": {
      "creditNoteId": "string",
      "creditNoteNumber": "string",
      "invoiceId": "string",
      "customerId": "string",
      "billingAccountId": "string",
      "status": "draft",
      "reason": "duplicated_charge",
      "currency": "string",
      "subtotal": 0,
      "discountAdjustmentTotal": 0,
      "taxTotal": 0,
      "total": 0,
      "creditAmount": 0,
      "refundAmount": 0,
      "offsetAmount": 0,
      "balanceAmount": 0,
      "issuedAt": "string",
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "subscriptionId": "string",
      "finalizedAt": "string",
      "description": "string",
      "creditStatus": "available",
      "refundStatus": "pending",
      "billingRefundId": "string",
      "paymentsRefundId": "string",
      "refundRequestedAt": "string",
      "refundResolvedAt": "string"
    },
    "lines": [
      {
        "creditNoteLineId": "string",
        "creditNoteId": "string",
        "description": "string",
        "amount": 0,
        "currency": "string",
        "metadata": {
          "property1": "string",
          "property2": "string"
        },
        "invoiceLineId": "string",
        "bucket": "credit",
        "walletRecreditAmount": 0,
        "cashRefundAmount": 0
      }
    ],
    "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"
    }
  },
  "requestId": "string"
}
```
