Skip to main content
Version: Lastest

API Get Subscriber Information By Phone Number

API Get Subscriber Information By Phone Number

Chat with AI▼

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

Method: GET

Header: How to generate JWT_TOKEN

Language: en | vi

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

Params​

ParamsRequiredTypeDescription
phoneNumber√StringPhone number to check subscriber information (format: 09x, 08x,..)

Data result​

ParamsTypeDescription
errorCodeIntegerError code result
messageStringDescription error code detail
dataObjectSubscriber information object
data.phone_numberStringPhone number to check subscriber information
data.telcoStringVendor name

Success​

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

Error​

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

Code Examples​

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

Request​

REQUEST

Development server