get
https://mediastoreapi-sandbox.cleeng.com/customers//subscription_switches//availability
This endpoint returns all available offers to which a customer can switch from the current subscription in available array. Offers to which customer can't switch are returned in unavailable array with the reason why the switch is not possible.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Possible unavailability reasons
| Code | Possible message |
|---|---|
| PAYMENT_GATEWAY_NOT_SUPPORTED | The customer’s subscription was purchased with a payment gateway that is notsupported by switch functionality. The following payment gateways are supported:
|
| RECURRING_PROCESS_ALREADY_STARTED | The customer's subscription is currently during the recurring payment process. Once a new billing cycle begins it will be possible to use switch functionality. |
| ALREADY_HAS_ACCESS | The customer already has an active subscription to the target offer. |
| TO_OFFER_COUNTRY_NOT_ALLOWED | Target offer is not accessible in the customer's country. Possible when geo-restriction was enabled on the target offer. |
| TO_FREE_OFFER_NOT_ALLOWED | Switch functionality is not supported for offers with price 0. |
| MISSING_PAYMENT_DETAILS | Payment is required for a switch, but no payment details are provided. |

