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

Preview an invoice

POST/v1/invoices/preview
Authorization
AuthorizationBearer token · headerrequired

Public API key bearer token.

Query parameters
environmentstringrequired

Merchant environment — key-bound keys resolve it from the credential; unbound callers default to sandbox.

Allowed:sandboxproduction
merchantAccountIdstringrequired
Request body
requiredapplication/json
customerIdstringrequired
billingAccountIdstringrequired
lineItemsobject[]required
min items 1
Show properties
Array of object
priceIdstringrequired
quantitynumber
min 1
unitAmountinteger
min 0
metadataMetadata
invoiceIdstring

Caller-chosen invoice id; omit to auto-mint.

asOfstring<date-time>
couponIdstring
tenantIdstring
taxIdempotencyKeystring
customerTaxAddressTaxAddress
Show properties
line1stringrequired
line2string
citystringrequired
regionstringrequired
postalCodestringrequired
countrystringrequired
customerTaxIdsobject[]
Show properties
Array of object
typestringrequired
valuestringrequired
customerTypestring
Allowed:consumerbusinessgovernment
customerTaxExemptboolean
customerTaxExemptionRefstring
fallbackOnProviderUnavailableboolean
taxIdValidationstring
Allowed:fullformatnone
taxIdUnverifiableTreatmentstring
Allowed:strictpermissive
shipFromAddressTaxAddress
Show properties
line1stringrequired
line2string
citystringrequired
regionstringrequired
postalCodestringrequired
countrystringrequired
taxBehaviorstring
Allowed:inclusiveexclusive
classificationKeystring
metadataMetadata
Responses
200

Success

dataobjectrequired
requestIdstringrequired
400

Bad request, including malformed JSON

errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
typestring
Allowed:api_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_error
paramstring

The request field that failed validation (dot path), when the error is field-attributable.

requestIdstring
docsUrlstring

Deep link to the errors guide section for this code.

detailsobject
401

Missing or invalid API key

errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
typestring
Allowed:api_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_error
paramstring

The request field that failed validation (dot path), when the error is field-attributable.

requestIdstring
docsUrlstring

Deep link to the errors guide section for this code.

detailsobject
409

Conflict, including idempotency body drift

errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
typestring
Allowed:api_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_error
paramstring

The request field that failed validation (dot path), when the error is field-attributable.

requestIdstring
docsUrlstring

Deep link to the errors guide section for this code.

detailsobject
422

Validation failed

errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
typestring
Allowed:api_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_error
paramstring

The request field that failed validation (dot path), when the error is field-attributable.

requestIdstring
docsUrlstring

Deep link to the errors guide section for this code.

detailsobject
429

API key rate limit exceeded

errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
typestring
Allowed:api_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_error
paramstring

The request field that failed validation (dot path), when the error is field-attributable.

requestIdstring
docsUrlstring

Deep link to the errors guide section for this code.

detailsobject
default

Error

errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
typestring
Allowed:api_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_error
paramstring

The request field that failed validation (dot path), when the error is field-attributable.

requestIdstring
docsUrlstring

Deep link to the errors guide section for this code.

detailsobject
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl "https://api.vortex.nyc/v1/invoices/preview?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"customerId":"bcust_123","billingAccountId":"bacc_123","lineItems":[{"priceId":"price_core_monthly","quantity":1}]}'
Response
{
  "data": {},
  "requestId": "string"
}