Change Billing Period
Update the subscription billing cycle.
Post
https://store.payproglobal.com/api/Subscriptions/ChangeBillingPeriodRequest Parameters
application/jsonUpdateBillingCyclePeriodRequestModel
objectnewBillingPeriodTypeId
integerrequired
The new subscription billing period type you want to apply. The available type IDs: 1 - Days, 2 - Weeks, 3 - Months, 4 - Years.
newBillingPeriodValue
integerrequired
The new subscription billing period value that is updated according to the subscription's billing period type. It specifies each N days/weeks/months/years when the subscription charge will happen.
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.
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/jsonUpdateBillingCyclePeriodResponseModel
objectrequest
objectnewBillingPeriodTypeId
integerThe new subscription billing period type you want to apply. The available type IDs: 1 - Days, 2 - Weeks, 3 - Months, 4 - Years.
newBillingPeriodValue
integerThe new subscription billing period value that is updated according to the subscription's billing period type. It specifies each N days/weeks/months/years when the subscription charge will happen.
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.
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
{
"newBillingPeriodTypeId": 3,
"newBillingPeriodValue": 2,
"newSubscriptionName": "Monthly premium subscription plan",
"sendCustomerNotification": true,
"subscriptionId": 1111111,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample
{
"request": {
"newBillingPeriodTypeId": 3,
"newBillingPeriodValue": 2,
"newSubscriptionName": "Monthly premium subscription plan",
"sendCustomerNotification": true,
"subscriptionId": 1111111,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [],
"isSuccess": true
}