Use for Merchant Deposit Credit
Method : [Post]
Path : {{domain}}/ext/deposit/{{prefix}}/{{agentUsername}}
Content-Type : application/json
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"username": "{{agentUsername}}ninemb01",
"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 | User to create |
| 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": {
"afterCredit": 10,
"beforeCredit": 0,
"refId": "61fcda0071ce66000c9c2dfd",
"agent": {
"beforeCredit": 755062.31,
"afterCredit": 755052.31
}
},
"msg": "SUCCESS"
}
| Key | Type | Example Value | Description |
|---|
| code | Number | 0 | Response code of API |
| msg | String | success | description of code |
| data | Object | { "afterCredit": 10, "beforeCredit": 0, "refId": "60fcda0071ce66250c9c2efd", "agent": { "beforeCredit": 755062.31, "afterCredit": 755052.31 } } | data 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 24 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. |
Use for Merchant Withdraw Credit
Method : [Post]
Path : {{domain}}/ext/withdrawal/{{prefix}}/{{agentUsername}}
Content-Type: application/json
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"username": "{{agentUsername}}ninemb01",
"balance":10,
"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 | User to create |
| balance | Number | 10 | Withdrawal Amount |
| web | String | sportbook101 | Active websites. |
{
"code": 0,
"data": {
"afterCredit": 0,
"beforeCredit": 10,
"refId": "61fcda0071ce66000c9c2dfd",
"agent": {
"beforeCredit": 755052.31,
"afterCredit": 755062.31
}
},
"msg": "SUCCESS"
}
| Key | Type | Example Value | Description |
|---|
| code | Number | 0 | Response code of API |
| msg | String | success | description of code |
| data | Object | { "afterCredit": 0, "beforeCredit": 10, "refId": "60fcda0071ce66250c9c2efd", "agent": { "beforeCredit": 755052.31, "afterCredit": 755062.31 } } | data 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 24 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. |