Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

PrintService /CreateReturnShippingLabelsPDF

Allows 150 calls per minute

Response: CreatePDFResult



Creates a PDF file of return shipping labels for a single order

Parameters

NameTypeDescription
IDsList<Guid>A list containing the (single) pkOrderId of the order to print return labels for
orderItemIdsAndQuantitiesList<KeyValuePair>A list of the order item IDs and quantities to include. If empty then same as the outbound shipment
returnPostalServiceNameStringName of the postal service to use. If null then specified in settings or same as the outbound shipment

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/PrintService/CreateReturnShippingLabelsPDF

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.

IDs=[
  "e4a69052-5973-42be-8d38-ed5db0647c7e"
]&orderItemIdsAndQuantities=[
  {
    "Key": "536e60ea-fb15-40ab-9fbf-977ea154d295",
    "Value": 2
  }
]&returnPostalServiceName=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": "740c1870-525c-4485-8fab-262b4b5d962c",
      "Error": "sample string 3",
      "Tags": [
        {
          "Tag": "sample string 1",
          "Value": "sample string 2"
        }
      ]
    }
  ],
  "URL": "sample string 1",
  "IdsProcessed": [
    "815ecc22-4729-493a-80e0-8fcb8aaafa24"
  ],
  "ProcessedIds": {
    "sample string 1": [
      "76400564-ed5e-48cd-ac1c-16caae345221"
    ]
  },
  "PageCount": 2,
  "PrintErrors": [
    "sample string 1"
  ]
}