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

GET /v1/merchant-accounts/{merchantAccountId}/customers/{customerId}/payment-state

GET/v1/merchant-accounts/{merchantAccountId}/customers/{customerId}/payment-state
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Path parameters
merchantAccountIdstringrequired
min length 1
customerIdstringrequired
min length 1
Query parameters
environmentstring
Allowed:sandboxproduction
Responses
200

Success

dataobjectrequired
Show properties
customerProfileIdstringrequired
min length 1
merchantAccountIdstringrequired
min length 1
environmentstringrequired
Allowed:sandboxproduction
defaultPaymentMethodIdstring | null
Show properties
Any of:
string
string
null
null
activePaymentMethodIdsstring[]required
requiresActionPaymentIntentIdsstring[]required
latestPaymentIntentStatusstring | null
Show properties
Any of:
string
string
null
null
readinessstringrequired
Allowed:readyaction_requiredblockedunknown
generatedAtstringrequired
min length 1
readinessReasonsstring[]required
paymentMethodsobject[]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
defaultPaymentMethodobject | null
Show properties
Any 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
null
null
requiresActionPaymentIntentCountnumberrequired
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Request
curl "https://api.vortex.nyc/v1/merchant-accounts/:merchantAccountId/customers/:customerId/payment-state?environment=..." \
  -X GET \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
Response
{
  "data": {
    "customerProfileId": "string",
    "merchantAccountId": "string",
    "environment": "sandbox",
    "defaultPaymentMethodId": "string",
    "activePaymentMethodIds": [
      "string"
    ],
    "requiresActionPaymentIntentIds": [
      "string"
    ],
    "latestPaymentIntentStatus": "string",
    "readiness": "ready",
    "generatedAt": "string",
    "readinessReasons": [
      "string"
    ],
    "paymentMethods": [
      {
        "id": "string",
        "ownerType": "customer",
        "ownerId": "string",
        "methodType": "string",
        "status": "active",
        "isDefault": true,
        "brandSummary": "string",
        "last4": "string",
        "expiryMonth": 0,
        "expiryYear": 0
      }
    ],
    "defaultPaymentMethod": {
      "id": "string",
      "ownerType": "customer",
      "ownerId": "string",
      "methodType": "string",
      "status": "active",
      "isDefault": true,
      "brandSummary": "string",
      "last4": "string",
      "expiryMonth": 0,
      "expiryYear": 0
    },
    "requiresActionPaymentIntentCount": 0
  },
  "requestId": "string"
}