Package Upgrade/Downgrade
Get detailed information about changing a subscriber’s package.
This API service allows you to change the current package of a subscriber.
Rules for Package Changes:
Whether the change is an upgrade or downgrade is defined by the changeType
parameter sent in the request.
Downgrade
If the new package is cheaper than the current one: → The change will take effect at the end of the current package period.
Upgrade
If the new package is more expensive than the current one: → The unused portion of the current package will be credited towards the new package fee, → The subscriber will be switched to the new package immediately.
To ensure a smooth transition, the currency defined for the relevant country in the new package must match the currency in the current package. For example, if the current package uses USD for the USA, the new package must also use USD for the USA.
URL
Request Parameters
newPackageId
: The ID of the new package to be assigned.
packageId
: The ID of the current package associated with the subscription.
subscriberIpAddress
: The IP address of the subscriber.
redirectUrl
: If 3D Secure (3DS) is used during the transaction, this is the URL to which the user will be redirected after the payment is completed. You can use the URL of your Zotlo sales site here.
subscriberId
: The ID of the subscriber whose package will be changed.
changeType
: Accepts either upgrade
or downgrade
.
If
upgrade
, the package will be upgraded and activated as soon as the new package fee is successfully charged to the credit card.If
downgrade
, the new package will be activated at the beginning of the next renewal period.
Example Request
When sending a request to the subscription inquiry service, you can obtain the necessary Access Key and Access Secret information from the Developer Tools/API Keys page in the Zotlo Panel.
Successful Response Examples
Successful Response Parameters
The parameters included in the successful response are as follows.
newPackage
Returns the details of the new package to be assigned. If there is a price difference between the current and new packages, the change will only be applied after the payment is successfully processed.
Failed Response Example
Our services return HTTP status code 200
for successful responses. For unsuccessful cases, HTTP status codes 400
or 500
are returned. An example error response is as follows:
Failed Response Parameters
Below are the parameters included in failed responses.
requestId
It is the unique request parameter generated and stored by Zotlo for your transaction.
httpStatus
It is the HTTP status code related to the response. The standard codes 400
or 500
are returned.
errorMessage
It is the detail of the received error. The error message is provided in the language specific to the parameter you sent.
errorCode
It is the error code from Zotlo.
result
The values this field can take are variable.If there’s an error, it will include data; otherwise, it will return as an empty object.
Last updated