Apply Accumulative Discount
Apply the accumulative discount to the existing subscription.
Post
https://store.payproglobal.com/api/Subscriptions/ApplyAccumulativeDiscount
Request Parameters
application/json
ApplyAccumulativeDiscountRequestModel
object
discountValue
number
required
The value of the discount you want to apply.
subscriptionId
integer
required
The subscription ID that needs to be updated.
vendorAccountId
integer
required
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
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.
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
Response Parameters
application/json
ApplyAccumulativeDiscountResponseModel
object
isDiscountApplied
boolean
Possible values are true or false. If true, the discount has been successfully applied; if false, otherwise.
request
object
discountValue
number
The value of the discount you want to apply.
subscriptionId
integer
The subscription ID that needs to be updated.
vendorAccountId
integer
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
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.
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
{
"discountValue": 25.0,
"subscriptionId": 1111111,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample
{
"isDiscountApplied": true,
"request": {
"discountValue": 25.0,
"subscriptionId": 1111111,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [],
"isSuccess": true
}