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. Dashboard
  • 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. Dashboard
  • 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. Dashboard
  • 27. Get Url Start Tournament (Common)

7. Deposit And Withdraw Pending Transaction

7.1 Create Deposit Withdraw Pending Transaction (Common)

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "username": "{{agentUsername}}ninemb01",
    "action":"DEPOSIT",
    "balance":10,
    "isDp": true
    "web": "{{whiteLabel}}"   
}
KeyTypeExample ValueDescription
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
usernameStringtestagninemb01Users who want to deposit money
actionStringDEPOSITaction in making a transaction (DEPOSIT , WITHDRAW)
balanceNumber10Amount deposited
isDpBooleantrueTrue 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.
webStringsportbook101Active websites.

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)

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "username": "{{agentUsername}}ninemb01",
    "refId":"644cc2e6d4e63e12dfdf0cff",
    "web": "{{whiteLabel}}"   
}
KeyTypeExample ValueDescription
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
usernameStringtestagninemb01Users who want to deposit money
refIdString644cc2e6d4e63e12dfdf0cffrefId to be used for adding funds from Create Pending Transaction
webStringsportbook101Active websites.

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)

Used to verify deposits and withdrawals by using 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
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
usernameStringtestagninemb01Users who want to deposit money
refIdString644cc2e6d4e63e12dfdf0cffrefId to check the deposit or withdrawal details
webStringsportbook101Active websites.

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.
Prev
6. Normal Deposit And Withdraw
Next
8. Get WinLose By DepositID (Common)