Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

PrintService /PrintTemplatePreview

Allows 150 calls per minute

Response: CreatePDFResult



Generate a PDF preview of a specific template

Parameters

NameTypeDescription
templateIdInt32Template id

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/PrintService/PrintTemplatePreview

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.

templateId=1

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "KeyedError": [
    {
      "TemplateType": "sample string 1",
      "Id": "581076ef-ad20-4beb-85fa-0ee52f27a7b7",
      "Error": "sample string 3",
      "Tags": [
        {
          "Tag": "sample string 1",
          "Value": "sample string 2"
        }
      ]
    }
  ],
  "URL": "sample string 1",
  "IdsProcessed": [
    "eabeabff-b36a-455d-94ca-f2a3ef6b0864"
  ],
  "ProcessedIds": {
    "sample string 1": [
      "7d67e3f3-6044-4cf3-a76d-fd3f646e748c"
    ]
  },
  "PageCount": 2,
  "PrintErrors": [
    "sample string 1"
  ]
}