All requests to BIPS API endpoint listed under Versions, will be returned in the same type of JSON encoded envelope structure.
Creating a new user on BIPS with your adduser partner API key is done by sending a request to API endpoint https://bips.me/api/v1/adduser containing the details of the user.
$fields = array( // User POST fields 'email' => '[email protected]', 'password' => '123456789', 'fullname' => 'John Doe', // Merchant POST fields 'companyname' => 'Bitcoin Incorporated', 'website' => 'http://example.com', 'phone' => '+1 123 123 1234', 'address1' => '123 Main St.', 'address2' => 'City, Province, Postal Code', 'country' => 'United States of America', 'type' => '1', 'percentage' => '100', 'bitcoinaddress' => '14RALNXN1v8Voj3wRU2hMCwNd8gfGBbi3f', // Optional POST fields 'mm' => '01', 'dd' => '01', 'yyyy' => '1990', 'nick' => 'johndoe', 'gender' => 'male', // female, male, NotApplicable 'mobile' => '12345678' ); $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_URL => 'https://bips.me/api/v1/adduser', CURLOPT_USERPWD => 'Partner_API_KEY', CURLOPT_POSTFIELDS => http_build_query($fields), CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPAUTH => CURLAUTH_BASIC)); $response = json_decode(curl_exec($ch)); curl_close($ch);
{ "status": 'Created', "uniqid": 'cXc', "invoice": '393f268f77450e87d5ada420923f29ab', "export": '393f268f77450e87d5ada420923f29ab' }
Refer to Requests for usage of “invoice” and “export” parameters.
Creating a new buy order on BIPS Market with your buyorder partner API key is done by sending a request to API endpoint https://bipsmarket.com/api/v1/buy_order containing the details of the order.
{ "status": 1, "message": 'Success', "transfer_id": 123 }
* You will need to fund your provided BIPS Market partner bank information.
Updating a buy order for processing on BIPS Market with your buyorder partner API key is done by sending a request to API endpoint https://bipsmarket.com/api/v1/buy_order_create containing the public id of customer and transfer id of the order.
{ "status": 1, "message": 'Success', "amount": 0.04327543, "rate": 805.00, "transfer_id": 123 }
This section was last updated on May 19, 2014 and replaces all previous versions of this document.