Used to create transactions for depositing and withdrawing money and to bring the refId to request the deposit at
executeTransactionByRefId
Method : [Post]
Path : {{domain}}/ext/createDepositWithdrawPendingTransaction/{{prefix}}/{{agentUsername}}
Content-Type : application/json
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"username": "{{agentUsername}}ninemb01",
"action":"DEPOSIT",
"balance":10,
"isDp": true
"web": "{{whiteLabel}}"
}
Key | Type | Example Value | Description |
---|
agentUsername | String | testag | The agent's username. |
key | String | tnyENKDWvOkBXpvm6UZVa | The agent's unique key. |
username | String | testagninemb01 | Users who want to deposit money |
action | String | DEPOSIT | action in making a transaction (DEPOSIT , WITHDRAW) |
balance | Number | 10 | Amount deposited |
isDp | Boolean | true | True is a deposit transaction and is used to count the total profit and loss and turnover. False is a deposit transaction to return money to the deposit transaction and is not counted in the total profit and loss and turnover. |
web | String | sportbook101 | Active websites. |
{
"code": 0,
"data": {
"refId": "644cc2e6d4e63e12dfdf0cff",
"isDp": true,
"user": "testninemb01",
"actionBy": "API",
"currency": "THB",
"action": "DEPOSIT",
"amount": 10,
"ip": "151.31.164.56",
"date": "2023-04-29T07:10:30.132Z",
"transaction": "pending"
},
"msg": "SUCCESS"
}
Key | Type | Example Value | Description |
---|
code | Number | 0 | Response code of API |
msg | String | success | description of code |
data | Object | { "refId": "644cc2e6d4e63e12dfdf0cff", "isDp": true, "user": "testninemb01", "actionBy": "API", "currency": "THB", "action": "DEPOSIT", "amount": 10, "ip": "151.31.164.56", "date": "2023-04-29T07:10:30.132Z", "transaction": "pending" } | data pending transaction deposit |
Value | msg |
---|
0 | Success |
100001 | Missing 'agent Username' field. |
100002 | Agent username is type string. |
100003 | Missing 'key' field. |
100004 | Key is type string. |
100005 | Missing 'username' field. |
100006 | Username is type string. |
100009 | Your username must be between 8 and 48 character. |
100012 | Key not found. |
100013 | Agent not found. |
100014 | Member not found. |
100015 | Invalid input format 'balance' field. |
100016 | Insufficient balance. |
100017 | You make multiple transactions, please wait 1 minute and try again. |
Used for depositing and withdrawing money by taking refId from
Create Pending Transaction
And you can check your deposit and withdrawal details at
Get Transaction By RefId
Method : [Post]
Path : {{domain}}/ext/executeTransactionByRefId/{{prefix}}/{{agentUsername}}
Content-Type: application/json
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"username": "{{agentUsername}}ninemb01",
"refId":"644cc2e6d4e63e12dfdf0cff",
"web": "{{whiteLabel}}"
}
Key | Type | Example Value | Description |
---|
agentUsername | String | testag | The agent's username. |
key | String | tnyENKDWvOkBXpvm6UZVa | The agent's unique key. |
username | String | testagninemb01 | Users who want to deposit money |
refId | String | 644cc2e6d4e63e12dfdf0cff | refId to be used for adding funds from Create Pending Transaction |
web | String | sportbook101 | Active websites. |
{
"code": 0,
"data": {
"beforeCredit": 71,
"afterCredit": 81,
"refId": "644cc2e6d4e63e72dfdf0cff",
"agent": {
"beforeCredit": 49929,
"afterCredit": 49919
}
},
"msg": "SUCCESS"
}
Key | Type | Example Value | Description |
---|
code | Number | 0 | Response code of API |
msg | String | success | description of code |
data | Object | { "beforeCredit": 71, "afterCredit": 81, "refId": "644cc2e6d4e63e72dfdf0cff", "agent": { "beforeCredit": 49929, "afterCredit": 49919 } } | data deposit and before and after credit |
Value | msg |
---|
0 | Success |
100001 | Missing 'agent Username' field. |
100002 | Agent username is type string. |
100003 | Missing 'key' field. |
100004 | Key is type string. |
100005 | Missing 'username' field. |
100006 | Username is type string. |
100009 | Your username must be between 8 and 48 character. |
100012 | Key not found. |
100013 | Agent not found. |
100014 | Member not found. |
10100004 | "Transaction is executed please check status at api getTransactionByRefId ." |
100017 | You make multiple transactions, please wait 1 minute and try again. |
Used to verify deposits and withdrawals by using refId.
Method : [Post]
Path : {{domain}}/ext/getTransactionByRefId/{{prefix}}/{{agentUsername}}
Content-Type: application/json
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"username": "{{agentUsername}}ninemb01",
"refId":"644cc2e6d4e63e12dfdf0cff",
"web": "{{whiteLabel}}"
}
Key | Type | Example Value | Description |
---|
agentUsername | String | testag | The agent's username. |
key | String | tnyENKDWvOkBXpvm6UZVa | The agent's unique key. |
username | String | testagninemb01 | Users who want to deposit money |
refId | String | 644cc2e6d4e63e12dfdf0cff | refId to check the deposit or withdrawal details |
web | String | sportbook101 | Active websites. |
{
"code": 0,
"data": {
"refId": "644b92dc4596495adf74adc7",
"isDp": true,
"user": "testninemb01",
"actionBy": "API",
"currency": "THB",
"action": "DEPOSIT",
"amount": 10,
"beforeCredit": 61,
"afterCredit": 71,
"ip": "164.53.32.74",
"date": "2023-04-28T09:33:16.484Z",
"transaction": "success"
},
"msg": "SUCCESS"
}
Key | Type | Example Value | Description |
---|
code | Number | 0 | Response code of API |
msg | String | success | description of code |
data | Object | { "refId": "644b92dc4596495adf74adc7", "isDp": true, "user": "testninemb01", "actionBy": "API", "currency": "THB", "action": "DEPOSIT", "amount": 10, "beforeCredit": 61, "afterCredit": 71, "ip": "164.53.32.74", "date": "2023-04-28T09:33:16.484Z", "transaction": "success" } | data transaction deposit or withdraw |
Value | msg |
---|
0 | Success |
100001 | Missing 'agent Username' field. |
100002 | Agent username is type string. |
100003 | Missing 'key' field. |
100004 | Key is type string. |
100005 | Missing 'username' field. |
100006 | Username is type string. |
100009 | Your username must be between 8 and 48 character. |
100012 | Key not found. |
100013 | Agent not found. |
100014 | Member not found. |
11002 | Cast to ObjectId failed for value "644b92dc4596495adf74adc" at path "_id" for model "transferLogs" |
100017 | You make multiple transactions, please wait 1 minute and try again. |