Response
| Field | Description | Type |
|---|---|---|
| status | "success|error|in progress" – status | |
| code | error code | |
| message | error message | |
| items | List of codes | array |
Note: The status "in progress" indicates that the request is still being processed when using the request_id parameter. This status was introduced to prevent the re-execution of requests with the same request_id if they have already been accepted for processing but not yet completed.
Items:
| Field | Description | Type |
|---|---|---|
| assort_ext_id | ID of the product in the manufacturer's system | string |
| cnt | Quantity of codes | integer |
| items | List of codes | array |
| assort_id | ID of the product in T&T system | integer |
Items:
| Field | Description | Type |
|---|---|---|
| code | Marking code | string |
| hrc | Human readable code | string |
| unit_id | Package ID in T&T system | integer |
| unit_ext_id | Package ID in the manufacturer´s system | string |
Error codes:
| Field | Description | Type |
|---|---|---|
| 102 | Codes not generated yet | |
| 116 | Document not found | |
| 117 | Production document not confirmed yet | |
| 118 | No entries found to generate codes | |
| 124 | Invalid code for product %s | |
| 158 | Invalid Highload frequency | |
| 161 | Request signature required | |
| 162 | Package sign validation error | |
| 189 | Document confirmed, modification not possible |