Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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

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": "fd3fa9ac-a839-477f-b49f-4dd05550cbd4",
    "Quantity": 1,
    "BatchInventoryId": 1,
    "LocationId": "cbc914d2-7789-4507-8f4c-bfc7960031d9"
  }
]&templateID=1¶meters=[
  {
    "Key": "sample string 1",
    "Value": "sample string 2"
  }
]&printerName=sample string 1&printZoneCode=sample string 1&pageStartNumber=1&operationId=6d2b9f35-2d26-4160-9b85-4669879db87f&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": "6409d371-ae00-4457-8cf9-d2cb164a5365",
      "Error": "sample string 3",
      "Tags": [
        {
          "Tag": "sample string 1",
          "Value": "sample string 2"
        }
      ]
    }
  ],
  "URL": "sample string 1",
  "IdsProcessed": [
    "6eb3e6e2-e0e6-4f51-92ca-ce24026ac8e0"
  ],
  "ProcessedIds": {
    "sample string 1": [
      "69b1ff5e-4336-4622-a564-d61d6a5e1153"
    ]
  },
  "PageCount": 2,
  "PrintErrors": [
    "sample string 1"
  ]
}