Skip to main content
Version: Lastest

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

ParamsTypeDescription
errorCodeIntegerError code result
messageStringDescription error code detail
dataArrayList product codes of all telco
data.telcoStringVendor name (see more Table of content list vendor)
data.productsArrayProduct detail of each telco
data.products.idIntegerId of product
data.products.productCodeStringProduct code
data.products.amountStringAmount 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
}
]
}
]
}