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/checkout/sessions

POST/v1/checkout/sessions
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
modestring | null
Show properties
Any of:
string
string
null
null
invoiceNumbersstring[] | null
Show properties
Any of:
string[]
Array of string
string
null
null
invoiceNumberstring | null
Show properties
Any of:
string
string
null
null
amountnumber | null
Show properties
Any of:
number
number
null
null
amountCentsnumber | null
Show properties
Any of:
number
number
null
null
currencystring | null
Show properties
Any of:
string
string
null
null
descriptionstring | null
Show properties
Any of:
string
string
null
null
customerIdstring | null
Show properties
Any of:
string
string
null
null
billingAccountIdstring | null
Show properties
Any of:
string
string
null
null
customerobject | null
Show properties
Any of:
object
customerIdstring | null
Show properties
Any of:
string
string
null
null
externalCustomerRefstring | null
Show properties
Any of:
string
string
null
null
namestring | null
Show properties
Any of:
string
string
null
null
emailstring | null
Show properties
Any of:
string
string
null
null
defaultCurrencystring | null
Show properties
Any of:
string
string
null
null
metadataobject | null
Show properties
Any of:
object
object
null
null
null
null
billingAccountobject | null
Show properties
Any of:
object
billingAccountIdstring | null
Show properties
Any of:
string
string
null
null
invoiceDeliveryModestring | null
Show properties
Any of:
string
string
null
null
collectionModestring | null
Show properties
Any of:
string
string
null
null
autoCollectionEnabledboolean | null
Show properties
Any of:
boolean
boolean
null
null
customerProfileIdstring | null
Show properties
Any of:
string
string
null
null
defaultPaymentMethodIdstring | null
Show properties
Any of:
string
string
null
null
renewalTimingstring | null
Show properties
Any of:
string
string
null
null
netTermsDaysnumber | null
Show properties
Any of:
number
number
null
null
dunningCampaignIdstring | null
Show properties
Any of:
string
string
null
null
metadataobject | null
Show properties
Any of:
object
object
null
null
null
null
itemsobject[] | null
Show properties
Any of:
object[]
Array of object
priceIdstringrequired
min length 1
quantitynumber | null
Show properties
Any of:
number
number
null
null
null
null
trialEndAtstring | null
Show properties
Any of:
string
string
null
null
testClockIdstring | null
Show properties
Any of:
string
string
null
null
collectionModestring | null
Show properties
Any of:
string
string
null
null
successUrlstring | null
Show properties
Any of:
string
string
null
null
cancelUrlstring | null
Show properties
Any of:
string
string
null
null
returnUrlstring | null
Show properties
Any of:
string
string
null
null
paymentMethodIdstring | null
Show properties
Any of:
string
string
null
null
customerEmailstring | null
Show properties
Any of:
string
string
null
null
payerEmailstring | null
Show properties
Any of:
string
string
null
null
billingAddressCollectionstring | null
Show properties
Any of:
string
string
null
null
dueAtstring | null
Show properties
Any of:
string
string
null
null
dueDatestring | null
Show properties
Any of:
string
string
null
null
expiresAtstring | null
Show properties
Any of:
string
string
null
null
metadataobject | null
Show properties
Any of:
object
object
null
null
idempotencyKeystring | null
Show properties
Any of:
string
string
null
null
createdByRefstring | null
Show properties
Any of:
string
string
null
null
Responses
201

Success

