The endpoint is responsible for purchasing, upgrading, downgrading, and renewing subscriptions for a given product. When this endpoint is used, the system creates a oneclick order and returns its unique identifier, id.
upgrade, renew, and downgrade simultaneously for the same subscription (subscriptions must be unique).purchase differs from those for upgrade, renew, and downgrade.purchase, upgrade, renew, downgrade.precheckAutocharge settings.PURCHASE action.purchase.precheck_autocharge setting in the configuration.RENEW, UPGRADE, or DOWNGRADE action.renew upgrade downgrade.precheck_autocharge setting in the configuration.purchase, upgrade, renew, downgrade), the response for each of these requests has a single unified format.404 – Product not found by merchant and code.{
"data": {
"id": "NG1pqx4q"
},
"meta": {
"type": "entity"
}
}The list of possible errors for this endpoint, along with their types and interpretation, is provided in the general reference: Endpoint response errors.