Create Custom Sub-Status

POST {{baseUrl}}/orders/statuses

This endpoint allows you to create a custom order status using the parameters available to be sent as body request.

Request Body

{"parent_id"=>863076598, "name"=>"تبقى 40 دقيقة على الدفع", "message"=>"أكمل الدفع الان", "icon"=>"sicon-cup-hot", "sort"=>3, "is_active"=>true}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"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":[]}}