Locate your function that processed the order.

Send a post request to https://atlass-302217.ew.r.appspot.com/order/add containing the JSON code below.

Depending on the programming languange, we set up some examples:

Don’t forget to change the fields with the actual customer data.

Raw JSON
  {
  "APPKEY": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", // Organization APPKEY, *required
  "APP_SECRET": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // Organization SECRET, *required
  "firstname": "John", //Client firstname
  "lastname": "Doe", //Client lastname
  "email": "John@doe.com", //Client email, *required
  "IP": "71.23.54.682", //Client IP
  "orderName": "Order number 215645675733",
  "orderPrice": 349,
  "orderID": 1252653462, //internal ID of the order
  "orderItems": [
    { 
        "Name": "Produs test 1" , 
        "Price": 299,
        "Quantity":1 
    }
    ...
  ]
}
For PHP, use this code:
  $data = array(
    "APPKEY" => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", // Organization APPKEY, *required
    "APP_SECRET" => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // Organization SECRET, *required
    "firstname" => "John", //Client firstname
    "lastname" => "Doe", //Client lastname
    "email" => "john.doe@gmail.com", //Client email, *required
    "IP" =>  "71.23.54.682", //Client IP
    "orderName" => "Order number 215645675733", //Order name, Purchase name or Product name 
    "orderPrice" => 349, //Order price, Purchase price or Product price 
    "orderID" => 1252653462, // internal ID of the order
    "orderItems" => array( 
        array( 
            "Name" => "Item one",
            "Price" => 349,
            "Quantity" => 1
        ) 
    )
);

$payload = json_encode($data);

// Prepare new cURL resource
$ch = curl_init('https://atlass-302217.ew.r.appspot.com/order/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLINFO_HEADER_OUT, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);

// Set HTTP Header for POST request 
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Content-Length: ' . strlen($payload))
);

// Submit the POST request
$result = curl_exec($ch);

// Close cURL session handle
curl_close($ch);

var_dump( $result );

Save the page and publish it.