Light Mode
Create Custom Order Status
POST
/orders/statusesLast modified: a month ago
This endpoint allows you to create a custom order status using the parameters available to be sent as body request.
Request
Body Params application/json
No schema defined
Example
{
"parent_id": 863076598,
"name": "تبقى 40 دقيقة على الدفع",
"message": "أكمل الدفع الان",
"icon": "sicon-cup-hot",
"sort": 3,
"is_active": true
}
Request samples
Responses
Success(200)
Error Validation(422)
Unauthorized(401)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
status
number
optional
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.
success
boolean
optional
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.
data
#/definitions/1389233optional
Example
{
"status": 200,
"success": true,
"data": {
"id": 120960473,
"name": "تبقى 40 دقيقة على الدفع",
"type": "custom",
"slug": "payment_pending",
"message": "أكمل الدفع الان",
"color": "#ffff",
"icon": "sicon-cup-hot",
"sort": 3,
"is_active": true,
"original": {
"id": 1473353380,
"name": "بإنتظار الدفع"
},
"parent": {
"id": 863076598,
"name": "في انتظارك تدفع"
},
"children": []
}
}
Last modified: a month ago