This endpoint allows you to update a custom order status by passing the status_id as a path parameter.
Note
Use available parameters to send as a body request.
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.
Scopes
orders.read_write - Orders Read & Write
Request
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Path Params
Body Params application/json
Example
{"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 PUT 'https://echo.apifox.com/anything/orders/statuses/' \
--header'Content-Type: application/json' \
--data-raw'{
"name": "تبقى 40 دقيقة على الدفع",
"message": "أكمل الدفع الان",
"icon": "sicon-cup-hot",
"sort": 3,
"is_active": true
}'
Responses
🟢200Success
application/json
Body
Example
{"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":null,"children":[]}}