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/merchant-accounts/{merchantAccountId}/customers/{customerId}/payment-methods/default

POST/v1/merchant-accounts/{merchantAccountId}/customers/{customerId}/payment-methods/default
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Path parameters
merchantAccountIdstringrequired
min length 1
customerIdstringrequired
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
paymentMethodIdstring | null
Show properties
Any of:
string
string
null
null
reasonstring | null
Show properties
Any of:
string
string
null
null
idempotencyKeystring | null
Show properties
Any of:
string
string
null
null
Responses
200

Success

dataobject[]required
Show properties
Array of object
idstringrequired
min length 1
ownerTypestringrequired
Allowed:customermerchant
ownerIdstringrequired
min length 1
methodTypestringrequired
min length 1
statusstringrequired
Allowed:activepending_verificationdisabledarchived
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
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl "https://api.vortex.nyc/v1/merchant-accounts/:merchantAccountId/customers/:customerId/payment-methods/default" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
Response
{
  "data": [
    {
      "id": "string",
      "ownerType": "customer",
      "ownerId": "string",
      "methodType": "string",
      "status": "active",
      "isDefault": true,
      "brandSummary": "string",
      "last4": "string",
      "expiryMonth": 0,
      "expiryYear": 0
    }
  ],
  "requestId": "string"
}