Bulk Terminate Subscriptions
Terminate the subscriptions in bulk.
Post
https://store.payproglobal.com/api/Subscriptions/BulkTerminateSubscriptionsRequest Parameters
application/jsonBulkUpdateSubscriptionsRequestModel
objectsubscriptionIds
array[integer]required
The list of subscription IDs that need to be terminated.
sendVendorEmail
booleanoptional
Possible values are true or false.
If true, it sends a vendor an email that informs
about the subscription termination, false otherwise.
By default, no email notification is sent.
If true, it sends a vendor an email that informs
about the subscription termination, false otherwise.
By default, no email notification is sent.
sendCustomerEmail
booleanoptional
Possible values are true or false.
If true, it sends a customer an email that informs
about the subscription termination, false otherwise.
By default, the customer doesn't receive any email notification.
If true, it sends a customer an email that informs
about the subscription termination, false otherwise.
By default, the customer doesn't receive any email notification.
sendIpn
booleanoptional
Possible values are true or false.
If true, it sends IPN/webhook notification: IPN_TYPE_ID=10,
IPN_TYPE_NAME=SubscriptionTerminated.
By default, no IPN/webhook notification is sent.
If true, it sends IPN/webhook notification: IPN_TYPE_ID=10,
IPN_TYPE_NAME=SubscriptionTerminated.
By default, no IPN/webhook notification is sent.
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/jsonBulkUpdateSubscriptionsResponseModel
objectmessage
stringThe notification on the API request processing.
request
objectsubscriptionIds
array[integer]required
The list of subscription IDs that need to be terminated.
sendVendorEmail
booleanPossible values are true or false.
If true, it sends a vendor an email that informs
about the subscription termination, false otherwise.
By default, no email notification is sent.
If true, it sends a vendor an email that informs
about the subscription termination, false otherwise.
By default, no email notification is sent.
sendCustomerEmail
booleanPossible values are true or false.
If true, it sends a customer an email that informs
about the subscription termination, false otherwise.
By default, the customer doesn't receive any email notification.
If true, it sends a customer an email that informs
about the subscription termination, false otherwise.
By default, the customer doesn't receive any email notification.
sendIpn
booleanPossible values are true or false.
If true, it sends IPN/webhook notification: IPN_TYPE_ID=10,
IPN_TYPE_NAME=SubscriptionTerminated.
By default, no IPN/webhook notification is sent.
If true, it sends IPN/webhook notification: IPN_TYPE_ID=10,
IPN_TYPE_NAME=SubscriptionTerminated.
By default, no IPN/webhook notification is sent.
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
{
"subscriptionIds": [
1111111,
1111111
],
"sendVendorEmail": true,
"sendCustomerEmail": true,
"sendIpn": true,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample
{
"message": "Bulk Terminate Subscriptions request accepted and scheduled for processing.",
"request": {
"subscriptionIds": [
1111111,
1111111
],
"sendVendorEmail": true,
"sendCustomerEmail": true,
"sendIpn": true,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [],
"isSuccess": true
}