Skip to main content

Change Product

Update the subscription product.

Request Parametersapplication/json
UpdateProductRequestModel
object
productId
integer
required
The ID of the new product that will be updated in the subscription.
quantity
integer
optional
The new product quantity you want to apply.
startBillingImmediately
boolean
optional
Possible values are true or false.
If the parameter is not provided, it defaults to false.
This parameter applies only when changing a product while the subscription is in a trial period.
Auto-renewal subscriptions:
- If set to true, the product is updated and the recurring payment is processed immediately
using the new product properties.
- If set to false, or if the parameter is not provided, the product is updated
and the recurring payment is processed on the next scheduled billing date
in accordance with the new product properties.
Manual renewal subscriptions:
The subscription billing flow remains unchanged regardless of the parameter value.
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.
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
UpdateProductResponseModel
object
request
object
productId
integer
The ID of the new product that will be updated in the subscription.
quantity
integer
The new product quantity you want to apply.
startBillingImmediately
boolean
Possible values are true or false.
If the parameter is not provided, it defaults to false.
This parameter applies only when changing a product while the subscription is in a trial period.
Auto-renewal subscriptions:
- If set to true, the product is updated and the recurring payment is processed immediately
using the new product properties.
- If set to false, or if the parameter is not provided, the product is updated
and the recurring payment is processed on the next scheduled billing date
in accordance with the new product properties.
Manual renewal subscriptions:
The subscription billing flow remains unchanged regardless of the parameter value.
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.
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
{
"productId": 12345,
"quantity": 3,
"startBillingImmediately": true,
"sendCustomerNotification": true,
"subscriptionId": 1111111,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample
{
"request": {
"productId": 12345,
"quantity": 3,
"startBillingImmediately": true,
"sendCustomerNotification": true,
"subscriptionId": 1111111,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [],
"isSuccess": true
}