id is supplied for a sub-status, that custom status must belong to the current store and the specified parent status.curl --location 'https://api.zid.sa/v1/managers/store/orders/custom-statuses' \
--header 'Authorization: {{Autherization}}' \
--header 'Store-ID: {{StoreId}}' \
--header 'Content-Type: application/json' \
--data '{
"statuses": [
{
"parent_status_id": 1,
"sub_statuses": [
{
"name": {
"ar": "ููุฏ ุงูู
ุฑุงุฌุนุฉ",
"en": "Under Review"
},
"color": "#FF5733",
"is_active": true
}
]
}
]
}'{
"code": "SUCCESS_WITH_LIST_PAYLOAD_OBJECTS",
"message": null,
"payload": [
{
"id": 1,
"status": "New",
"code": "new_order",
"is_customizable": true,
"sub_statuses": [
{
"id": 10,
"name": {
"ar": "ููุฏ ุงูู
ุฑุงุฌุนุฉ",
"en": "Under Review"
},
"code": "under_review",
"color": "#FF5733",
"is_active": true,
"display_order": 0,
"parent_status_id": 1,
"created_at": "2026-08-10T12:00:00",
"updated_at": "2026-08-10T12:00:00"
}
]
}
]
}