Retrieve a subscription
/subscriptions/{subscription_id}Headers
AuthorizationstringRequiredPath parameters
subscription_idstringRequiredThe subscription's ID (sub_).
Returns
The subscription.
idstringresourcestringversionintegerGoes up by one with every change. Events carry it, so you can skip one older than one you've processed.
statusstringcustomerstringcustomer_reference_idstringreferencestring or nullitemsarray of objectsShow 5 child attributesHide child attributes
idstringThe item (subitem_).
pricestringprice_versionintegerThe version it was sold at.
productstringquantityintegerShow 24 more attributesShow fewer attributes
currencystringThree-letter ISO currency code, in lowercase.
current_period_startstringcurrent_period_endstringtrial_endstring or nullcancel_atstring or nullcanceled_atstring or nullcancellation_reasonstring or nullpayment_methodstring or nullseller_of_recordobjectWho 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
typestringpay_com comes with merchant of record.
entitystringThe selling legal entity (ent_).
engineobjectShow 5 child attributesHide child attributes
typestringconnectionstring or nullcollection_modelstringexternalobject or nullShow 3 child attributesHide child attributes
customerstringsubscriptionstringstatusstringsyncobjectShow 2 child attributesHide child attributes
statusstringlast_synced_atstring or nullresponsibilitiesobjectWho owns each job. Exactly one owner each, so it's always clear which system charged a customer.
Show 5 child attributesHide child attributes
schedulerstringcollectorstringdunningstringinvoice_issuerstringtaxstringprocessorobjectWhere 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
servicestringacquiring for Pay.com Acquiring, orchestration for one of your own processors.
account_ownerstringsettlement_accountstring or nullYour settlement account the payments go to. null when Pay.com sells.
providerstring or nullYour processor, with orchestration. Otherwise null.
accessobjectAccess is separate from payment status.
Show 2 child attributesHide child attributes
statusstringends_atstring or nullnext_paymentobject or nullShow 4 child attributesHide child attributes
amountintegercurrencystringdue_onstringcancel_byobjectCanceling 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
atstringlast_daystringtime_zonestringprice_changeobject or nullShow 5 child attributesHide child attributes
pricestringversionintegeramountintegercurrencystringdue_onstringlatest_invoiceobject or nullShow 5 child attributesHide child attributes
idstring or nullexternal_idstring or nullnumberstring or nullstatusstringissuerstringwithdrawal_ends_atstring or nullwithdrawal_chargeobject or nullShow 3 child attributesHide child attributes
amountintegercurrencystringstatusstringrefund_due_bystring or nulllast_failureobject or nullShow 2 child attributesHide child attributes
categorystringretryablebooleanstore_linkobject or nullShow 2 child attributesHide child attributes
Option 1objectStore tokens and tap time for a purchase linked out from an app.
Show 3 child attributesHide child attributes
platformstringtokensarray of objectsShow 2 child attributesHide child attributes
typestringvaluestringtapped_atstringOption 2nullmetadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
createdstringtest_modebooleanErrors
401403404