Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

PrintService /CreatePDFfromJobForceTemplateWithQuantities

Allows 150 calls per minute

Response: CreatePDFResult



Creates a PDF file with Stock Item labels from a print job request

Parameters

NameTypeDescription
templateTypeStringThe template type
IDsAndQuantitiesList<KeyValuePair>Stock Id and quantity of stock
templateIDNullable<Int32>The ID of the template to use
parametersList<KeyValuePair>
printerNameStringPrinter name of the virtual printer to use. If null then the sepecified in the template
printZoneCodeStringPrint zone code, if present, will override the printer used if the template has a set printer for that zone

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/PrintService/CreatePDFfromJobForceTemplateWithQuantities

Headers

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

Request Body

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

Response

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"
  ]
}