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": "fbcf0454-cfbd-4b42-8c50-cfe1bffbf616",
      "Error": "sample string 3",
      "Tags": [
        {
          "Tag": "sample string 1",
          "Value": "sample string 2"
        }
      ]
    }
  ],
  "URL": "sample string 1",
  "IdsProcessed": [
    "433db6a0-b3ab-4120-a678-0497409b0ef9"
  ],
  "ProcessedIds": {
    "sample string 1": [
      "697fbd85-0805-4cca-913d-2347be5b97dd"
    ]
  },
  "PageCount": 2,
  "PrintErrors": [
    "sample string 1"
  ]
}