Skip to content
Payments docs are in beta — the OpenAPI contract is the source of truth.API reference
VortexPayments
Esc
↑↓navigate↵open⌘Jpreview

POST /v1/credit-notes

POST/v1/credit-notes
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Query parameters
environmentstring
Allowed:sandboxproduction
merchantAccountIdstring
min length 1
Header parameters
Idempotency-Keystring

Required for production-safe retries on mutating routes. Reusing a key with a different request body returns 409.

min length 1
Request body
requiredapplication/json
environmentstring | null
Show properties
Any of:
string
string
null
null
merchantAccountIdstring | null
Show properties
Any of:
string
string
null
null
invoiceIdstringrequired
min length 1
reasonstringrequired
Allowed:duplicated_chargeproduct_unsatisfactoryorder_changeorder_cancellationfraudulent_chargeother
linesobject[]required
Show properties
Array of object
descriptionstringrequired
min length 1
amountnumberrequired
invoiceLineIdstring | null
Show properties
Any of:
string
string
null
null
taxClassificationKeystring | null
Show properties
Any of:
string
string
null
null
bucketstring | null
Show properties
Any of:
string
string
null
null
metadataobject | null
Show properties
Any of:
object
object
null
null
creditNoteIdstring | null
Show properties
Any of:
string
string
null
null
descriptionstring | null
Show properties
Any of:
string
string
null
null
issuedAtstring | null
Show properties
Any of:
string
string
null
null
metadataobject | null
Show properties
Any of:
object
object
null
null
refundDestinationstring | null
Show properties
Any of:
string
string
null
null
tenantIdstring | null
Show properties
Any of:
string
string
null
null
taxIdempotencyKeystring | null
Show properties
Any of:
string
string
null
null
customerTaxAddressobject | null
Show properties
Any of:
object
line1stringrequired
min length 1
citystringrequired
min length 1
regionstringrequired
min length 1
postalCodestringrequired
min length 1
countrystringrequired
min length 1
line2string | null
Show properties
Any of:
string
string
null
null
null
null
customerTaxIdsobject[] | null
Show properties
Any of:
object[]
Array of object
typestringrequired
min length 1
valuestringrequired
min length 1
null
null
customerTypestring | null
Show properties
Any of:
string
string
null
null
customerTaxExemptboolean | null
Show properties
Any of:
boolean
boolean
null
null
customerTaxExemptionRefstring | null
Show properties
Any of:
string
string
null
null
fallbackOnProviderUnavailableboolean | null
Show properties
Any of:
boolean
boolean
null
null
taxIdValidationstring | null
Show properties
Any of:
string
string
null
null
taxIdUnverifiableTreatmentstring | null
Show properties
Any of:
string
string
null
null
shipFromAddressobject | null
Show properties
Any of:
object
line1stringrequired
min length 1
citystringrequired
min length 1
regionstringrequired
min length 1
postalCodestringrequired
min length 1
countrystringrequired
min length 1
line2string | null
Show properties
Any of:
string
string
null
null
null
null
taxBehaviorstring | null
Show properties
Any of:
string
string
null
null
classificationKeystring | null
Show properties
Any of:
string
string
null
null
Responses
201

Success

dataobjectrequired
Show properties
creditNoteobjectrequired
Show properties
creditNoteIdstringrequired
min length 1
creditNoteNumberstringrequired
min length 1
invoiceIdstringrequired
min length 1
customerIdstringrequired
min length 1
billingAccountIdstringrequired
min length 1
statusstringrequired
Allowed:draftfinalized
reasonstringrequired
Allowed:duplicated_chargeproduct_unsatisfactoryorder_changeorder_cancellationfraudulent_chargeother
currencystringrequired
min length 1
subtotalnumberrequired
discountAdjustmentTotalnumberrequired
taxTotalnumberrequired
totalnumberrequired
creditAmountnumberrequired
refundAmountnumberrequired
offsetAmountnumberrequired
balanceAmountnumberrequired
issuedAtstringrequired
min length 1
metadataobjectrequired
subscriptionIdstring | null
Show properties
Any of:
string
string
null
null
finalizedAtstring | null
Show properties
Any of:
string
string
null
null
descriptionstring | null
Show properties
Any of:
string
string
null
null
creditStatusstring | null
Show properties
Any of:
string
string
null
null
refundStatusstring | null
Show properties
Any of:
string
string
null
null
billingRefundIdstring | null
Show properties
Any of:
string
string
null
null
paymentsRefundIdstring | null
Show properties
Any of:
string
string
null
null
refundRequestedAtstring | null
Show properties
Any of:
string
string
null
null
refundResolvedAtstring | null
Show properties
Any of:
string
string
null
null
linesobject[]required
Show properties
Array of object
creditNoteLineIdstringrequired
min length 1
creditNoteIdstringrequired
min length 1
descriptionstringrequired
min length 1
amountnumberrequired
currencystringrequired
min length 1
metadataobjectrequired
invoiceLineIdstring | null
Show properties
Any of:
string
string
null
null
bucketstring | null
Show properties
Any of:
string
string
null
null
walletRecreditAmountnumber | null
Show properties
Any of:
number
number
null
null
cashRefundAmountnumber | null
Show properties
Any of:
number
number
null
null
invoiceobjectrequired
Show properties
invoiceIdstringrequired
min length 1
customerIdstringrequired
min length 1
billingAccountIdstringrequired
min length 1
statusstringrequired
Allowed:draftopenpaidpartially_paidpast_duevoiduncollectible
currencystringrequired
min length 1
subtotalnumberrequired
discountTotalnumberrequired
taxTotalnumberrequired
totalnumberrequired
amountPaidnumberrequired
amountRemainingnumberrequired
metadataobjectrequired
subscriptionIdstring | null
Show properties
Any of:
string
string
null
null
creditNoteTotalnumber | null
Show properties
Any of:
number
number
null
null
customerBalanceAppliedTotalnumber | null
Show properties
Any of:
number
number
null
null
periodStartAtstring | null
Show properties
Any of:
string
string
null
null
periodEndAtstring | null
Show properties
Any of:
string
string
null
null
issuedAtstring | null
Show properties
Any of:
string
string
null
null
dueAtstring | null
Show properties
Any of:
string
string
null
null
finalizedAtstring | null
Show properties
Any of:
string
string
null
null
voidedAtstring | null
Show properties
Any of:
string
string
null
null
createdAtstring | null
Show properties
Any of:
string
string
null
null
updatedAtstring | null
Show properties
Any of:
string
string
null
null
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl "https://api.vortex.nyc/v1/credit-notes?environment=...&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
Response
{
  "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"
}

Was this page helpful?