List plans
GET
https://instantrecharge.com.ng/api/v1/catalog/variationsReturns the plans for a plan-priced product with today's price in naira. Send the plan's code as variationCode when you create a purchase. Prices change when providers change them, so fetch plans rather than storing them for long; responses are cached for 5 minutes.
Public: no API key needed.
Query parameters
| Name | Type | Description |
|---|---|---|
serviceIDrequired | string | Product code. |
operatorId | string | International airtime only. |
productTypeId | string | International airtime only. |
Responses
200Plans for the product.
{
"data": [
{
"code": "mtn-10mb-100",
"name": "N100 100MB - 24 hrs",
"amount": 100
}
],
"demo": false
}400Unknown serviceID.
{
"type": "catalog_error",
"message": "Unknown product"
}
