GAP Transfer Wallet — Wallet API
These APIs are called by the Operator to GAP's server for managing funds in the Transfer Wallet model.
POST v1/wallet/deposit-funds
Deposit Funds: POST /api/v1/wallet/deposit-funds
Credit funds to user account in the Transfer Wallet system.
- Request URL:
https://dev-api.dreamdelhi.com/api/v1/wallet/deposit-funds[POST] - Content-Type:
application/json - Signature: Required
Request
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| operatorId | String | Yes | Operator ID |
| partnerId | String | Yes | Partner ID |
| userId | String | Yes | User unique ID in operator system |
| requestId | String | Yes | Unique request ID |
| creditAmount | Float64 | Yes | Amount to credit |
Response
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| status | String | Yes | RS_OK or error code |
| errorDescription | String | Yes | Error description |
| balance | Float64 | Yes | Current balance after credit |
POST v1/wallet/withdraw-funds
Withdraw Funds: POST /api/v1/wallet/withdraw-funds
Debit funds from user account in the Transfer Wallet system.
- Request URL:
https://dev-api.dreamdelhi.com/api/v1/wallet/withdraw-funds[POST] - Content-Type:
application/json - Signature: Required
Request
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| operatorId | String | Yes | Operator ID |
| partnerId | String | Yes | Partner ID |
| userId | String | Yes | User unique ID in operator system |
| requestId | String | Yes | Unique request ID |
| debitAmount | Float64 | Yes | Amount to debit |
Response
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| status | String | Yes | RS_OK or error code |
| errorDescription | String | Yes | Error description |
| balance | Float64 | Yes | Current balance after debit |
POST v1/wallet/user-balance
User Balance: POST /api/v1/wallet/user-balance
Retrieve user current balance in the Transfer Wallet system.
- Request URL:
https://dev-api.dreamdelhi.com/api/v1/wallet/user-balance[POST] - Content-Type:
application/json - Signature: Required
Request
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| operatorId | String | Yes | Operator ID |
| partnerId | String | Yes | Partner ID |
| userId | String | Yes | User unique ID in operator system |
Response
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| status | String | Yes | RS_OK or error code |
| errorDescription | String | Yes | Error description |
| balance | Float64 | Yes | Current balance |
POST v1/wallet/transfer-wallet-status
Transfer Wallet Status: POST /api/v1/wallet/transfer-wallet-status
To get the status of a transfer wallet request. Parameter should be in JSON format.
- Request URL:
https://dev-api.dreamdelhi.com/api/v1/wallet/transfer-wallet-status[POST] - Content-Type:
application/json - Signature: Required
Request
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| operatorId | String | Yes | operatorId |
| requestId | String | Yes | Unique request Id |
| userId | String | Yes | User unique ID in operator system |
Example: Sample Object of the data
{
OperatorId string `json:"operatorId"`
UserId string `json:"userId"`
RequestId string `json:"requestId"`
}
Response
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| status | String | Yes | Response Status message code |
| errorDescription | String | Yes | Error Description |
| operatorId | String | Yes | OperatorId |
| userId | String | Yes | User Id |
| requestId | String | Yes | Request Id |
| balance | Float32 | Yes | Balance |
| requestType | String | Yes | Request Type |
Example: Sample Object of the data
{
OperatorId string `json:"operatorId"`
UserId string `json:"userId"`
RequestId string `json:"requestId"`
Status string `json:"status"`
ErrorDescription string `json:"errorDescription"`
Balance float64 `json:"balance"`
RequestType string `json:"requestType"`
}
Example Request
curl --location 'https://dev-api.dreamdelhi.com/api/v1/wallet/transfer-wallet-status' \
--data '{
"requestId": "17c30047-0788-4173-9f77-da3e60afd01f",
"operatorId": "HypexDemo",
"userId": "900001"
}'
Example Response (200 OK)
{
"operatorId": "HypexDemo",
"userId": "900001",
"requestId": "17c30047-0788-4173-9f77-da3e60afd01f",
"status": "RS_OK",
"errorDescription": "",
"balance": 867976,
"requestType": "BETPLACEMENT"
}