Suspend Subscription
Suspend the subscription with the option to renew it.
Post
https://store.payproglobal.com/api/Subscriptions/SuspendRequest Parameters
application/jsonCancelWithReasonIdRequestModel
objectcancellationReasonId
integerconditional
The predefined reason for the subscription cancellation request. Possible values with IDs:
1 - The price is too high.
2 - I no longer need this product.
3 - I am not satisfied with the product.
4 - I switched to another product.
5 - It isn't a priority right now.
6 - I subscribed by mistake.
8 - I am switching to another subscription plan.
1 - The price is too high.
2 - I no longer need this product.
3 - I am not satisfied with the product.
4 - I switched to another product.
5 - It isn't a priority right now.
6 - I subscribed by mistake.
8 - I am switching to another subscription plan.
reasonText
stringconditional
The custom reason for the subscription cancellation request. It is required if CancellationReasonId is not passed.
sendCustomerNotification
booleanoptional
Possible values are true or false.
If true, it sends a customer an email that informs
about the subscription suspension reason, 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 suspension reason, false otherwise.
By default, the customer doesn't receive any email notification.
subscriptionId
integerrequired
The subscription ID that needs to be updated.
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/jsonCancelWithReasonIdResponseModel
objectrequest
objectcancellationReasonId
integerThe predefined reason for the subscription cancellation request. Possible values with IDs:
1 - The price is too high.
2 - I no longer need this product.
3 - I am not satisfied with the product.
4 - I switched to another product.
5 - It isn't a priority right now.
6 - I subscribed by mistake.
8 - I am switching to another subscription plan.
1 - The price is too high.
2 - I no longer need this product.
3 - I am not satisfied with the product.
4 - I switched to another product.
5 - It isn't a priority right now.
6 - I subscribed by mistake.
8 - I am switching to another subscription plan.
reasonText
stringThe custom reason for the subscription cancellation request. It is required if CancellationReasonId is not passed.
sendCustomerNotification
booleanPossible values are true or false.
If true, it sends a customer an email that informs
about the subscription suspension reason, 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 suspension reason, false otherwise.
By default, the customer doesn't receive any email notification.
subscriptionId
integerThe subscription ID that needs to be updated.
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
{
"cancellationReasonId": 1,
"reasonText": "your_cancellation_reason",
"sendCustomerNotification": true,
"subscriptionId": 1111111,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample
{
"request": {
"cancellationReasonId": 1,
"reasonText": "your_cancellation_reason",
"sendCustomerNotification": true,
"subscriptionId": 1111111,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [],
"isSuccess": true
}