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 | เอเย่นต์ที่ใช้งาน |
key | String | tnyENKDWvOkBXpvm6UZVa | คีย์ของเอเย่นต์ |
username | String | testagninemb01 | ยูสเซอร์ที่ต้องการสร้าง |
balance | Number | 10 | จำนวนเงินที่ฝาก |
isDp | Boolean | true | true คือ เป็นรายการฝากเงิน และ ใช้สำหรับนับยอดได้เสีย และ เทรินโอเวอร์ false คือ เป็นรายการฝากเงินเพื่อคืนเงินเข้ารายการฝากไม่นำไปนับยอดได้เสีย และ เทรินโอเวอร์ |
web | String | sportbook101 | เว็บที่ใช้งาน |
{
"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 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. |
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 | เอเย่นต์ที่ใช้งาน |
key | String | tnyENKDWvOkBXpvm6UZVa | คีย์ของเอเย่นต์ |
username | String | testagninemb01 | ยูสเซอร์ที่ต้องการสร้าง |
balance | Number | 10 | จำนวนเงินที่ถอน |
web | String | sportbook101 | เว็บที่ใช้งาน |
{
"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 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. |