This endpoint allows you to create a custom order status using the parameters available to be sent as body request.
Scopes
orders.read_write - Orders Read & Write
Request
Authorization
Add parameter in header
1
Example:
1: ********************
Body Params application/json
Example
{"parent_id":863076598,"name":"تبقى 40 دقيقة على الدفع","message":"أكمل الدفع الان","icon":"sicon-cup-hot","sort":3,"is_active":true}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://echo.apifox.com/anything/orders/statuses' \
--header'Content-Type: application/json' \
--header'1;' \
--data-raw'{
"parent_id": 863076598,
"name": "تبقى 40 دقيقة على الدفع",
"message": "أكمل الدفع الان",
"icon": "sicon-cup-hot",
"sort": 3,
"is_active": true
}'
Responses
🟢200Success
application/json
Body
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":[]}}