Querying for subscriptions
GET/api/v3/package
Filtering
Available filter for the ?where= query parameter:
package_idcustomer_idtokenbrand_idcustom_N- Example:custom_1,custom_2, etc.paymethodpaycyclenicknamebill_stateship_statepackage_status_strpackage_status_stateexternal_keywrite_datetime- Date/time createdmod_datetime- Date/time last modifiedcancel_datetimequote.quote_id- Get the subscription that originated from a specific quoteline_items.external_keyline_items.custom_1line_items.item_id- Get subscriptions that contain a specific product/discountcustomer.superuser_email- Get subscriptions for a specific primary contact email addresscustomer.users.email- Get subscriptions with this email address
Expansions
Nodes you can expand by using the ?expand= query parameter:
line_items- To get the line items for each subscription
Enums
Valid values for package_status_state:
a(for active packages)c(for cancelled packages)e(for expired packages)s(for suspended packages)
Valid values for package_status_str:
- active-trial
- active-current
- active-overdue
- canceled-nonpayment
- canceled-manual
- expired-expired
- expired-trial
- suspended-suspended
Request
Responses
- 200
- 400
- 401
Object was fetched successfully
Bad request
Authentication error