getOrdersStatus - gogetssl/api GitHub Wiki

URL: /orders/statuses/
Request type: POST

Overview

The getOrdersStatus returns short information for the order matching “order_id” parameter.

Request parameters

  • cids - A string with order ids separated by -,. Example:"1222,333,222"

Response

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.

Example response

{
	"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
}

Example code

$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);
⚠️ **GitHub.com Fallback** ⚠️