A status has a number of properties, represented by fields. Each field defines specific behaviors and characteristics of the status.
| Field name | Description | Default value | Supported values |
|---|---|---|---|
| description* | Status title | — | string |
| email_header | Header of an e-mail sent when the status is set | '' | HTML |
| email_subj | Subject of an e-mail sent when the status is set | '' | string |
| is_default | Flag, defines if the status is default (cannot be deleted). It is not recommended to make default status not default. | N | Y, N |
| lang_code | Language code | en | en, ru, etc. |
| params | Status parameters | {} | JSON object |
| status | Letter identifying the status | Set automatically | char |
| status_id | Status ID | Set automatically | integer |
| type | Status type | O | Valid status type (only O by default) |
{
"description": "Processing",
"email_header": "<h1>Your order is being processed</h1>",
"email_subj": "Order #12345 is now being processed",
"is_default": "N",
"lang_code": "en",
"params": {},
"status": "P",
"status_id": 5,
"type": "O"
}
description field is required. Other fields will use their default values if not specified.