Skip to main content
Version: Lastest

API Get Subscriber Information By Phone Number

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

Method: GET

Header: How to generate JWT_TOKEN

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

Params

ParamsRequiredTypeDescription
phoneNumberStringPhone 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 "https://gateway.dev.appotapay.com/api/v1/service/0968324567/info" \
-H "X-APPOTAPAY-AUTH: JWT_TOKEN" \
-H "Content-Type: application/json"

Request

REQUEST

Development server