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/customers/{customerId}/state

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

Success

dataobjectrequired
Show properties
customerobjectrequired
Show properties
customerIdstringrequired
min length 1
namestringrequired
min length 1
defaultCurrencystringrequired
min length 1
metadataobjectrequired
createdAtstringrequired
min length 1
externalCustomerRefstring | null
Show properties
Any of:
string
string
null
null
emailstring | null
Show properties
Any of:
string
string
null
null
archivedAtstring | null
Show properties
Any of:
string
string
null
null
statusstringrequired
Allowed:inactivecurrentopenpast_due
currencystringrequired
min length 1
summaryobjectrequired
Show properties
activeSubscriptionsnumberrequired
openInvoicesnumberrequired
pastDueInvoicesnumberrequired
uncollectibleInvoicesnumberrequired
totalAmountDuenumberrequired
pendingRetriesnumberrequired
pendingPaymentAttemptsnumberrequired
pendingRefundsnumberrequired
failedLatestPaymentAttemptsnumberrequired
activeEntitlementsnumberrequired
revokedEntitlementsnumberrequired
subscriptionsobject[]required
Show properties
Array of object
subscriptionIdstringrequired
min length 1
customerIdstringrequired
min length 1
billingAccountIdstringrequired
min length 1
statusstringrequired
Allowed:draftpendingincompleteincomplete_expiredtrialingactivepast_duepausedcanceled
collectionModestringrequired
Allowed:manualautomatic
metadataobjectrequired
createdAtstringrequired
min length 1
currentPeriodStartAtstring | null
Show properties
Any of:
string
string
null
null
currentPeriodEndAtstring | null
Show properties
Any of:
string
string
null
null
trialEndAtstring | null
Show properties
Any of:
string
string
null
null
cancelAtstring | null
Show properties
Any of:
string
string
null
null
canceledAtstring | null
Show properties
Any of:
string
string
null
null
endedAtstring | null
Show properties
Any of:
string
string
null
null
testClockIdstring | 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
latestPaymentAttemptobject | nullrequired
Show properties
Any of:
object
attemptIdstringrequired
min length 1
invoiceNumberstringrequired
min length 1
statusstringrequired
Allowed:pendingrequires_actionsucceededfailedcanceledrefunded
requestedAmountnumberrequired
collectedAmountnumberrequired
createdAtstringrequired
min length 1
paymentIntentIdstring | nullrequired
Show properties
Any of:
string
string
null
null
paymentIdstring | nullrequired
Show properties
Any of:
string
string
null
null
failureReasonstring | nullrequired
Show properties
Any of:
string
string
null
null
resolvedAtstring | nullrequired
Show properties
Any of:
string
string
null
null
null
null
entitlementsobjectrequired
Show properties
activeobject[]required
Show properties
Array of object
entitlementIdstringrequired
min length 1
customerIdstringrequired
min length 1
billingAccountIdstringrequired
min length 1
entitlementKeystringrequired
min length 1
statusstringrequired
Allowed:activerevoked
sourcestringrequired
Allowed:subscriptionoperatorpromotion
sourceRefstringrequired
min length 1
grantedAtstringrequired
min length 1
metadataobjectrequired
revokedAtstring | null
Show properties
Any of:
string
string
null
null
reasonstring | null
Show properties
Any of:
string
string
null
null
revokedobject[]required
Show properties
Array of object
entitlementIdstringrequired
min length 1
customerIdstringrequired
min length 1
billingAccountIdstringrequired
min length 1
entitlementKeystringrequired
min length 1
statusstringrequired
Allowed:activerevoked
sourcestringrequired
Allowed:subscriptionoperatorpromotion
sourceRefstringrequired
min length 1
grantedAtstringrequired
min length 1
metadataobjectrequired
revokedAtstring | null
Show properties
Any of:
string
string
null
null
reasonstring | null
Show properties
Any of:
string
string
null
null
retryQueueobject[]required
Show properties
Array of object
retryIdstringrequired
min length 1
invoiceNumberstringrequired
min length 1
statusstringrequired
Allowed:pendingrunningsucceededfailedexhaustedcanceled
retrySequencenumberrequired
runAtstringrequired
min length 1
lastErrorstring | nullrequired
Show properties
Any of:
string
string
null
null
pendingPaymentAttemptsobject[]required
Show properties
Array of object
attemptIdstringrequired
min length 1
invoiceNumberstringrequired
min length 1
statusstringrequired
Allowed:pendingrequires_actionsucceededfailedcanceledrefunded
requestedAmountnumberrequired
collectedAmountnumberrequired
createdAtstringrequired
min length 1
paymentIntentIdstring | nullrequired
Show properties
Any of:
string
string
null
null
paymentIdstring | nullrequired
Show properties
Any of:
string
string
null
null
failureReasonstring | nullrequired
Show properties
Any of:
string
string
null
null
resolvedAtstring | nullrequired
Show properties
Any of:
string
string
null
null
pendingRefundsobject[]required
Show properties
Array of object
billingRefundIdstringrequired
min length 1
invoiceNumberstringrequired
min length 1
paymentIdstringrequired
min length 1
paymentsRefundIdstringrequired
min length 1
amountnumberrequired
statusstringrequired
Allowed:pendingsucceededfailed
reasonstringrequired
min length 1
requestedAtstringrequired
min length 1
resolvedAtstring | nullrequired
Show properties
Any of:
string
string
null
null
accessobjectrequired
Show properties
allowedbooleanrequired
statestringrequired
Allowed:readyaction_requiredblockedunknown
reasonCodesstring[]required
activeKeysstring[]required
activeEntitlementsobject[]required
Show properties
Array of object
entitlementIdstringrequired
min length 1
customerIdstringrequired
min length 1
billingAccountIdstringrequired
min length 1
entitlementKeystringrequired
min length 1
statusstringrequired
Allowed:activerevoked
sourcestringrequired
Allowed:subscriptionoperatorpromotion
sourceRefstringrequired
min length 1
grantedAtstringrequired
min length 1
metadataobjectrequired
revokedAtstring | null
Show properties
Any of:
string
string
null
null
reasonstring | null
Show properties
Any of:
string
string
null
null
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Request
curl "https://api.vortex.nyc/v1/customers/{customerId}/state?environment=sandbox&merchantAccountId=..." \
  -X GET \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
