Use for Merchant Get Credit agent
Method : [Post]
Path : {{domain}}/ext/getAgentCredit/{{prefix}}/{{agentUsername}}
Content-Type : application/json
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"web": "{{whiteLabel}}"
}
Key | Type | Example Value | Description |
---|
agentUsername | String | testag | เอเย่นต์ที่ใช้งาน |
key | String | tnyENKDWvOkBXpvm6UZVa | คีย์ของเอเย่นต์ |
web | String | sportbook101 | เว็บที่ใช้งาน |
{
"code": 0,
"msg": "SUCCESS",
"data": {
"username": "testopup0710",
"balance": 61921.5,
"active": -1,
"currency": "THB"
}
}
Key | Type | Example Value | Description |
---|
code | Number | 0 | Response code of API |
msg | String | success | description of code |
data | Object | { "username": "testopup0710", "balance": 61921.5, "active": -1, "currency": "THB" } | data credit agent active คือ สถานะของยูสนั้นๆ -2 = shareholder ,-1 = agent , 0 = normal , 1 = suspend , 2 = lock |
Value | msg |
---|
0 | Success |
100001 | Missing 'agent Username' field. |
100002 | Agent username is type string. |
100003 | Missing 'key' field. |
100004 | Key is type string. |
100012 | Key not found. |
100013 | Agent not found. |