Bulk Change Recurring Price
Update the recurring price for the subscriptions.
Post
https://store.payproglobal.com/api/Subscriptions/BulkChangeRecurringPriceRequest Parameters
application/jsonUpdateSubscriptionsRequestModel
objectproductId
integerrequired
The product ID of the subscriptions for which you want to update the price.
newPriceValue
numberrequired
The new subscription recurring price that you want to apply.
priceCurrencyCode
stringrequired
The subscription currency code. List of supported currency codes at PayPro Global.
If updateReferencePrice is set to true, this currency is used as the reference currency
when updating the subscription’s reference price.
If updateReferencePrice is set to true, this currency is used as the reference currency
when updating the subscription’s reference price.
quantity
integeroptional
The new product quantity that you want to apply.
By default, it returns the current product quantity.
By default, it returns the current product quantity.
subscriptionStatusId
integeroptional
Specifies the subscription status used to filter the subscriptions to be updated.
Supported values are 1 (Active) and 2 (Suspended).
If this parameter is not specified, only Active subscriptions are updated.
Supported values are 1 (Active) and 2 (Suspended).
If this parameter is not specified, only Active subscriptions are updated.
updateReferencePrice
booleanoptional
Possible values are true or false.
Determines whether to update the subscription’s reference price
and reference currency for the product specified in productId.
If set to true, the subscription’s reference price is updated
and its reference currency is changed to the currency specified in priceCurrencyCode.
If set to false, only subscriptions whose billing currency matches the currency specified
in priceCurrencyCode are updated.
Future charges are recalculated based on the new reference price,
while the customer continues to be billed in their subscription currency
using the exchange rate applicable at the time of renewal.
Determines whether to update the subscription’s reference price
and reference currency for the product specified in productId.
If set to true, the subscription’s reference price is updated
and its reference currency is changed to the currency specified in priceCurrencyCode.
If set to false, only subscriptions whose billing currency matches the currency specified
in priceCurrencyCode are updated.
Future charges are recalculated based on the new reference price,
while the customer continues to be billed in their subscription currency
using the exchange rate applicable at the time of renewal.
newSubscriptionName
stringoptional
The new name for a subscription that you want to apply.
sendCustomerNotification
booleanoptional
Possible values are true or false.
If true, it sends a customer an email that informs about
the changed subscription details, false otherwise.
By default, the customer doesn't receive any email notification.
If true, it sends a customer an email that informs about
the changed subscription details, false otherwise.
By default, the customer doesn't receive any email notification.
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.
a unique key that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
Response Parameters
application/jsonUpdateSubscriptionsResponseModel
objectchangedItems
array[object]itemId
integerThe subscription ID that has been updated.
isActionSuccess
booleanPossible values are true or false. If true, the action was successful; if false, otherwise.
actionItemMessage
stringIt displays the action message.
request
objectproductId
integerThe product ID of the subscriptions for which you want to update the price.
newPriceValue
numberThe new subscription recurring price that you want to apply.
priceCurrencyCode
stringThe subscription currency code. List of supported currency codes at PayPro Global.
If updateReferencePrice is set to true, this currency is used as the reference currency
when updating the subscription’s reference price.
If updateReferencePrice is set to true, this currency is used as the reference currency
when updating the subscription’s reference price.
quantity
integerThe new product quantity that you want to apply.
By default, it returns the current product quantity.
By default, it returns the current product quantity.
subscriptionStatusId
integerSpecifies the subscription status used to filter the subscriptions to be updated.
Supported values are 1 (Active) and 2 (Suspended).
If this parameter is not specified, only Active subscriptions are updated.
Supported values are 1 (Active) and 2 (Suspended).
If this parameter is not specified, only Active subscriptions are updated.
updateReferencePrice
booleanPossible values are true or false.
Determines whether to update the subscription’s reference price
and reference currency for the product specified in productId.
If set to true, the subscription’s reference price is updated
and its reference currency is changed to the currency specified in priceCurrencyCode.
If set to false, only subscriptions whose billing currency matches the currency specified
in priceCurrencyCode are updated.
Future charges are recalculated based on the new reference price,
while the customer continues to be billed in their subscription currency
using the exchange rate applicable at the time of renewal.
Determines whether to update the subscription’s reference price
and reference currency for the product specified in productId.
If set to true, the subscription’s reference price is updated
and its reference currency is changed to the currency specified in priceCurrencyCode.
If set to false, only subscriptions whose billing currency matches the currency specified
in priceCurrencyCode are updated.
Future charges are recalculated based on the new reference price,
while the customer continues to be billed in their subscription currency
using the exchange rate applicable at the time of renewal.
newSubscriptionName
stringThe new name for a subscription that you want to apply.
sendCustomerNotification
booleanPossible values are true or false.
If true, it sends a customer an email that informs about
the changed subscription details, false otherwise.
By default, the customer doesn't receive any email notification.
If true, it sends a customer an email that informs about
the changed subscription details, false otherwise.
By default, the customer doesn't receive any email notification.
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.
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
stringpropertyErrorMessages
array[string]isSuccess
booleanRequest Sample
{
"productId": 12345,
"newPriceValue": 50.00,
"priceCurrencyCode": "USD",
"quantity": 1,
"subscriptionStatusId": 2,
"updateReferencePrice": true,
"newSubscriptionName": "Monthly premium subscription plan",
"sendCustomerNotification": true,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample
{
"changedItems": [{
"itemId": 87654321,
"isActionSuccess": true,
"actionItemMessage": "Changed price"
},{
"itemId": 87654321,
"isActionSuccess": true,
"actionItemMessage": "Changed price"
},{
"itemId": 87654321,
"isActionSuccess": true,
"actionItemMessage": "Changed price"
}],
"request": {
"productId": 12345,
"newPriceValue": 50.00,
"priceCurrencyCode": "USD",
"quantity": 1,
"subscriptionStatusId": 2,
"updateReferencePrice": true,
"newSubscriptionName": "Monthly premium subscription plan",
"sendCustomerNotification": true,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [],
"isSuccess": true
}