Nhảy tới nội dung
Phiên bản: 1.0

API kiểm tra thông tin thuê bao

Endpoint: /api/v1/service/topup/{phoneNumber}/info

Method: GET

Header: Cách tạo JWT_TOKEN

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

Tham số

Tham sốYêu cầuKiểu dữ liệuMô tả
phoneNumberStringSố điện thoại để kiểm tra thông tin thuê bao (truyền dạng: 09x, 08x,..)

Dữ liệu trả về

Tham sốKiểu dữ liệuMô tả
errorCodeIntegerMã lỗi trả về
messageStringMô tả chi tiết mã lỗi
dataObjectThông tin thuê bao
data.phone_numberStringSố điện thoại để kiểm tra thông tin thuê bao
data.telcoStringTên nhà mạng

Thành công

{
"errorCode": 0,
"message": "Thành công",
"data": {
"phone_number": "0968324567"
"telco": "viettel"
}
}

Thất bại

{
"errorCode": 37,
"message": "Số điện thoại không đúng"
}