Get Invoices

Get Invoices API Endpoint



Parameters to be sent to the service are as follows:

Input Name Type Required Description
public_key String Yes your public key
private_key String Yes your private key
order_id String No, default null ID of order.
status String No, default null If null, only successful invoices are returned, if any value (0 or 1) is sent, all invoices (successful and waiting) are returned.


Parameters to be returned from the service are as follows:

Input Name Type Description
status String success or error
message String error message if status is error or last 100 invoices if not order_id sended

Sample Codes

Get Invoice Sample

$url= ''; $post = [
'public_key' => 'your public key',
'private_key' => 'yout private key',
'order_id' =>''
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($post));
$result = curl_exec($ch);
echo json_decode($result);
echo json_decode($result)->message;
Are you a developer? Please look at our New Developer Referral Program , Earn %50.