Updated getOrdersStatus (markdown)

master
smashing-kenny 2019-12-11 19:15:43 +02:00
parent 84caa18b74
commit 74346de2cd
1 changed files with 6 additions and 7 deletions

@ -5,8 +5,7 @@ Request type: POST
The getOrdersStatus returns short information for the order matching “order_id” parameter.
### Request parameters
* certificate_id
* order_id
### Response
@ -14,7 +13,7 @@ If no errors in request following parameters will be returned:
* success - true
* time_stamp - server timestamp
* certificates - array of certificates
** certificate_id - unique certificate ID
** order_id - unique order ID
** status - certificate status (active, cancelled, expired, incomplete, new_order, unpaid, pending, processing, reissue, rejected,)
@ -22,9 +21,9 @@ If no errors in request following parameters will be returned:
```JSON
{
"certificates":[
{"certificate_id":"1","status":"processing"},
{"certificate_id":"2","status":"active"},
{"certificate_id":"3","status":"processing"}
{"order_id":"1","status":"processing"},
{"order_id":"2","status":"active"},
{"order_id":"3","status":"processing"}
],
"success":true,
"time_stamp":1575381687
@ -36,7 +35,7 @@ If no errors in request following parameters will be returned:
```PHP
$request = [
"cids" => "CERTIFICATE_IDENTIFIERS, CERTIFICATE_IDENTIFIERS, CERTIFICATE_IDENTIFIERS...",
"cids" => "ORDER_IDENTIFIERS, ORDER_IDENTIFIERS, ORDER_IDENTIFIERS...",
];
$ch = curl_init();