Update Order Status
Update order status
Headers
Name
Type
Description
Request Body
Name
Type
Description
{
"status":true,
"message":"Order status changed successfully"
}{ "message": "Not found."}Examples
import http.client
conn = http.client.HTTPSConnection("papi.gallarias.com")
payload = "{\"sale_code\":\"ZBXL-6324\",\"order_status\":\"preparing\",\"comment\":\"test comment\"}"
headers = {
'Content-Type': "",
'Authorization-Jwt': ""
}
conn.request("POST", "/v1/update_order_status", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.mnasati.com/v1/update_order_status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"sale_code\":\"ZBXL-6324\",\"order_status\":\"preparing\",\"comment\":\"test comment\"}",
CURLOPT_HTTPHEADER => [
"Authorization-Jwt: ",
"Content-Type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}Last updated