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

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": "8e8acd64-1e17-4db2-be6f-0d9bc0f8d4c0",
    "Quantity": 1,
    "BatchInventoryId": 1,
    "LocationId": "7f6a6378-f3cb-40b2-8725-ee7e5ab36d3c"
  }
]&templateID=1¶meters=[
  {
    "Key": "sample string 1",
    "Value": "sample string 2"
  }
]&printerName=sample string 1&printZoneCode=sample string 1&pageStartNumber=1&operationId=996bdce7-180e-4bc2-9cb4-bd2ece8e3274&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": "588ef6a4-1692-4ff0-99f3-dc8acba3f70f",
      "Error": "sample string 3",
      "Tags": [
        {
          "Tag": "sample string 1",
          "Value": "sample string 2"
        }
      ]
    }
  ],
  "URL": "sample string 1",
  "IdsProcessed": [
    "5e90acfe-7200-4634-b62b-d68ed4b4d557"
  ],
  "ProcessedIds": {
    "sample string 1": [
      "2ec5300f-a0bc-42eb-9881-1ddedf8b5a57"
    ]
  },
  "PageCount": 2,
  "PrintErrors": [
    "sample string 1"
  ]
}