API documentation
Method list
Test your request
Changelog


getCrmClientStatuses
The method allows you to retrieve CRM client statuses created by the user in the order manager.


Input parameters



Output data
The method returns the data in JSON format.
statusvarchar(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
statusesarrayAn array of CRM client statuses containing the fields listed below.
| - idintStatus ID.
| - nametextStatus name.
| - colortextStatus color (hex, e.g. #1C8752).
| - group_idintStatus group ID. The group details can be retrieved with getCrmClientStatusGroups method.
| - is_primaryintWhether this is the primary (default) status (0 or 1).



Sample
Input data:
Output data:
A sample request in PHP: