Print Location Label
This API returns the ZPL representation of one or more location labels. Use this API when
an external system, such as MHE, needs to retrieve label content for locations. If
label_designer_code is not provided, the system determines the
label template from the Label Rules Engine, when configured.
URLs
GET .../wms/lgfapi/v10/print/label/location/?barcode=LOC001
Additional examples:
GET .../wms/lgfapi/v10/print/label/location/?barcode=LOC001
GET .../wms/lgfapi/v10/print/label/location/?barcode__in=LOC001,LOC002
GET .../wms/lgfapi/v10/print/label/location/?facility_id__code=FAC1&id__in=101,102,103&label_designer_code=location_label
Request Parameters
| Name | Required | Type | Description |
|---|---|---|---|
id |
Conditional | Integer | Location ID. At least one of id or
barcode is required. |
barcode |
Conditional | String | Location barcode. At least one of id or
barcode is required. |
facility_id |
No | Integer | Facility context by ID. Only one of facility_id
or facility_id__code may be provided. |
facility_id__code |
No | String | Facility context by code. Only one of
facility_id or
facility_id__code may be provided. |
label_designer_code |
No | String | Label designer code. If not provided, the system attempts to determine the label template from the Label Rules Engine. |
Response
The response returns the ZPL label data by location.{
"record_count": 2,
"success_count": 2,
"failure_count": 0,
"data": {
"LOC001": "Cl5YQQpeTEgwLDBeTFJOCl5DSTI4CgpeQ1d...",
"LOC002": "Cl5YQQpeTEgwLDBeTFJOCl5DSTI4CgpeQ1dULF5G..."
},
"details": null
}