Skip to Content
Docs
Subscriptions

List subscriptions

GET/subscriptions

A customer's subscriptions from every engine, and from both sellers.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Query parameters

limitinteger

Objects per page. Defaults to 10.

Default: 10

starting_afterstring

A cursor. Returns objects created after the object with this ID. Mutually exclusive with ending_before.

ending_beforestring

A cursor. Returns objects created before the object with this ID.

customer_reference_idstring

Your ID for the customer.

statusstring

One of draft, trialing, active, unpaid, paused, canceled or failed.

pricestring

Returns

A page of subscriptions.

resourcestring
dataarray of objects
Show 32 child attributesHide child attributes
idstring
resourcestring
versioninteger

Goes up by one with every change. Events carry it, so you can skip one older than one you've processed.

statusstring

One of draft, trialing, active, unpaid, paused, canceled or failed.

customerstring
customer_reference_idstring
referencestring or null
itemsarray of objects
Show 5 child attributesHide child attributes
idstring

The item (subitem_).

pricestring
price_versioninteger

The version it was sold at.

productstring
quantityinteger
currencystring

Three-letter ISO currency code, in lowercase.

current_period_startstring
current_period_endstring
trial_endstring or null
cancel_atstring or null
canceled_atstring or null
cancellation_reasonstring or null

One of requested, ended, withdrawn, payment_failed or dispute.

payment_methodstring or null
seller_of_recordobject

Who sells: you, or Pay.com as merchant of record. Fixed when the customer pays, and never changed on renewal.

Show 2 child attributesHide child attributes
typestring

pay_com comes with merchant of record.

One of merchant or pay_com.

entitystring

The selling legal entity (ent_).

engineobject
Show 5 child attributesHide child attributes
typestring
connectionstring or null
collection_modelstring

One of native, directed, handoff, engine_gateway, merchant_scheduled or mirror.

externalobject or null
Show 3 child attributesHide child attributes
customerstring
subscriptionstring
statusstring
syncobject
Show 2 child attributesHide child attributes
statusstring

One of in_sync or failed.

last_synced_atstring or null
responsibilitiesobject

Who owns each job. Exactly one owner each, so it's always clear which system charged a customer.

Show 5 child attributesHide child attributes
schedulerstring

One of pay_com, engine, merchant or outside.

collectorstring

One of pay_com, engine, merchant or outside.

dunningstring

One of pay_com, engine, merchant or outside.

invoice_issuerstring

One of pay_com, engine, merchant or outside.

taxstring

One of pay_com, engine, merchant or outside.

processorobject

Where the subscription's payments are processed. It stays within the seller: Pay.com sells only on accounts it controls.

Show 4 child attributesHide child attributes
servicestring

acquiring for Pay.com Acquiring, orchestration for one of your own processors.

One of acquiring or orchestration.

account_ownerstring

One of pay_com or merchant.

settlement_accountstring or null

Your settlement account the payments go to. null when Pay.com sells.

providerstring or null

Your processor, with orchestration. Otherwise null.

accessobject

Access is separate from payment status.

Show 2 child attributesHide child attributes
statusstring

One of pending, granted, grace or revoked.

ends_atstring or null
next_paymentobject or null
Show 4 child attributesHide child attributes
amountinteger
currencystring
due_onstring
cancel_byobject

Canceling before at stops this charge. Show last_day in time_zone. Never work a date out on the screen.

Show 3 child attributesHide child attributes
atstring
last_daystring
time_zonestring
price_changeobject or null
Show 5 child attributesHide child attributes
pricestring
versioninteger
amountinteger
currencystring
due_onstring
latest_invoiceobject or null
Show 5 child attributesHide child attributes
idstring or null
external_idstring or null
numberstring or null
statusstring
issuerstring

One of pay_com, engine or merchant.

withdrawal_ends_atstring or null
withdrawal_chargeobject or null
Show 3 child attributesHide child attributes
amountinteger
currencystring
statusstring

One of none, owed, kept, paid or waived.

refund_due_bystring or null
last_failureobject or null
Show 2 child attributesHide child attributes
categorystring
retryableboolean
metadataobject

Your key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.

createdstring
test_modeboolean
has_moreboolean

Errors

400
The request is invalid.
401
The API key is missing or wrong.
403
The key's permissions don't allow this route.
Was this page helpful?