Skip to main content

Member Deposit

1. Member Deposit

Interface Path

  • POST
  • /api/wallet/deposit

Description

  • For member deposits, if the status fails due to network issues or is pending, please confirm the transfer status through the query transfer interface after 10 seconds.
  • Amount precision:
USD:  2
VND: 2
VND2: 2
BRL: 2

Request Parameters

ParameterNameTypeRequiredDescription
agent_idMerchant IDstringRequiredMerchant ID
user_idMerchant User IDstringRequiredMerchant User ID
txn_idMerchant Generated Transaction IDstringRequiredMerchant Generated Transaction ID, ensure global uniqueness
amountDeposit AmountstringRequiredDeposit Amount
currencyCurrencystringRequiredCurrency
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
--txn_idMember Deposit Transaction IDstringMember Deposit Transaction ID

Request Example

curl --location 'https://staging.aig1234.com/api/wallet/deposit' \
--header 'Content-Type: application/json' \
--data '{
"agent_id": "agent001",
"user_id": "testUid03",
"txn_id": "txniwsdfa342",
"amount": "1000.69",
"currency": "VND2",
"timestamp": 1732589849000,
"sign": "6d39491fb4195d392dc3d53bf6c88138"
}'

Response Example

{
"code": 200,
"message": "success",
"data": {
"txn_id": "txniwsdfa342"
}
}

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
700203 Invalid Deposit Amount Parameter
700204 Member Deposit Failed
700208 Currency Error
700209 Transaction ID Already Exists