Status
PATCH endpoint for /pharmacy/order-status/:orderId/status in pharmacy category
Overview
- Method: PATCH
- Path:
/pharmacy/order-status/\{orderId\}/status - Tags: pharmacy
Parameters
No parameters required.
Request Body
- Content Type:
application/json - Required: Yes
- Schema: Defined
Responses
200
Successful response
Content Type: application/json
{
"type": "object",
"properties": {
"orderId": {
"type": "string"
},
"status": {
"type": "string"
},
"previousStatus": {
"type": "string"
},
"notes": {
"type": "string"
},
"trackingNumber": {
"type": "string"
},
"estimatedDelivery": {
"type": "string"
},
"updatedBy": {
"type": "string"
},
"updated_at": {
"type": "string"
}
},
"required": [
"orderId",
"status",
"previousStatus",
"updatedBy",
"updated_at"
]
}400
Bad Request
Content Type: application/json
{
"$ref": "#/components/schemas/Error"
}401
Unauthorized
404
Not Found
500
Internal Server Error
Example Usage
curl -X PATCH \
http://localhost:9000/pharmacy/order-status/{orderId}/status \
-H "Content-Type: application/json" \
-d '{"example": "data"}'Interactive Testing
You can test this endpoint interactively in the Swagger UI (opens in a new tab).