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

API Kiểm tra trạng thái giao dịch

Endpoint: /api/v1/service/topup/transaction/{partnerRefId}

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ả
partnerRefIdStringMã giao dịch phía đối tác đưa vào API url

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
transactionObjectThông tin giao dịch
transaction.amountIntegerSố tiền giao dịch
transaction.topupAmountStringSố tiền nạp
transaction.phoneNumberStringSố điện thoại nạp
transaction.appotapayTransIdStringMã giao dịch phía AppotaPay
transaction.timeStringThời gian giao dịch
signatureStringChữ ký thông tin giao dịch trả về, các trường được ký bao gồm (amount + appotapayTransId + errorCode + phoneNumber + time + topupAmount)