getOrdersStatus - gogetssl/api GitHub Wiki
URL: /orders/statuses/
Request type: POST
The getOrdersStatus returns short information for the order matching “order_id” parameter.
- cids - A string with order ids separated by -,. Example:"1222,333,222"
If no errors in request following parameters will be returned:
- success - true
- time_stamp - server timestamp
- certificates - array of certificates
- order_id - unique order ID
- status - certificate status (active, cancelled, expired, incomplete, new_order, unpaid, pending, processing, reissue, rejected,)
- expires - optional. If the status is 'active' the certificate expiration date is shown in this field.
{
"certificates":[
{"order_id":"1","status":"processing"},
{"order_id":"2","status":"active", "expires": "2025-01-01"},
{"order_id":"3","status":"processing"}
],
"success":true,
"time_stamp":1575381687
}
$request = [
"cids" => "ORDER_IDENTIFIERS, ORDER_IDENTIFIERS, ORDER_IDENTIFIERS...",
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://my.gogetssl.com/api/orders/statuses/?auth_key=YOUR_AUTH_HASH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
$response = curl_exec($ch);