Creates a PDF file with Stock Item labels from a print job request
Name | Type | Description |
---|---|---|
templateType | String | The template type |
IDsAndQuantities | List<KeyValuePair> | Stock Id and quantity of stock |
templateID | Nullable<Int32> | The ID of the template to use |
parameters | List<KeyValuePair> | |
printerName | String | Printer name of the virtual printer to use. If null then the sepecified in the template |
printZoneCode | String | Print zone code, if present, will override the printer used if the template has a set printer for that zone |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/PrintService/CreatePDFfromJobForceTemplateWithQuantities
Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE
This is an example of the request structure. Results will vary depending on your data.
templateType=sample string 1&IDsAndQuantities=[
{
"Key": "09ed5c31-1f82-43c1-9509-45f7f543f52b",
"Value": 2
}
]&templateID=1¶meters=[
{
"Key": "sample string 1",
"Value": "sample string 2"
}
]&printerName=sample string 1&printZoneCode=sample string 1
This is an example of the response JSON. Results will vary depending on your data.
{
"KeyedError": [
{
"TemplateType": "sample string 1",
"Id": "cd0a3a52-63ba-4e43-b0ae-189fa62611a1",
"Error": "sample string 3",
"Tags": [
{
"Tag": "sample string 1",
"Value": "sample string 2"
}
]
}
],
"URL": "sample string 1",
"IdsProcessed": [
"b1470fd7-6914-4193-a242-a134cb85e497"
],
"ProcessedIds": {
"sample string 1": [
"b48a7df2-b2ec-4c49-bcda-c3dd2c99fe94"
]
},
"PageCount": 2,
"PrintErrors": [
"sample string 1"
]
}