Get List
Get subscriptions list.
Post
https://store.payproglobal.com/api/Subscriptions/GetListRequest Parameters
application/jsonSubscriptionsListRequestModel
objectskip
integeroptional
Define how many results you want to skip. The default value is 0.
take
integeroptional
Define how many first results to display after the skipped ones.
Default - 50. Maximum - 100.
Default - 50. Maximum - 100.
search
objectThe search options.
subscriptionIds
integerconditional
The subscription ID for which you want to get the details.
statusIds
integeroptional
The ID of the subscription status. Possible values:
1 – Active, 2 – Suspended, 3 – Terminated, 4 – Finished.
1 – Active, 2 – Suspended, 3 – Terminated, 4 – Finished.
customerEmail
stringconditional
The email of the customer whose subscription details you want to retrieve.
dateFrom
stringoptional
Start date of the search period. Date format "yyyy-MM-ddTHH:mm:ss.fff".
dateTo
stringoptional
End date of the search period. Date format "yyyy-MM-ddTHH:mm:ss.fff".
sortByDate
stringoptional
Sort the subscriptions by the creation date. Possible values:
"asc" - ascending order. Default.
"desc" - descending order.
"asc" - ascending order. Default.
"desc" - descending order.
dateFormat
stringoptional
The date format in which you want to get the order details.
Possible values:
a - "yyyy-MM-ddTHH:mm:ss.fff"
b - "M/d/yyyy"
c - "d-MMM-yyyy"
Possible values:
a - "yyyy-MM-ddTHH:mm:ss.fff"
b - "M/d/yyyy"
c - "d-MMM-yyyy"
includeOrders
booleanoptional
Possible values are true or false. False by default.
If true, it includes order ID values associated with the subscription ID.'
If true, it includes order ID values associated with the subscription ID.'
vendorAccountId
integerrequired
The vendor account ID identifies your PayPro Global account.
It can be found in Account settings > Business info.
It can be found in Account settings > Business info.
apiSecretKey
stringrequired
The vendor account API secret key is a unique key
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
Response Parameters
application/jsonsubscriptionsListResponseModel
objectresponse
objectid
integerThe subscription ID value.
name
stringThe subscription name value.
status
stringThe status of the subscription.
createdAt
stringThe date when order has been placed.
nextPayment
stringThe date of the upcoming subscription payment.
lastPayment
stringThe date of the last subscription payment.
currentChargeCounter
integerThe number of the subscription payments that took place.
subscriptionPrice
numberThe subscription recurring price.
subscriptionCurrency
stringThe currency in which the subscription is paid.
subscriptionPeriod
stringThe subscription billing period.
subscriptionPeriodValue
integerThe value of the subscription billing period.
isTrial
booleanPossible values are true or false.
If true, the subscription is on trial period.
If false, there is no trial period.
If true, the subscription is on trial period.
If false, there is no trial period.
renewalType
stringThe subscription renewal type.
orders
array[object]The collection of orders.
request
objectskip
integerDefine how many results you want to skip. The default value is 0.
take
integerDefine how many first results to display after the skipped ones. Default - 50. Maximum - 100.
search
objectThe search options.
subscriptionIds
integerThe subscription ID for which you want to get the details.
statusIds
integeroptional
The ID of the subscription status. Possible values:
1 – Active, 2 – Suspended, 3 – Terminated, 4 – Finished.
1 – Active, 2 – Suspended, 3 – Terminated, 4 – Finished.
dateFrom
stringoptional
Start date of the search period. Date format "yyyy-MM-ddTHH:mm:ss.fff".
dateTo
stringoptional
End date of the search period. Date format "yyyy-MM-ddTHH:mm:ss.fff".
sortByDate
stringSort the subscriptions by the creation date. Possible values:
"asc" - ascending order. Default.
"desc" - descending order.
"asc" - ascending order. Default.
"desc" - descending order.
dateFormat
stringoptional
The date format in which you want to get the order details.
Possible values:
a - "yyyy-MM-ddTHH:mm:ss.fff"
b - "M/d/yyyy"
c - "d-MMM-yyyy"
Possible values:
a - "yyyy-MM-ddTHH:mm:ss.fff"
b - "M/d/yyyy"
c - "d-MMM-yyyy"
includeOrders
booleanoptional
Possible values are true or false. False by default.
If true, it includes order ID values associated with the subscription ID.
If true, it includes order ID values associated with the subscription ID.
vendorAccountId
integerThe vendor account ID identifies your PayPro Global account.
It can be found in Account settings > Business info.
It can be found in Account settings > Business info.
apiSecretKey
stringThe vendor account API secret key is a unique key
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
errors
array[object]propertyWithError
stringpropertyErrorMessages
array[string]isSuccess
booleanRequest Sample
{
"skip": 0,
"take": 50,
"search": {
"subscriptionIds": [
1111111,
1111111
],
"statusIds": [
1111111
],
"customerEmail": "[email protected]",
"dateFrom": "2023-10-02T08:00:34",
"dateTo": "2024-10-02T09:30:34"
},
"sortByDate": "asc",
"dateFormat": "a",
"includeOrders": true,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample
{
"response": {
"id": 12345678,
"name": "Test_list",
"status": "Active",
"createdAt": "2023-09-09T11:44:10.417",
"nextPayment": "2024-03-29T11:29:59.837",
"lastPayment": "2024-02-29T11:29:59.837",
"currentChargeCounter": 1,
"subscriptionPrice": 58.83,
"subscriptionCurrency": "USD",
"subscriptionPeriod": "Days",
"subscriptionPeriodValue": 1,
"isTrial": false,
"renewalType": "Auto",
"orders": [
1111
]
},
"request": {
"skip": 0,
"take": 50,
"search": {
"subscriptionIds": [
1111111,
1111111
],
"statusIds": [
1111111
],
"customerEmail": "[email protected]",
"dateFrom": "2023-10-02T08:00:34",
"dateTo": "2024-10-02T09:30:34"
},
"sortByDate": "asc",
"dateFormat": "a",
"includeOrders": true,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [],
"isSuccess": true
}