get https://staging.myrecurpay.com/api/storefront/v2/customers//subscriptions/count
Fetch the number of subscriptions taken by a specific customer.
Using the APIs in production?
While using the APIs in production, you just need to use your URL (example.recurpay.com) as an endpoint instead of staging.recurpay.com as shown in examples.
Path Params
Attribute | Type | Description |
---|---|---|
customer_id | number | Id of the customer. |
state | enum | Subscription state. It can be either active, halted, paused, trial, cancelled. Default - Count of all subscriptions irrespective of the state. |
Response Params
Attribute | Type | Description |
---|---|---|
count | number | Count of total subscriptions taken by the customer. |