Update Custom Order Status
PUT
/orders/statuses/{status_id}This endpoint allows you to update a custom order status by passing the status_id
as a path parameter.
:::tip[Note]
Use available parameters to send as a body request.
:::
:::danger[Important]
All variables in the Update Custom Order Status body request are optional. At least one of the variables must be in the body request payload. Otherwise, an error will be shown if you send an empty body request payload.
:::
Request
Unique identification number assigned to a status. List of Status IDs can be found here
{
"name": "تبقى 40 دقيقة على الدفع",
"message": "أكمل الدفع الان",
"icon": "sicon-cup-hot",
"sort": 3,
"is_active": true
}
Request samples
Responses
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
{
"status": 200,
"success": true,
"data": {
"id": 224309239,
"name": "حنراجع طلبك",
"type": "custom",
"slug": "under_review",
"message": "حنراجع طلبك وقد تستغرق المراجعة 24 ساعة كحد أقصى",
"color": "#ED696D",
"icon": "sicon-back",
"sort": 5,
"is_active": true,
"original": {
"id": 566146469,
"name": "بإنتظار المراجعة"
},
"parent": {},
"children": []
}
}