API Mobile Topup Get Product Codes
Endpoint: /api/v2/service/topup/productCodes
Method: GET
Header: How to generate JWT_TOKEN
{
"X-APPOTAPAY-AUTH": Bearer JWT_TOKEN,
"Content-Type": "application/json"
}
Data result
Params | Type | Description |
---|---|---|
errorCode | Integer | Error code result |
message | String | Description error code detail |
data | Array | List product codes of all telco |
data.telco | String | Vendor name (see more Table of content list vendor) |
data.products | Array | Product detail of each telco |
data.products.id | Integer | Id of product |
data.products.productCode | String | Product code |
data.products.amount | String | Amount respectively with each product code |
Example
Response
{
"errorCode": 0,
"message": "Thành công",
"data": [
{
"telco": "viettel",
"products": [
{
"id": 1,
"productCode": "viettel_10",
"amount": 10000
},
{
"id": 2,
"productCode": "viettel_20",
"amount": 20000
}
]
},
{
"telco": "vinaphone",
"products": [
{
"id": 3,
"productCode": "vinaphone_20",
"amount": 20000
},
{
"id": 4,
"productCode": "vinaphone_10",
"amount": 10000
}
]
}
]
}