Transfers credit from the player to your agent.
Array ( [api_password] => xapitest [api_login] => xapitest [method] => takeMoney //[user_id] => 123 //DEPRECATED [user_username] => domendomen2 [user_password] => 687ee8d988b2411bfc6983c4fca2f6c622819ac8 [amount] => 0.25 [transactionid] => 12345 [currency] => EUR ) |
NOTICE: Rest request can take |
{"error":false,"message":true} Other possible responses (text format): 0,3.21 1,Transaction already processed! (PROCESSED) 1,Transaction already processed! (CANCELED) 1,Transaction is still being processed! (RESERVED) *PROCESSED means it was successfull *CANCELED means it failed and you dont have to try again *RESERVED means the operation is not completed and you must try again to see the result Transaction id must be unique! or you will recieve the following response: {"error":1,"message":"Transaction already processed! (PROCESSED)"} |
User must be logged in first! |
Amount must be in decimal format, with '.' separator for decimals, example: 1.01 |
public function takeMoney($ammount){ return $this->client->withdrawFunds($ammount); } |