Print Order Packing Slip
The Order Packing Slip API allows you to print pallet packing slips. Note that this API will not do any template determination logic as seen in the UI. Doc designer code is required as part of the API parameters. Any determination would need to be done in the outside system.
This API supports the following HTTP methods:
- GET - Returns the ZPL representation of the document.
- HEAD - only supports checking if the object exists since lookup models don't have create_ts.
- POST - Submits the document for printing.
URLs
POST.../wms/lgfapi/v10/print/document/order_packing_slip
GET.../wms/lgfapi/v10/print/document/order_packing_slip/?doc_designer_code=foo
Parameters
Category | Name | Type | Required | GET Request | POST Request | Comments |
---|---|---|---|---|---|---|
options | doc_designer_code | string | X | X | X | Document template to be printed |
options | web_report_path | string | X | X | This field is mandatory. the path of the web report template | |
options | web_report_format | string | X | X | This field is mandatory. the file format of the report xls/csv/pdf. | |
options | printer_name | string | X | Defaults to cwuser.default_document_printer. | ||
options | document_count | integer | X | Number of documents to print. Must be greater than 0. Default = 1. |