CheckTrans
URl: https://{{gmag_api_url
}}/payment/player/checkTrans?hash={{xxx}}.
Method: POST.
Purpose: used to get the information of a transaction.
Request
Name | Type | Required | Description |
---|---|---|---|
extTransId | String(32) | Yes | The transaction Id defined by the brand. |
Response
Name | Type | Required | Description |
---|---|---|---|
playerId | String(24) | Yes | The unique ID identified a Player on the brand’s side. |
currency | String(4) | Yes | The player’s Currency Code. |
transId | String(64) | Yes | The transaction Id defined by GM-Ag. |
extTransId | String(32) | Yes | The transaction Id defined by the brand. |
amount | numeric(16, 4) | Yes | The amount of a transaction. |
transType | String(32) | Yes | The transType(withdrawal, deposit) |
status | String(32) | Yes | The transaction status. (approved, declined, pending) |
balance | numeric(16, 4) | Yes | The player’s balance. |
bonusBalance | numeric(16, 4) | No | The player’s bonus balance. |
transTime | DateTime | Yes | The created time of the transaction. |
Request example
{
"requestId": "requestId1234",
"brandId": 1001,
"extTransId": "ehcxehxdafkjxndheadfafgesa",
}
Response example
//success
{
"requestId": "requestId1234",
"playerId": "player1123",
"extTransId": "ehcxehxdafkjxndheadfafgesa",
"transId": "xsdfagesafdafe",
"transType": "withdrawal",
"currency": "CNY",
"amount": 100,
"balance": 100,
"bonusBalance": 0,
"status": "approved",
"transTime": "2021-04-10 10:12:00.123Z",
"error": "0",
"message": "success",
}
//error
{
"requestId": "requestId1234",
"error": "P_02",
"message": "Invalid hash",
}