Print Item Label
This API submits item labels for printing. Use this API when an external system needs to
print item labels for all items of an LPN or for one or more identified items. If
printer_name is not provided, the system uses the logged-in user's
default label printer. If label_designer_code is not provided, the
system determines the label template from the Label Rules Engine, when configured.
URL
POST .../wms/lgfapi/v10/print/label/item
Request Parameters
| Name | Required | Type | Description |
|---|---|---|---|
company_id |
Conditional | Integer | Company context by ID. One of company_id or
company_id__code is required. |
company_id__code |
Conditional | String | Company context by code. One of company_id or
company_id__code is required. |
id |
Conditional | Integer | Item ID. Supports id__in lookup for multiple
items. |
code |
Conditional | String | Item code. Supports code__in lookup for multiple
items. |
barcode |
Conditional | String | Item barcode. |
item_barcode |
Conditional | String | Item barcode filter. Supports item_barcode__in
lookup for multiple items. |
Options
| Name | Required | Type | Default | Description |
|---|---|---|---|---|
label_designer_code |
Conditional | String | Derived by Label Rules Engine | Label designer template to print. |
printer_name |
Conditional | String | User's default label printer | Printer to use for item label printing. |
label_count |
Conditional | Integer | 1 |
Number of labels to print. Must be greater than
0. |
Example
POST .../wms/lgfapi/v10/print/label/item
{
"parameters": {
"company_id__code": "COM1",
"barcode": "ITM1"
},
"options": {
"label_designer_code": "label_1",
"printer_name": "PRINTER1",
"label_count": 1
}
}
Response
On success, the API returns 200 OK with the standardized bulk
response body.
{
"record_count": 2,
"success_count": 1,
"failure_count": 1,
"data": {
"ITM_1": "VGhpcyBpcyBaUEwgY29kZQ=="
},
"details": {
"ITM_2": "Some error message."
}
}