Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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

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": "9fd132f3-f63b-478b-8160-f6bac6f506d2",
    "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": "bb8eeb78-d5da-4145-977e-0082bf7fdb6e",
      "Error": "sample string 3",
      "Tags": [
        {
          "Tag": "sample string 1",
          "Value": "sample string 2"
        }
      ]
    }
  ],
  "URL": "sample string 1",
  "IdsProcessed": [
    "51913efa-e7c9-431b-b6e2-622cac237002"
  ],
  "ProcessedIds": {
    "sample string 1": [
      "0b591b3f-c0ad-49a2-810e-549c841f2b9e"
    ]
  },
  "PageCount": 2,
  "PrintErrors": [
    "sample string 1"
  ]
}