Update Order Status

Update order status

POST https://sandbox.mnasati.com/v1/update_order_status

This endpoint allows you to update the status of an order.

Headers

NameTypeDescription

Authentication

string

Authentication token to track down who is emptying our stocks.

Request Body

NameTypeDescription

sale_code

string

e.g "ZBXL-6324"

order_status

string

e.g "preparing"

comment

string

Add comment to order for reference.

{
   "status":true,
   "message":"Order status changed successfully"
}

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"))

Last updated