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}/subscriptions

GET/v1/customers/{customerId}/subscriptions
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
limitstring
matches ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$
cursorstring
min length 1
Responses
200

Success

dataobjectrequired
Show properties
itemsobject[]required
Show properties
Array of object
subscriptionobjectrequired
Show properties
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
itemsobject[]required
Show properties
Array of object
subscriptionItemIdstringrequired
min length 1
subscriptionIdstringrequired
min length 1
priceIdstringrequired
min length 1
quantitynumberrequired
startAtstringrequired
min length 1
metadataobjectrequired
endAtstring | null
Show properties
Any of:
string
string
null
null
hasMorebooleanrequired
nextCursorstring | 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/subscriptions?environment=...&merchantAccountId=...&limit=...&cursor=..." \
  -X GET \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
Response
{
  "data": {
    "items": [
      {
        "subscription": {
          "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"
        },
        "items": [
          {
            "subscriptionItemId": "string",
            "subscriptionId": "string",
            "priceId": "string",
            "quantity": 0,
            "startAt": "string",
            "metadata": {
              "property1": "string",
              "property2": "string"
            },
            "endAt": "string"
          }
        ]
      }
    ],
    "hasMore": true,
    "nextCursor": "string"
  },
  "requestId": "string"
}