title: how to call cs cart api for creating orders?
body: <p>I am creating api function in my one of my cs cart website and where submit the order through api function.</p>
  
  <p>This is for a new windows server, running MySQL 5, PHP 5.6 and IIS. and I am trying, on postman, to validate what's the data has been transfer.</p>
  
  <pre><code>$curl = curl_init();
  
  curl_setopt_array($curl, array(
    CURLOPT_URL =&gt; "https://my-testwebsite.com/api.php?_d=orders&amp;ajax_custom=1",
    CURLOPT_RETURNTRANSFER =&gt; true,
    CURLOPT_ENCODING =&gt; "",
    CURLOPT_MAXREDIRS =&gt; 10,
    CURLOPT_TIMEOUT =&gt; 30,
    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST =&gt; "POST",
    CURLOPT_POSTFIELDS =&gt; "{\r\n  \"user_id\": \"4\",\r\n  \"shipping_id\": \"0\",\r\n  \"payment_id\": \"6\",\r\n  \"products\": {\r\n      \"1000323256\": {\r\n        \"product_id\": \"1002\",\r\n        \"amount\": \"100\"\r\n       },\r\n      \"103101663\": {\r\n        \"product_id\": \"1002\",\r\n        \"amount\":\"100\"\r\n      }\r\n  }\r\n}",
    CURLOPT_HTTPHEADER =&gt; array(
      "Authorization: Basic dmluY2VudC5hcm9ja2lhcmFqQGZ1amlmaWxtLmNvbTplUUE3NzdmN2RrSUR0ODVieVoyM1R0NDYxVzMwRGNTMQ==",
      "Content-Type: application/json",
      "Postman-Token: 050a8bff-d6da-4a0d-b6e8-4cb01bd2c112",
      "cache-control: no-cache"
    ),
  ));
  
  $response = curl_exec($curl);
  $err = curl_error($curl);
  
  curl_close($curl);
  
  if ($err) {
    echo "cURL Error #:" . $err;
  } else {
    echo $response;
  </code></pre>