Response
{
  "data": {
    "customer": {
      "customerId": "string",
      "name": "string",
      "defaultCurrency": "string",
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "createdAt": "string",
      "externalCustomerRef": "string",
      "email": "string",
      "archivedAt": "string"
    },
    "status": "inactive",
    "currency": "string",
    "summary": {
      "activeSubscriptions": 0,
      "openInvoices": 0,
      "pastDueInvoices": 0,
      "uncollectibleInvoices": 0,
      "totalAmountDue": 0,
      "pendingRetries": 0,
      "pendingPaymentAttempts": 0,
      "pendingRefunds": 0,
      "failedLatestPaymentAttempts": 0,
      "activeEntitlements": 0,
      "revokedEntitlements": 0
    },
    "subscriptions": [
      {
        "subscriptionId": "string",
        "customerId": "string",
        "billingAccountId": "string",
        "status": "draft",
        "collectionMode": "manual",
        "metadata": {
          "property1": "string",
          "property2": "string"
        },
        "createdAt": "string",
        "currentPeriodStartAt": "string",
        "currentPeriodEndAt": "string",
        "trialEndAt": "string",
        "cancelAt": "string",
        "canceledAt": "string",
        "endedAt": "string",
        "testClockId": "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",
        "latestPaymentAttempt": {
          "attemptId": "string",
          "invoiceNumber": "string",
          "status": "pending",
          "requestedAmount": 0,
          "collectedAmount": 0,
          "createdAt": "string",
          "paymentIntentId": "string",
          "paymentId": "string",
          "failureReason": "string",
          "resolvedAt": "string"
        }
      }
    ],
    "entitlements": {
      "active": [
        {
          "entitlementId": "string",
          "customerId": "string",
          "billingAccountId": "string",
          "entitlementKey": "string",
          "status": "active",
          "source": "subscription",
          "sourceRef": "string",
          "grantedAt": "string",
          "metadata": {
            "property1": "string",
            "property2": "string"
          },
          "revokedAt": "string",
          "reason": "string"
        }
      ],
      "revoked": [
        {
          "entitlementId": "string",
          "customerId": "string",
          "billingAccountId": "string",
          "entitlementKey": "string",
          "status": "active",
          "source": "subscription",
          "sourceRef": "string",
          "grantedAt": "string",
          "metadata": {
            "property1": "string",
            "property2": "string"
          },
          "revokedAt": "string",
          "reason": "string"
        }
      ]
    },
    "retryQueue": [
      {
        "retryId": "string",
        "invoiceNumber": "string",
        "status": "pending",
        "retrySequence": 0,
        "runAt": "string",
        "lastError": "string"
      }
    ],
    "pendingPaymentAttempts": [
      {
        "attemptId": "string",
        "invoiceNumber": "string",
        "status": "pending",
        "requestedAmount": 0,
        "collectedAmount": 0,
        "createdAt": "string",
        "paymentIntentId": "string",
        "paymentId": "string",
        "failureReason": "string",
        "resolvedAt": "string"
      }
    ],
    "pendingRefunds": [
      {
        "billingRefundId": "string",
        "invoiceNumber": "string",
        "paymentId": "string",
        "paymentsRefundId": "string",
        "amount": 0,
        "status": "pending",
        "reason": "string",
        "requestedAt": "string",
        "resolvedAt": "string"
      }
    ],
    "access": {
      "allowed": true,
      "state": "ready",
      "reasonCodes": [
        "string"
      ],
      "activeKeys": [
        "string"
      ],
      "activeEntitlements": [
        {
          "entitlementId": "string",
          "customerId": "string",
          "billingAccountId": "string",
          "entitlementKey": "string",
          "status": "active",
          "source": "subscription",
          "sourceRef": "string",
          "grantedAt": "string",
          "metadata": {
            "property1": "string",
            "property2": "string"
          },
          "revokedAt": "string",
          "reason": "string"
        }
      ]
    }
  },
  "requestId": "string"
}