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

Truy vấn số dư tài khoản

Môi trường kết nối

Môi trườngDomain
Productionhttps://gateway.appotapay.com
Devhttps://gateway.dev.appotapay.com

Endpoint: /api/v1/service/accounts/balance

Method: GET

Header: Cách tạo JWT_TOKEN

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

Dữ liệu trả về

Tham sốKiểu dữ liệuMô tả
errorCodeIntegerMã lỗi
messageStringMô tả chi tiết mã lỗi
accountObjectThông tin tài khoản
account.balanceIntegerSố dư tài khoản

Ví dụ

Response

{
"errorCode": 0,
"message": "Thành công",
"account": {
"balance": 2000000
}
}

Code Examples

curl "https://gateway.dev.appotapay.com/api/v1/service/accounts/balance" \
-H "X-APPOTAPAY-AUTH: JWT_TOKEN" \
-H "Content-Type: application/json" \
-H "Language: vi"

Request

REQUEST

Development server