get https://ssl.hot.co.zw/api/v3/query/stock/
Method for checking available stock
Overview
Description
This is the end point for checking available EVD stock.
{
"stock": [
{
"productId": 16,
"name": "Daily Data Bundle (20MB)",
"productCode": "DDB20",
"description": "Daily Data Bundle (20MB)",
"value": 28400,
"currency": "ZiG",
"walletTypeId": 1
},
{
"productId": 16,
"name": "Data Daily - 40MB",
"productCode": "DDB50",
"description": "Daily Data Bundle (40)",
"value": 56800,
"currency": "ZiG",
"walletTypeId": 1
},
{
"productId": 16,
"name": "Daily Data - 80MB",
"productCode": "DDB80",
"description": "Daily Data Bundle (80MB)",
"value": 113000,
"currency": "ZiG",
"walletTypeId": 1
}
]
}
{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"errors": {
"ProductId": [
"Unsupported Brand Exception - \"ProductId\" ProductId is not supported for Stock Query. 67"
]
}
}
Response Model
Field | Parameter Type | Description |
---|---|---|
ProductId | int | The ProductId of product |
Name | string | The name of the stock item. This can be the data bundle name eg. Daily Data Bundle |
Description | string | The description of the bundle or voucher |
ProductCode | string | ProductCode is used to identify the specific bundle or voucher to be recharged for the product. |
Value | decimal | The value of the bundle being recharged. If the bundle value doesn't match the product code the recharge will fail. |
Currency | string | The Currency of the product |
WalletTypeId | int | The Wallet Type Id for the account that will be debited for this transaction |