Skip to main content
Version: Lastest

API Mobile Topup Get Product Codes

API Mobile Topup Get Product Codes

Chat with AI▼

Endpoint: /api/v2/service/topup/productCodes

Method: GET

Header: How to generate JWT_TOKEN

Language: en | vi

{
"X-APPOTAPAY-AUTH": Bearer JWT_TOKEN,
"Content-Type": "application/json",
"Language": LANGUAGE
}

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": "common",
"description": "Danh sách mã sản phẩm dùng chung cho các nhà mạng",
"products": [
{
"id": 1,
"productCode": "topup_10",
"amount": 10000
}
...
]
},
{
"telco": "viettel",
"description": "Danh sách mã sản phẩm dùng cho nhà mạng viettel",
"products": [
{
"id": 1,
"productCode": "viettel_10",
"amount": 10000
}
...
]
},
{
"telco": "vinaphone",
"description": "Danh sách mã sản phẩm dùng cho nhà mạng vinaphone",
"products": [
{
"id": 3,
"productCode": "vinaphone_20",
"amount": 20000
}
...
]
},
{
"telco": "itel",
"description": "Danh sách mã sản phẩm dùng cho nhà mạng itel",
"products": [
{
"id": 4,
"productCode": "topup_10",
"amount": 20000
}
...
]
},
{
"telco": "gtel",
"description": "Danh sách mã sản phẩm dùng cho nhà mạng gtel",
"products": [
{
"id": 5,
"productCode": "topup_10",
"amount": 10000
}
...
]
}
]
}

Code Examples​

curl --location 'https://gateway.dev.appotapay.com/api/v2/service/topup/productCodes' \
--header 'X-APPOTAPAY-AUTH: JWT_TOKEN' \
--header 'Content-Type: application/json'

Request​

REQUEST

Development server