Maxim

Maxim

Last updated on Oct 8, 2026

Returns the company's production statuses in the order they appear in Controlata. Statuses can be configured individually, so get the codes with this method rather than hardcoding them in your integration.

v1/production/get_statuses.php

Parameters

The method takes no parameters; the request body can be omitted.

Response

An array statuses.

Field Type Description
code int Status code. It is passed as status in v1/production/update_status and v1/production/get_list
name string Status name

Codes run in order starting from 0.

If the company has not configured statuses, the default ones are returned:

Code Status
0 Planned
1 In progress
2 Done

Statuses created in the company come with the names given to them in Controlata.

Example request

{}

Example response

{
    "success": true,
    "statuses": [
        {
            "code": 0,
            "name": "Planned"
        },
        {
            "code": 1,
            "name": "In progress"
        },
        {
            "code": 2,
            "name": "Done"
        }
    ]
}

Errors

The method only returns the common authorization and request-limit errors, see API Overview.