Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

PrintService /CreatePDFfromJobForceTemplateStockIn

Allows 150 calls per minute

Response: CreatePDFResult



Creates a PDF file from a print job request

Parameters

NameTypeDescription
templateTypeStringThe template type
PrintingKeysList<PrintingKey>A list of IDs to print (e.g. Order IDs or Warehouse Transfer IDs)
templateIDNullable<Int32>The ID of the template to use
parametersList<KeyValuePair>
printerNameStringprinter name of the ivrtual 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
pageStartNumberInt32
operationIdNullable<Guid>
contextClientContext

Example Request

The following request format is required for this method.

Endpoint URL

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

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&PrintingKeys=[
  {
    "Key": "d09c2118-972b-46a1-b665-4c324e2c2255",
    "Quantity": 1,
    "BatchInventoryId": 1,
    "LocationId": "df578127-a4dc-4635-8eb6-d1fcc2887178"
  }
]&templateID=1¶meters=[
  {
    "Key": "sample string 1",
    "Value": "sample string 2"
  }
]&printerName=sample string 1&printZoneCode=sample string 1&pageStartNumber=1&operationId=24e938e2-1ea6-4b28-9a78-75df6506a1d3&context={
  "Module": "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": "a0e61e24-8250-4b0f-ad85-fc8b79b5f53d",
      "Error": "sample string 3",
      "Tags": [
        {
          "Tag": "sample string 1",
          "Value": "sample string 2"
        }
      ]
    }
  ],
  "URL": "sample string 1",
  "IdsProcessed": [
    "4a1c7339-44d4-4554-b072-90f9ba1a911a"
  ],
  "ProcessedIds": {
    "sample string 1": [
      "e0a68f10-a1ee-4657-ab25-60d99ccc8979"
    ]
  },
  "PageCount": 2,
  "PrintErrors": [
    "sample string 1"
  ]
}