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/payment-method-setup-sessions

POST/v1/payment-method-setup-sessions
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
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
ownerTypestringrequired
Allowed:customermerchant
ownerIdstringrequired
min length 1
methodTypestringrequired
min length 1
setAsDefaultboolean | null
Show properties
Any of:
boolean
boolean
null
null
Responses
201

Success

dataobjectrequired
Show properties
idstringrequired
min length 1
environmentstringrequired
Allowed:sandboxproduction
merchantAccountIdstringrequired
min length 1
ownerTypestringrequired
Allowed:customermerchant
ownerIdstringrequired
min length 1
methodTypestringrequired
min length 1
statusstringrequired
min length 1
clientSecretstring | null
Show properties
Any of:
string
string
null
null
setAsDefaultbooleanrequired
expiresAtstringrequired
min length 1
createdAtstringrequired
min length 1
updatedAtstringrequired
min length 1
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl "https://api.vortex.nyc/v1/payment-method-setup-sessions" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
Response
{
  "data": {
    "id": "string",
    "environment": "sandbox",
    "merchantAccountId": "string",
    "ownerType": "customer",
    "ownerId": "string",
    "methodType": "string",
    "status": "string",
    "clientSecret": "string",
    "setAsDefault": true,
    "expiresAt": "string",
    "createdAt": "string",
    "updatedAt": "string"
  },
  "requestId": "string"
}