Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

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

GET | 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": "f71ac75a-e60e-477a-86eb-7d86b127bfbf",
      "Error": "sample string 3",
      "Tags": [
        {
          "Tag": "sample string 1",
          "Value": "sample string 2"
        }
      ]
    }
  ],
  "URL": "sample string 1",
  "IdsProcessed": [
    "ce5d346e-7ed0-470d-baf3-729eeb582c78"
  ],
  "ProcessedIds": {
    "sample string 1": [
      "3e7de51e-a91d-4a48-bae5-dd93b4bb1b92"
    ]
  },
  "PageCount": 2,
  "PrintErrors": [
    "sample string 1"
  ]
}