Integration Services API TOTO
Version 2024.08.30
Disclaimer
© 2024 IDNPLAY. All rights reserved.
WEB SERVICE API
INTRODUCTION
Web service API is a private and secured service and not exposed to the publicly
accessible networks. To expose these web services either directly or by proxy, or in any such
way, would be very dangerous.
The below mentioned table provides the details about the available list of APIs
No
Function
1
Get Transaction List
2
Accept/Reject Transaction
3
Accept/Reject/Manual Multiple Transaction
4
Manual Transaction
5
Check User Balance
6
Check User Deposit/Withdraw History
7
Get User Last Deposit/Withdraw
8
Get Game List
9
Get Number History
10
Get Referral List
11
Get Full Transaction
12
Get PGA Transaction History
13
Get Bank List
List Update Log
Update log 21 April 2021 :
*New functions :
1) Check User Balance
2) Check User Deposit/Withdraw History
3) Get User Last Deposit/Withdraw
Update log 15 April 2023 :
*New functions :
1) Manual Transaction
Update log 17 May 2023 :
*New functions :
1) Get Game List
2) Get Number History
3) Get Referral List
4) Get Full Transaction
Update log 23 January 2024 :
*New functions :
1) Specific Bank on Get Transaction List Function
2) Multiple Accept/Reject Transaction
Update log 14 March 2024 :
*New functions :
1) Get PGA Transaction History
Update log 30 August 2024 :
*New functions :
1) Get Bank List
2) Get Full Transaction add parameter date
GET TRANSACTION LIST
This function is used to get a list of pending transactions.
REQUEST :
Method : GET
URL : http://example.com/home.php/TOKEN/TYPE/BANK?NAME=DESTINATION BANK
ACCOUNT NAME
Parameter
Information
TOKEN
TOKEN is a random key and private, it’s needed as authentication
to our server.
The TOKEN will be provided by the IDN side.
TYPE
Type of the transaction, for deposit or withdraw.
Deposit : dps
Withdraw : wd
BANK
Optional parameter to specify destination bank.
Example bank name: bca, mandiri, dana
NAME
Optional parameter to specify destination bank account name.
Example URL :
http://example.com/home.php/PWM6P4HRFR2VXBD1320EJWZ8A0EJK/dps
RESPONSE :
Response type : JSON
Example :
{
"1":{
"id":"123456789",
"user":"test01",
"date":23-02-2021 15:38:48,
"type":"deposit",
"game":"test123",
"bank_acc_name":"TEST TESTACCOUNT",
"bank_name":"BNI",
"bank_acc_number":"0730289330",
"amount":"200000.0000",
"destination_bank":"BNI", "destination_acc_number":"535-288-9976"
},
"2":
{
"id":"987654321",
"user":"test02",
"date":23-02-2021 13:28:21,
"type":"deposit",
"game":"test1",
"bank_acc_name":"LOREM IPSUM",
"bank_name":"BNI",
"bank_acc_number":"8238883774",
"amount":"300000.0000",
"destination_bank":"BNI",
"destination_acc_number":"535-288-9976
"
}
}
Parameter
Information
id
Transaction ID
user
Userid in game
date
Date time of the transaction
type
Type of transaction, deposit or withdraw
game
Name of the website
bank_acc_name
User’s Bank Account name
bank_name
Bank name
bank_acc_number
User’s Bank Account number
amount
Transaction amount
destination_bank
Bank Destination name
destination_acc_number
Bank Destination Account number
ACCEPT/REJECT TRANSACTION
This function is used to accept and reject pending transactions.
REQUEST :
Method : GET
URL :
http://example.com/home.php/TOKEN/TYPE/TRANS_ID/USER/ACTION/COMMENT/OPERATOR
Parameter
Information
TOKEN
TOKEN is a random key and private, it’s needed as authentication
to our server.
The TOKEN will be provided by the IDN side.
TYPE
Type of the transaction submission, for deposit or withdraw.
Deposit : push_dps
Withdraw : push_wd
TRANS_ID
The transaction ID number
USER
Userid in game
ACTION
Action for the transaction. Accept or Reject
COMMENT
A comment/note for the transaction
OPERATOR
Operator name
Example URL :
http://example.com/home.php/PWM6P4HRFR2VXBD1320EJWZ8A0EJK/push_dps/123454321/LOREM
/ ACCEPT/TRANS-01/OP01
RESPONSE :
Response type : JSON
Successful response :
{
"success": true,
"message": "Transaction has been successfully processed."
}
Failed response :
{
"success":false,
"message":"The transaction couldnt be found or has been modified
before"
}
Parameter
Information
success
true or false
message
Message information
MULTIPLE ACCEPT/REJECT/MANUAL TRANSACTION
This function is used to accept and reject multiple pending transactions with maximum 25
transactions per request.
REQUEST :
Method : POST
URL :
http://example.com/home.php/TOKEN/TYPE
Parameter (URL)
Information
TOKEN
TOKEN is a random key and private, it’s needed as authentication
to our server.
The TOKEN will be provided by the IDN side.
TYPE
Type of the transaction submission, for deposit or withdraw.
Deposit : push_dps
Withdraw : push_wd
Parameter (POST)
Information
transaction
Parameter transaction is required
trans_id
The transaction ID number (push_dps and push_wd only)
user
Userid in game
action
Action for the transaction. Accept or Reject. (push_dps and
push_wd only)
amount
Amount value. (manual transaction only)
comment
A comment/note for the transaction
operator
Operator name
Example URL :
http://example.com/home.php/PWM6P4HRFR2VXBD1320EJWZ8A0EJK/push_dps
REQUEST:
Request type : JSON
Request parameter :
(push_dps and push_wd)
{
"transaction" :
[
{
"trans_id": "0000000001",
"user": "LOREM",
"action": "ACCEPT",
"comment": "MULTI DEPOSIT 001 ACCEPT",
"operator": "OP01"
},
{
"trans_id": "0000000002",
"user": "IPSUM",
"action": "REJECT",
"comment": "MULTI DEPOSIT 002 REJECT",
"operator": "OP01"
}
]
}
Request parameter :
(manual)
{
"transaction" :
[
{
"user": "LOREM",
"amount": 10000,
"comment": "BULK MANUAL DEPOSIT 001",
"operator": "OP01"
},
{
"user": "IPSUM",
"amount": 25000,
"comment": "BULK MANUAL DEPOSIT 002",
"operator": "OP01"
}
]
}
RESPONSE :
Response type : JSON
All success response:
{
"success": true,
"message": "All transactions has been successfully processed.",
"data": []
}
Partial success response:
{
"success": true,
"message": "partial transactions has been successfully processed.",
"data": [
{
"success": false,
"trans_id": "0000000001",
"message": "The transaction couldnt be found or has been
modified before"
}
}
Failed response :
{
"success":false,
"message":"Oops something wrong! Please contact operator!",
"data": []
}
Parameter
Information
success
true or false
message
Message information
data
Data for failed transactions *if there’s any
MANUAL TRANSACTION
This function is used to do deposit and withdraw manually.
REQUEST :
Method : GET
URL :
http://example.com/home.php/TOKEN/MANUAL/TYPE/USER/COMMENT/AMOUNT/OPERATOR
Parameter
Information
TOKEN
TOKEN is a random key and private, it’s needed as authentication
to our server.
The TOKEN will be provided by the IDN side.
TYPE
Type of the transaction submission, for deposit or withdraw.
Deposit : depo
Withdraw : wd
USER
Userid in game
COMMENT
A comment/note for the transaction
AMOUNT
Transaction amount
OPERATOR
Operator name
Example URL :
http://example.com/home.php/PWM6P4HRFR2VXBD1320EJWZ8A0EJK/MANUAL/dps/LOREM/TRANS-
01/10000/OP01
RESPONSE :
Response type : JSON
Successful response :
{
"success": true,
"message": "Transaction has been successfully processed."
}
Failed response :
{
"success":false,
"message":"User tidak terdaftar!!"
}
Parameter
Information
success
true or false
message
Message information
CHECK USER BALANCE
This function is used to check the User’s current balance.
REQUEST :
Method : GET
URL :
http://example.com/home.php/TOKEN/player_info/USER
Parameter
Information
TOKEN
TOKEN is a random key and private, it’s needed as authentication
to our server.
The TOKEN will be provided by the IDN side.
USER
Userid in game
Example URL :
http://example.com/home.php/PWM6P4HRFR2VXBD1320EJWZ8A0EJK/player_info/LOREM
RESPONSE :
Response type : JSON
Successful response :
{
"success": true,
"message": "Success",
"user": "lorem",
"balance": "8900.00"
}
Failed response :
{
"success":false,
"message":"User not found"
}
Parameter
Information
success
true or false
message
Message information
user
Userid in game
balance
User’s balance
CHECK USER DEPOSIT/WITHDRAW HISTORY
This function is used to get the list of User’s Deposit/Withdraw transaction history.
REQUEST :
Method : GET
URL :
http://example.com/home.php/TOKEN/history/TYPE/USER
Parameter
Information
TOKEN
TOKEN is a random key and private, it’s needed as authentication
to our server.
The TOKEN will be provided by the IDN side.
TYPE
Type of the transaction, for deposit or withdraw.
Deposit : dps
Withdraw : wd
USER
Userid in game
Example URL :
http://example.com/home.php/PWM6P4HRFR2VXBD1320EJWZ8A0EJK/history/dps/LOREM
RESPONSE :
Response type : JSON
Successful response :
{
"success": true,
"message": "Success",
"user": "lorem",
"data":[
{
"date":"2021-04-19 04:36:47.760",
"amount":"500000"
,
"status":"ACCEPT"
},
{
"date":"2021-04-19 04:27:07.057",
"amount":"200000"
,
"status":"REJECT"
}
]
}
Failed response :
{
"success":false,
"message":"User not found"
}
Parameter
Information
success
true or false
message
Message information
user
Userid in game
date
Date time of the transaction
amount
Transaction amount
status
Status of transaction
GET USER LAST DEPOSIT/WITHDRAW
This function is used to get the latest Deposit/Withdraw transaction of the User.
REQUEST :
Method : GET
URL :
http://example.com/home.php/TOKEN/latest/TYPE/USER
Parameter
Information
TOKEN
TOKEN is a random key and private, it’s needed as authentication
to our server.
The TOKEN will be provided by the IDN side.
TYPE
Type of the transaction, for deposit or withdraw.
Deposit : dps
Withdraw : wd
USER
Userid in game
Example URL :
http://example.com/home.php/PWM6P4HRFR2VXBD1320EJWZ8A0EJK/latest/dps/LOREM
RESPONSE :
Response type : JSON
Successful response :
{
"success": true,
"message": "Success",
"user": "lorem",
"data":{
"date":"2021-04-18 11:50:27.120",
"amount":"500000",
"status":"ACCEPT"
}
}
Failed response :
{
"success":false,
"message":"User not found"
}
Parameter
Information
success
true or false
message
Message information
user
Userid in game
date
Date time of the transaction
amount
Transaction amount
status
Status of transaction
GET GAME LIST
This function is used to get the list of games.
REQUEST :
Method : GET
URL :
http://example.com/home.php/TOKEN/game_list
Parameter
Information
TOKEN
TOKEN is a random key and private, it’s needed as authentication
to our server.
The TOKEN will be provided by the IDN side.
Example URL :
http://example.com/home.php/PWM6P4HRFR2VXBD1320EJWZ8A0EJK/game_list
RESPONSE :
Response type : JSON
Successful response :
{
"success": true,
"message": "Success",
"data":
[
{
"gamecode": "o2",
"pasar": "POOLS5D",
"type": "togel5d"
},
{
"gamecode": "o29",
"pasar": "5D OKILKH",
"type": "togel5d"
}
]
}
Parameter
Information
success
true or false
message
Message information
gamecode
Game code or game ID
pasar
Market name
type
Game type
status
Status of transaction
GET NUMBER HISTORY
This function is used to get history of the last 10 data of outgoing number.
REQUEST :
Method : GET
URL :
http://example.com/home.php/TOKEN/number_history/GAMECODE
Parameter
Information
TOKEN
TOKEN is a random key and private, it’s needed as authentication
to our server.
The TOKEN will be provided by the IDN side.
GAMECODE
Game code or game ID, you can get the game code from API GET
GAME LIST ( 7 )
Example URL :
http://example.com/home.php/PWM6P4HRFR2VXBD1320EJWZ8A0EJK/number_history/USER
RESPONSE :
Response type : JSON
Successful response :
{
"success": true,
"message": "Success",
"gamecode": "o2",
"pasar": "POOLS5D",
"type": "togel5d",
"data":
[
{
"periode": "25",
"tanggal": "10-07-2022 10:21:14",
"angka": "12345"
},
{
"periode": "24",
"tanggal": "25-03-2022 05:55:34",
"angka": "54321"
}
]
}
Failed response :
{
"success":false,
"message":"Invalid Game Code!"
}
Parameter
Information
success
true or false
message
Message information
gamecode
Game code or game ID
pasar
Market name
type
Game type
Periode
Game periode
Tanggal
Date of outgoing number
Angka
The outgoing number
GET REFERRAL LIST
This function is used to get list of downline users.
REQUEST :
Method : GET
URL :
http://example.com/home.php/TOKEN/referral/USER
Parameter
Information
TOKEN
TOKEN is a random key and private, it’s needed as authentication
to our server.
The TOKEN will be provided by the IDN side.
USER
Userid in game.
Example URL :
http://example.com/home.php/PWM6P4HRFR2VXBD1320EJWZ8A0EJK/referral/DOLER
RESPONSE :
Response type : JSON
Successful response :
{
"success": true,
"message": "Success",
"data":
[
{
"user": "LOREM",
"joindate": "2017-04-27 13:27:05.5570000"
},
{
"user": "IPSUM",
"joindate": "2016-01-01 10:11:12.0000000"
}
]
}
Failed response :
{
"success":false,
"message":"Invalid User!"
}
Parameter
Information
success
true or false
message
Message information
user
Downline user ID
joindate
The date of user joined or registered
GET FULL TRANSACTION
This function is used to get list of full transaction or known as Transaksi Lengkap.
REQUEST :
Method : GET
URL :
http://example.com/home.php/TOKEN/full_transction/USER/PAGE?date={date}
Parameter
Information
TOKEN
TOKEN is a random key and private, it’s needed as authentication
to our server.
The TOKEN will be provided by the IDN side.
USER
Userid in game.
PAGE
Number of page
date
Optional parameter date (format: YYYY-MM-DD), if empty then it
will show today’s data.
Example URL :
http://example.com/home.php/PWM6P4HRFR2VXBD1320EJWZ8A0EJK/full_transaction/LOREMS/1?date
=2024-05-17
RESPONSE :
Response type : JSON
Successful response :
{
"success": true,
"message": "Success",
"total_data": "3 Rows",
"total_page": "1 Page(s)"
"message": "Success",
"data":
[
{
"user": "LOREMS",
"date": "2023-05-17",
"periode": "107455",
"gamecode": "p9b",
"pasar": "12D Thunder",
"turnover": "12000.00",
"winlose": "-2000.00"
},
{
"user": "LOREMS",
"date": "2023-05-17",
"periode": "107453",
"gamecode": "p9b",
"pasar": "12D Thunder",
"turnover": "12000.00",
"winlose": "-2000.00"
},
{
"user": "LOREMS",
"date": "2023-05-17",
"periode": "107452",
"gamecode": "p9b",
"pasar": "12D Thunder",
"turnover": "13000.00",
"winlose": "-3000.00"
}
]
}
Failed response :
{
"success":false,
"message":"Invalid User!"
}
Parameter
Information
success
true or false
total_data
Total all data
total_page
Total page
message
Message information
user
User id in game
date
Transaction date
periode
Periode of game
gamecode
Game code or game ID
pasar
Market name
turnover
Total turnover amount
winlose
Total winlose amount
GET PGA TRANSACTION LIST
This function is used to get list of PGA (Payment Gateway) transaction.
REQUEST :
Method : POST
URL :
http://example.com/home.php/TOKEN/pga
Parameter (URL)
Information
TOKEN
TOKEN is a random key and private, it’s needed as authentication
to our server.
The TOKEN will be provided by the IDN side.
Parameter (POST)
Information
user
(Optional) Userid in game.
ref_no
(Optional) Reference number.
status
(Optional) Transaction status:
- all
- paid
- expired
- unpaid
start_date
Start of transaction date. (Format YYYY-MM-DD).
end_date
End of transaction date. (Format YYYY-MM-DD).
page
Page number.
Example URL :
http://example.com/home.php/PWM6P4HRFR2VXBD1320EJWZ8A0EJK/pga
REQUEST:
Request type : JSON
Request parameter :
{
"start_date": "2024-03-01",
"end_date": "2024-03-03",
"page": 1
}
RESPONSE :
Response type : JSON
Successful response :
{
"row": 21,
"total_row": 21,
"page": 1,
"per_page": 1000,
"total_page": 1,
"total_amount_page": 4328948,
"total_amount_all": 4328948,
"data": {
"1": {
"id_invoice": "12387565",
"ref_no": "ODSH396SMNDFU3569FBDSG",
"status": "Accepted",
"by": "PGA",
"user": "LOREM",
"request_date": "2024-03-01 11:54:56.000",
"processed_date": "2024-03-01 11:57:41.000",
"amount": "176000",
"destination_bank": "QRIS"
},
"2": {
"id_invoice": "123898775",
"ref_no": "OSD8676SDFK65CV078723J",
"status": "Unpaid",
"by": "OPERATOR",
"user": "IPSUM",
"request_date": "2024-03-02 19:19:32.000",
"processed_date": "2024-03-02 19:22:11.000",
"amount": "440000",
"destination_bank": "QRIS"
},
"3": {
"id_invoice": "123852297",
"ref_no": "O873245DUIGFA78567523GJHD323",
"status": "Expired",
"by": "OPERATOR",
"user": "DOLER",
"request_date": "2024-03-03 06:42:11.000",
"processed_date": "2024-03-02 07:42:11.000",
"amount": "1000000",
"destination_bank": "QRIS"
}
}
}
Failed response :
{
"success":false,
"message":"Invalid User!"
}
Parameter
Information
row
Total row data per page
total_row
Total row data all pages
page
Current page
per_page
Total data shown per page
total_page
Total page
total_amount_page
Total amount per page
total_amount_all
Total amount all pages
data
List of data
id_invoice
Invoice number
ref_no
Reference number
status
Transaction status
by
The one who process transaction
user
User
request_date
Transaction request date
processed_date
Transaction processed date
amount
Transaction amount
destination_bank
Bank destination
GET BANK LIST
This function is used to get a list of pending transactions.
REQUEST :
Method : GET
URL : http://example.com/home.php/TOKEN/bank_list
Parameter
Information
TOKEN
TOKEN is a random key and private, it’s needed as authentication
to our server.
The TOKEN will be provided by the IDN side.
Example URL :
http://example.com/home.php/PWM6P4HRFR2VXBD1320EJWZ8A0EJK/bank_list
RESPONSE :
Response type : JSON
Example :
"success": true,
"data": [
"BCA",
"MANDIRI",
"BNI",
"BRI"
]