To get your Merchant ID
contact us at support@bitload4u.com
Title | Payout to bitcoin |
---|---|
Environment |
TEST: https://test.bitload4u.com PROD: https://api.bitload4u.com |
URL |
The URL structure /payout/bitcoin
|
Method |
The request type POST
|
Data Params |
Data type: { merchant_id : [string], transactionId : [string], btcAddress : [string] amount : [string], currency : [string], label : [string] }Example: { merchant_id : "TIzIiwiZW52IjoiVEVTVC1MT0", transactionId : "DEMO-1499247341394", btcAddress : "1LY4cvcLv6nj83F1VzoiRHuqjqSeAV6xM" amount : "120", currency : "USD", label : "John Smith" } |
Success callback Response |
Example: Code: 200 Content: { code : 200, status "Success", message: "Payout successful" response: { dateTime: 1499247694329, btcPaid : "0.00011251", transactionId : "TIzIiwiZW52IjoiVEVTVC1MT0", btcAddress : "1LY4cvcLv6nj83F1VzoiRHuqjqSeAV6xM", amount : "120", currency : "USD", label: "John Smith" } } |
Sample Call |
Just a sample call to endpoint in a runnable format ($.ajax call or a curl request) – this makes life easier and more predictable. $.ajax({ url: "/payout/bitcoin", dataType: "json", data : { merchant_id : "TIzIiwiZW52IjoiVEVTVC1MT0", transactionId : "DEMO-1499247341394", btcAddress : "1LY4cvcLv6nj83F1VzoiRHuqjqSeAV6xM" amount : "120", currency : "USD", label : "John Smith" }, type : "POST", success : function(r) { console.log(r); } }); |