dataobjectrequired
Show properties
checkoutSessionobjectrequired
Show properties
checkoutSessionIdstringrequired
min length 1
paymentRequestIdstringrequired
min length 1
checkoutUrlstring | nullrequired
Show properties
Any of:
string
string
null
null
tokenstring | nullrequired
Show properties
Any of:
string
string
null
null
modestringrequired
Allowed:paymentsubscription
statusstringrequired
Allowed:openpaidcanceledexpired
customerIdstringrequired
min length 1
customerExternalIdstringrequired
min length 1
billingAccountIdstringrequired
min length 1
currencystringrequired
min length 1
amountTotalnumberrequired
amountRemainingnumberrequired
invoiceNumbersstring[]required
expiresAtstring | nullrequired
Show properties
Any of:
string
string
null
null
createdAtstringrequired
min length 1
subscriptionIdstring | null
Show properties
Any of:
string
string
null
null
externalCustomerRefstring | null
Show properties
Any of:
string
string
null
null
successUrlstring | null
Show properties
Any of:
string
string
null
null
cancelUrlstring | null
Show properties
Any of:
string
string
null
null
returnUrlstring | null
Show properties
Any of:
string
string
null
null
paymentMethodIdstring | null
Show properties
Any of:
string
string
null
null
customerEmailstring | null
Show properties
Any of:
string
string
null
null
billingAddressCollectionstring | null
Show properties
Any of:
string
string
null
null
paymentRequestobjectrequired
Show properties
paymentRequestIdstringrequired
min length 1
customerIdstringrequired
min length 1
billingAccountIdstringrequired
min length 1
statusstringrequired
Allowed:openpaidcanceledexpired
currencystringrequired
min length 1
amountRequestednumberrequired
amountPaidnumberrequired
amountRemainingnumberrequired
invoiceCountnumberrequired
attemptCountnumberrequired
createdByTypestringrequired
Allowed:systemoperator
createdByRefstringrequired
min length 1
createdAtstringrequired
min length 1
updatedAtstringrequired
min length 1
metadataobjectrequired
lastAttemptStatusstring | null
Show properties
Any of:
string
string
null
null
lastAttemptErrorstring | null
Show properties
Any of:
string
string
null
null
lastPaymentIntentIdstring | null
Show properties
Any of:
string
string
null
null
lastPaymentIdstring | null
Show properties
Any of:
string
string
null
null
dueAtstring | null
Show properties
Any of:
string
string
null
null
expiresAtstring | null
Show properties
Any of:
string
string
null
null
lastAttemptedAtstring | null
Show properties
Any of:
string
string
null
null
paidAtstring | null
Show properties
Any of:
string
string
null
null
canceledAtstring | null
Show properties
Any of:
string
string
null
null
invoicesobject[]required
Show properties
Array of object
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
replayedbooleanrequired
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl "https://api.vortex.nyc/v1/checkout/sessions?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode":"subscription","customerId":"bcust_123","collectionMode":"automatic","items":[{"priceId":"price_core_monthly","quantity":1}],"createdByRef":"internal-integration"}'
Response
{
  "data": {
    "checkoutSession": {
      "checkoutSessionId": "string",
      "paymentRequestId": "string",
      "checkoutUrl": "string",
      "token": "string",
      "mode": "payment",
      "status": "open",
      "customerId": "string",
      "customerExternalId": "string",
      "billingAccountId": "string",
      "currency": "string",
      "amountTotal": 0,
      "amountRemaining": 0,
      "invoiceNumbers": [
        "string"
      ],
      "expiresAt": "string",
      "createdAt": "string",
      "subscriptionId": "string",
      "externalCustomerRef": "string",
      "successUrl": "string",
      "cancelUrl": "string",
      "returnUrl": "string",
      "paymentMethodId": "string",
      "customerEmail": "string",
      "billingAddressCollection": "auto"
    },
    "paymentRequest": {
      "paymentRequestId": "string",
      "customerId": "string",
      "billingAccountId": "string",
      "status": "open",
      "currency": "string",
      "amountRequested": 0,
      "amountPaid": 0,
      "amountRemaining": 0,
      "invoiceCount": 0,
      "attemptCount": 0,
      "createdByType": "system",
      "createdByRef": "string",
      "createdAt": "string",
      "updatedAt": "string",
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "lastAttemptStatus": "succeeded",
      "lastAttemptError": "string",
      "lastPaymentIntentId": "string",
      "lastPaymentId": "string",
      "dueAt": "string",
      "expiresAt": "string",
      "lastAttemptedAt": "string",
      "paidAt": "string",
      "canceledAt": "string"
    },
    "invoices": [
      {
        "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"
      }
    ],
    "replayed": true
  },
  "requestId": "string"
}