Skip to main content

Query Transfer Status

1. Query Transfer Status

Interface Path

  • Get
  • /api/wallet/check

Request Parameters

ParameterNameTypeRequiredDescription
agent_idMerchant IDstringRequiredMerchant ID
user_idMerchant User IDstringRequiredMerchant User ID
typeTransaction TypestringRequireddeposit: Transfer In, withdraw: Transfer Out
txn_idTransfer Transaction IDstringRequiredTransfer In/Out Transaction ID
timestampCurrent TimestampintRequiredTimestamp when calling the interface (in milliseconds, valid for ten minutes)
signSignaturestringRequiredSignature algorithm details in the interface description

Response Parameters

ParameterNameTypeDescription
codeResponse CodeintError Code
messageResponse MessagestringError Message
dataResponse DatadictResponse Data Details
--agent_idMerchant IDstringMerchant ID
--user_idMerchant User IDstringMerchant User ID
--txn_idTransfer Transaction IDstringTransfer Transaction ID
--before_balanceMember Balance Before TransferstringMember Balance Before Transfer
--after_balanceMember Balance After TransferstringMember Balance After Transfer
--currencyCurrencystringCurrency
--statusOrder StatusintOrder Status, 0- In Progress, 1- Success, 2- Failure

Request Example

curl --location 'https://staging.aig1234.com/api/wallet/check?agent_id=agent001&user_id=testUid03&type=deposit&txn_id=txniwsdfa342&timestamp=1732589849000&sign=8f1374b31c83ff1b60e2062897851b84' \
--header 'Content-Type: application/json'

Response Example

{
"code": 200,
"message": "success",
"data": {
"agent_id": "agent001",
"user_id": "testUid03",
"txn_id": "txniwsdfa342",
"before_balance": "-0.69",
"after_balance": "1000.00",
"currency": "VND2",
"status": 1
}
}

Error Codes

200 Success
408000 Request Parameter Error
408003 Whitelist Restriction
408004 API Frequency Limit
600100 Invalid Signature
700101 Merchant Does Not Exist
700103 Member Does Not Exist
700201 Member Wallet Does Not Exist
700202 Member Wallet Type Is Not Transfer Wallet
700205 Transaction ID Does Not Exist