Update Order
PATCH
http://82.180.154.188:4352/orders/67f934802646815cf3d8417d
Last modified:2025-04-13 22:49:10
in case of ...
delivery
, status
and price
pickUpDateFrom
, pickUpDateTo
, deliveryDateFrom
, deliveryDateTo
, status
status
status can only be WAITINGFORPICKUP
,PICKEDUP
,RECIEVED
,READY
,DELIVERED
, orCANCELLED
delivery is the ID of the delivery person the the admin will assign the order to.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'http://82.180.154.188:4352/orders/67f934802646815cf3d8417d' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"delivery": "67f77f8d8cb790ed566c31cd",
"price": 12,
"pickUpDateFrom": "2025-04-11T14:00:00.000Z",
"pickUpDateTo": "2025-04-11T14:00:00.000Z",
"deliveryDateFrom": "2025-04-11T14:00:00.000Z",
"deliveryDateTo": "2025-04-11T14:00:00.000Z",
"status": "PICKEDUP"
}'
Response Response Example
{"status":"success","message":"Order updated successfully"}
Request
Header Params
Authorization
string
required
Example:
Bearer {{JWT}}
Body Params application/json