Skip to main content

Payout Notification Interface Format

1. Payout Notification Interface Format

Interface Path

  • POST
  • /aigame/v1/wallet/payout

Request Parameters

ParameterNameTypeRequiredDescription
agent_idMerchant IDstringRequiredMerchant ID
user_idMerchant User IDstringRequiredMerchant User ID
game_idGame IDstringRequiredGame ID, 101: Baccarat
bet_txn_idBet Order IDstringRequiredBet Order ID
win_amountPayout AmountstringRequiredPayout Amount
pay_out_timePayout TimeintRequiredPayout Time (in milliseconds)
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
--balancePlayer BalancestringPlayer Balance
--currencyCurrencystringCurrency

Request Example

curl --location 'https://merchant_address/aigame/v1/wallet/payout' \
--header 'Content-Type: application/json' \
--data '{
"agent_id": "agent001",
"user_id": "testUid03",
"game_id": "101",
"bet_txn_id": "67453d0c23c36d2571d40817",
"win_amount": "100",
"pay_out_time": 1732589121000,
"currency": "VND2",
"timestamp": 1732589849000,
"sign": "ac596804f9b76ec6be8f38ad71e4fdb0"
}'

Response Example

{
"code": 200,
"message": "success",
"data": {
"balance": "1282.66",
"currency": "VND2"
}
}

Error Codes

200 Success
800100: Service exception
408000: Parameter error
600100: Signature error
800101: Member does not exist
800102: Currency does not exist
800107: Order ID does not exist
800109: Payout failure