Skip to main content

Bulk Finish Subscriptions

Finish the subscriptions in bulk.

Request Parametersapplication/json
BulkUpdateSubscriptionsRequestModel
object
subscriptionIds
array[integer]
required
The list of subscription IDs that need to be finished.
sendVendorEmail
boolean
Possible values are true or false.
If true, it sends a vendor an email that informs
about the finished subscriptions, false otherwise.
By default, no email notification is sent.
sendCustomerEmail
boolean
Possible values are true or false.
If true, it sends a customer an email that informs
about the finished subscriptions, false otherwise.
By default, no email notification is sent.
sendIpn
boolean
Possible values are true or false.
If true, it sends IPN/webhook notification:
IPN_TYPE_ID=11, IPN_TYPE_NAME=SubscriptionFinished.
By default, no IPN/webhook notification is sent.
vendorAccountId
integer
required
The vendor account ID identifies your PayPro Global account.
It can be found in Account settings > Business info.
apiSecretKey
string
required
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.
Response Parametersapplication/json
BulkUpdateSubscriptionsResponseModel
object
request
object
subscriptionIds
array[integer]
required
The list of subscription IDs that need to be finished.
sendVendorEmail
boolean
Possible values are true or false.
If true, it sends a vendor an email that informs
about the finished subscriptions, false otherwise.
By default, no email notification is sent.
sendCustomerEmail
boolean
Possible values are true or false.
If true, it sends a customer an email that informs
about the finished subscriptions, false otherwise.
By default, no email notification is sent.
sendIpn
boolean
Possible values are true or false.
If true, it sends IPN/webhook notification:
IPN_TYPE_ID=11, IPN_TYPE_NAME=SubscriptionFinished.
By default, no IPN/webhook notification is sent.
vendorAccountId
integer
The vendor account ID identifies your PayPro Global account.
It can be found in Account settings > Business info.
apiSecretKey
string
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.
errors
array[object]
propertyWithError
string
propertyErrorMessages
array[string]
isSuccess
boolean
Request Sample
{
"subscriptionIds": [
1,
2
],
"sendVendorEmail": true,
"sendCustomerEmail": true,
"sendIpn": true,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample
{
"request": {
"subscriptionIds": [
1,
2
],
"sendVendorEmail": true,
"sendCustomerEmail": true,
"sendIpn": true,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [
{
"propertyWithError": "orderId",
"propertyErrorMessages": [
"Error message 1",
"Error message 2"
]
},
{
"propertyWithError": "orderId",
"propertyErrorMessages": [
"Error message 1",
"Error message 2"
]
}
],
"isSuccess": false
}