getCrmClientStatuses
The method allows you to retrieve CRM client statuses created by the user in the order manager.
Input parameters
Output data:
A sample request in PHP:
Output data
The method returns the data in JSON format.
| status | varchar(30) | SUCCESS - request executed correctly ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code |
| statuses | array | An array of CRM client statuses containing the fields listed below. |
| | - id | int | Status ID. |
| | - name | text | Status name. |
| | - color | text | Status color (hex, e.g. #1C8752). |
| | - group_id | int | Status group ID. The group details can be retrieved with getCrmClientStatusGroups method. |
| | - is_primary | int | Whether this is the primary (default) status (0 or 1). |
Sample
Input data:Output data:
A sample request in PHP: