Sportbook APISportbook API
  • 1. Create User (Common)
  • 2. Change Password (Common)
  • 3. Change Status (Common)
  • 4. Redirect Login (Common)
  • 5. Get Profile And Credit (Common)
  • 6. Normal Deposit And Withdraw
  • 7. Deposit And Withdraw Pending Transaction
  • 8. Get WinLose By DepositID (Common)
  • 9. Get Bet History By DepositID (Common)
  • 10. Get WinLose And Turnover (Common)
  • 11. Get Winlose By Date
  • 12. Game List (Common)
  • 13. Start Games (Common)
  • 14. Game Detail (Common)
  • 15. Start Lotto (Common)
  • 16. Get WinLose Multi DepositID (Common)
  • 17. Report Winlose Account
  • 18. Get Provider Prefix List (Common)
  • 19. Get Game List By Provider (Common)
  • 20. Get Normal Baccarat Turnover (Common)
  • 21. Get Deposit And Withdraw Transaction (Common)
  • 22. Get Deposit And Withdraw Transaction By User (Common)
  • 23. Get Credit Agent (Common)
  • 24. Get Recently Games (Common)
  • 25. Favourite Games
  • 26. Dashbaord
  • 27. Get Url Start Tournament (Common)
  • Detail Types
  • Rate Limit
  • Error Code
  • English
  • ภาษาไทย
  • 简体中文
  • 1. Create User (Common)
  • 2. Change Password (Common)
  • 3. Change Status (Common)
  • 4. Redirect Login (Common)
  • 5. Get Profile And Credit (Common)
  • 6. Normal Deposit And Withdraw
  • 7. Deposit And Withdraw Pending Transaction
  • 8. Get WinLose By DepositID (Common)
  • 9. Get Bet History By DepositID (Common)
  • 10. Get WinLose And Turnover (Common)
  • 11. Get Winlose By Date
  • 12. Game List (Common)
  • 13. Start Games (Common)
  • 14. Game Detail (Common)
  • 15. Start Lotto (Common)
  • 16. Get WinLose Multi DepositID (Common)
  • 17. Report Winlose Account
  • 18. Get Provider Prefix List (Common)
  • 19. Get Game List By Provider (Common)
  • 20. Get Normal Baccarat Turnover (Common)
  • 21. Get Deposit And Withdraw Transaction (Common)
  • 22. Get Deposit And Withdraw Transaction By User (Common)
  • 23. Get Credit Agent (Common)
  • 24. Get Recently Games (Common)
  • 25. Favourite Games
  • 26. Dashbaord
  • 27. Get Url Start Tournament (Common)
  • Detail Types
  • Rate Limit
  • Error Code
  • English
  • ภาษาไทย
  • 简体中文
  • Overview
  • 1. Create User (Common)
  • 2. Change Password (Common)
  • 3. Change Status (Common)
  • 4. Redirect Login (Common)
  • 5. Get Profile And Credit (Common)
  • 6. Normal Deposit And Withdraw
  • 7. Deposit And Withdraw Pending Transaction
  • 8. Get WinLose By DepositID (Common)
  • 9. Get Bet History By DepositID (Common)
  • 10. Get WinLose And Turnover (Common)
  • 11. Get Winlose By Date
  • 12. Game List (Common)
  • 13. Start Games (Common)
  • 14. Game Detail (Common)
  • 15. Start Lotto (Common)
  • 16. Get WinLose Multi DepositID (Common)
  • 17. Report Winlose Account
  • 18. Get Provider Prefix List (Common)
  • 19. Get Game List By Provider (Common)
  • 20. Get Normal Baccarat Turnover (Common)
  • 21. Get Deposit And Withdraw Transaction (Common)
  • 22. Get Deposit And Withdraw Transaction By User (Common)
  • 23. Get Credit Agent (Common)
  • 24. Get Recently Games (Common)
  • 25. Favourite Games
  • 26. Dashbaord
  • 27. Get Url Start Tournament (Common)

7. Deposit And Withdraw Pending Transaction

7.1 Create Deposit Withdraw Pending Transaction (Common)

ใช้ในการสร้าง transaction เติมเงินและถอนเงิน และนำ refId ยิงเติมเงินได้ที่เส้น

executeTransactionByRefId

Method : [Post]
Path : {{domain}}/ext/createDepositWithdrawPendingTransaction/{{prefix}}/{{agentUsername}}
Content-Type : application/json

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "username": "{{agentUsername}}ninemb01",
    "action":"DEPOSIT",
    "balance":10,
    "isDp": true
    "web": "{{whiteLabel}}"   
}
KeyTypeExample ValueDescription
agentUsernameStringtestagเอเย่นต์ที่ใช้งาน
keyStringtnyENKDWvOkBXpvm6UZVaคีย์ของเอเย่นต์
usernameStringtestagninemb01ยูสเซอร์ที่ต้องการฝากเงิน
actionStringDEPOSITaction ในการทำรายการ (DEPOSIT , WITHDRAW)
balanceNumber10จำนวนเงินที่ฝาก
isDpBooleantruetrue คือ เป็นรายการฝากเงิน และ ใช้สำหรับนับยอดได้เสีย และ เทรินโอเวอร์ false คือ เป็นรายการฝากเงินเพื่อคืนเงินเข้ารายการฝากไม่นำไปนับยอดได้เสีย และ เทรินโอเวอร์
webStringsportbook101เว็บที่ใช้งาน

