IDFX Withdrawal

posted in: API | 0

Proses inquiry data.

1. FROM IDFX SERVER
Memastikan bahwa mt4 target dan usd telah benar.

[HOOK] POST http://api.yourbroker.com/idfx
{
  "Term": "withdraw_check",
 "MT4": "1680001069",
  "PhonePass": "123456",
  "USD": "20"
}
Term string Term Action Code
MT4 string MT4 Target
PhonePass string Phone Password

 

2. RESPONSE BROKER WEBHOOK SERVER

{
  "Error":false,
  "Message":"Withdraw OK",
  "MT4":"1680001069",
 "Name":"Joko Santoso",
  "USDAvailable":"100",
 "USD":"20"
}
Error boolean [true/false] Error indicator, false if MT4 is found and ok to withdraw
Message string [OK/Error Message/Other Customized Message] Message to client
MT4 string Reply Confirmation MT4 target
Name string Client Name
USDAvailable string Equity available for withdraw
USD string USD Confirmation

 

3. FROM IDFX SERVER

Semua sudah benar dan dana dapat di withdrawal

[HOOK] POST http://api.yourbroker.com/idfx
{
 "Term": "withdraw",
 "TRID":"123457",
  "MT4":"1680001069",
 "USD":"20",
 "IDR":"200000",
 "Cashback":"6000",
  "IDRTotal":"194000"
}
Term string Term Action Code
TRID string Transaction ID from IDFX
MT4 string MT4 Target
USD string USD Nominal
IDR string IDR Payment
Cashback string Cashback Nominal to broker
IDRTotal string Total IDR after calculation and that will reducted from broker wallet

 

4. RESPONSE BROKER WEBHOOK SERVER

{
  "Error":false,
  "Message":"In Progress",
  "TRID":"123457",
  "MT4":"1680001069",
 "Ticket":"5678905",
 "USD":"20",
 "Status":"PENDING"
}
Error boolean [true/false] Error indicator, true if have an error, message will send to mutation, transaction will canceled
Message string [OK/Error Message/Other Customized Message] Message to client
TRID string Reply Confirmation TRID
MT4 string Reply Confirmation MT4 target
Ticket string MT4 ticket that sent to MT4 target client
USD string Reply Confirmation USD Nominal
Status string [SUCCESS/PENDING/FAILED] if SUCCESS money will reducted/transfered from broker wallet
if PENDING if in progress / need wait / other checking
if FAILED no additional fee and no charge

 

5. FROM BROKER SERVER

Konfirmasi withdrawal dan jika sebelumnya memiliki status pending

POST http://api.idfx.us/v1/update_withdrawal
{
  "APIKey":"1a2s3d4f5g6h7j8k9l0p",
  "TRID":"123457",
  "Message":"TR:FR:1680001069",
  "MT4":"1680001069",
  "Ticket":"5678905",
  "USD":"20",
  "Status":"SUCCESS"
}
APIKey string APIKey
TRID boolean [true/false] Indicating TRID
Message string [OK/Error Message/Other Customized Message] Message to client
MT4 string MT4 target
Ticket string MT4 ticket that sent to MT4 target client
USD string Reply Confirmation USD Nominal
Status string [SUCCESS/PENDING/FAILED] if SUCCESS money will reducted/transfered from broker wallet
if PENDING broker need confirm with api
if FAILED no additional fee and no charge

 

6. RESPONSE IDFX

{
  "Error":false,
  "Message":"OK"
}
Error boolean [true/false] Error indicator, false if MT4 is found and ok to deposit
Message string [OK/Error Message] Message to broker

 

Leave a Reply