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-methods

POST/v1/payment-methods
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
paymentMethodSetupSessionIdstringrequired
min length 1
setupTokenstringrequired
min length 1
idempotencyKeystring | null
Show properties
Any of:
string
string
null
null
Responses
201

Success

dataobjectrequired
Show properties
idstringrequired
min length 1
merchantAccountIdstring | null
Show properties
Any of:
string
string
null
null
ownerTypestringrequired
Allowed:customermerchant
ownerIdstringrequired
min length 1
methodTypestringrequired
min length 1
statusstringrequired
min length 1
isDefaultbooleanrequired
brandSummarystring | null
Show properties
Any of:
string
string
null
null
last4string | null
Show properties
Any of:
string
string
null
null
expiryMonthnumber | null
Show properties
Any of:
number
number
null
null
expiryYearnumber | null
Show properties
Any of:
number
number
null
null
fraudSessionIdstring | null
Show properties
Any of:
string
string
null
null
networkTokenEnabledboolean | null
Show properties
Any of:
boolean
boolean
null
null
networkTokenStatestring | null
Show properties
Any of:
string
string
null
null
microdepositVerificationobject | null
Show properties
Any of:
object
microdepositIdstring | null
Show properties
Any of:
string
string
null
null
verificationUrlstring | null
Show properties
Any of:
string
string
null
null
null
null
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl "https://api.vortex.nyc/v1/payment-methods" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
Response
{
  "data": {
    "id": "string",
    "merchantAccountId": "string",
    "ownerType": "customer",
    "ownerId": "string",
    "methodType": "string",
    "status": "string",
    "isDefault": true,
    "brandSummary": "string",
    "last4": "string",
    "expiryMonth": 0,
    "expiryYear": 0,
    "fraudSessionId": "string",
    "networkTokenEnabled": true,
    "networkTokenState": "string",
    "microdepositVerification": {
      "microdepositId": "string",
      "verificationUrl": "string"
    }
  },
  "requestId": "string"
}