Response

{
    "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"
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataObject { "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

Error Code

Valuemsg
0Success
100001Missing 'agent Username' field.
100002Agent username is type string.
100003Missing 'key' field.
100004Key is type string.
100005Missing 'username' field.
100006Username is type string.
100009Your username must be between 8 and 48 character.
100012Key not found.
100013Agent not found.
100014Member not found.
100015Invalid input format 'balance' field.
100016Insufficient balance.
100017You make multiple transactions, please wait 1 minute and try again.

7.2 Execute Deposit And Withdraw By RefId (Common)

ใช้ในการเติมเงินและถอนเงิน โดยนำ refIdจากเส้น

Create Pending Transaction

และสามารถ ตรวจสอบรายการเติมเงินและถอนเงินได้ที่เส้น

Get Transaction By RefId

Method : [Post]
Path : {{domain}}/ext/executeTransactionByRefId/{{prefix}}/{{agentUsername}}
Content-Type: application/json

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "username": "{{agentUsername}}ninemb01",
    "refId":"644cc2e6d4e63e12dfdf0cff",
    "web": "{{whiteLabel}}"   
}
KeyTypeExample ValueDescription
agentUsernameStringtestagเอเย่นต์ที่ใช้งาน
keyStringtnyENKDWvOkBXpvm6UZVaคีย์ของเอเย่นต์
usernameStringtestagninemb01ยูสเซอร์ที่ต้องการฝากเงิน
refIdString644cc2e6d4e63e12dfdf0cffrefId ที่จะใช้ในการเติมเงินได้จากเส้น Create Pending Transaction
webStringsportbook101เว็บที่ใช้งาน

Response

{
    "code": 0,
    "data": {
        "beforeCredit": 71,
        "afterCredit": 81,
        "refId": "644cc2e6d4e63e72dfdf0cff",
        "agent": {
            "beforeCredit": 49929,
            "afterCredit": 49919
        }
    },
    "msg": "SUCCESS"
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataObject { "beforeCredit": 71, "afterCredit": 81, "refId": "644cc2e6d4e63e72dfdf0cff", "agent": { "beforeCredit": 49929, "afterCredit": 49919 } }data deposit and before and after credit

Error Code

Valuemsg
0Success
100001Missing 'agent Username' field.
100002Agent username is type string.
100003Missing 'key' field.
100004Key is type string.
100005Missing 'username' field.
100006Username is type string.
100009Your username must be between 8 and 48 character.
100012Key not found.
100013Agent not found.
100014Member not found.
10100004"Transaction is executed please check status at api getTransactionByRefId ."
100017You make multiple transactions, please wait 1 minute and try again.

7.3 Get Transaction By RefId (Common)

ใช้ในการตรวจสอบการเติมเงินและถอนเงิน โดยนำ refId

Method : [Post]
Path : {{domain}}/ext/getTransactionByRefId/{{prefix}}/{{agentUsername}}
Content-Type: application/json

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "username": "{{agentUsername}}ninemb01",
    "refId":"644cc2e6d4e63e12dfdf0cff",
    "web": "{{whiteLabel}}"   
}
KeyTypeExample ValueDescription
agentUsernameStringtestagเอเย่นต์ที่ใช้งาน
keyStringtnyENKDWvOkBXpvm6UZVaคีย์ของเอเย่นต์
usernameStringtestagninemb01ยูสเซอร์ที่ต้องการฝากเงิน
refIdString644cc2e6d4e63e12dfdf0cffrefId ที่ต้องการตรวจสอบรายการเติมเงินหรือถอนเงิน
webStringsportbook101เว็บที่ใช้งาน

Response

{
    "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"
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataObject { "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

Error Code

Valuemsg
0Success
100001Missing 'agent Username' field.
100002Agent username is type string.
100003Missing 'key' field.
100004Key is type string.
100005Missing 'username' field.
100006Username is type string.
100009Your username must be between 8 and 48 character.
100012Key not found.
100013Agent not found.
100014Member not found.
11002Cast to ObjectId failed for value "644b92dc4596495adf74adc" at path "_id" for model "transferLogs"
100017You make multiple transactions, please wait 1 minute and try again.
ก่อนหน้า
6. Normal Deposit And Withdraw
ถัดไป
8. Get WinLose By DepositID (Common)