Get subscriptions of a specific customer.

Path Params

URL ParametersTypeDescription
customer_idstringCustomer id - A unique identifier for the customer.

Response Params

AttributeTypeDescription
subscriptionsarray of objectsObject containing the subscription details. See Subscription - Object

Subscription Object

AttributeTypeDescription
idstringSubscription id - A unique identifier for the subscription.
customerobjectObject containing the customer details. See Customer - Object
statusobjectSubscription Status. It can be either active, halted, paused, trial, cancelled.
planobjectObject containing the plan details. See Plan - Object
originOrderobjectObject containing the main/origin order details. See Order - Object
shipping_addressobjectObject containing the shipping address details of subscription. See Address - Object
billing_addressobjectObject containing the billing address details of subscription. See Address - Object
transactionobjectObject containing the transaction details of subscription. See Transaction - Object
renewalobjectObject containing the renewal details of subscription. See Renewal - Object
subscribed_atdatetimeThe date and time when the first subscription order was created.
created_atdatetimeThe date and time when the subscription was created.
updated_atdatetimeThe date and time when the subscription was updated.

Customer Object

AttributeTypeDescription
idstringCustomer id - A unique identifier for the customer.
emailstringThe unique email address of the customer.
first_namestringThe customer's first name.
last_namestringThe customer's last name.
phonestringThe customer's first name.
total_spentfloatThe customer's total spent on subscriptions.
notestringThe customer's profile note.
addressesobjectAll addresses linked to the customer. See Address - Object
default_addressobjectDefault address of the customer. See Address - Object
created_atdatetimeThe date and time when the customer was created.
updated_atdatetimeThe date and time when the customer was created.
channelstringChannel where the customer was created.

Address Object

AttributeTypeDescription
first_namestringThe customer's first name.
last_namestringThe customer's last name.
address1stringThe customer's mailing address.
citystringThe customer's city, town, or village.
provincestringThe customer's region name. Typically a province, a state, or a prefecture.
zipstringThe customer's postal code, also known as zip, postcode, Eircode, etc.
phonestringThe customer's phone.
phone_prefixstringThe prefix or international code of the phone.
phone_country_codestringThe country code of the phone number.
countrystringThe customer's country.

Transaction Object

AttributeTypeDescription
gatewaystringName of the payment gateway
modestringMode of the payment. Eg: Either card, upi, cod etc.
recurringbooleanIt can be either true or false, depending on whether recurring transactions are allowed on the payment mode used for the transaction

Renewal Object

AttributeTypeDescription
last_renewaldatetimeDate and time of the last renewal of subscription
next_renewaldatetimeDate and time of the next renewal of subscription
pending_renewalintegerCount of the remaining renewals, applicable only for prepaid subscriptions.
Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!