Back

Search

Search

Methods

Inventory

Orders

PrintService /CreateReturnShippingLabelsPDF

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

HTTP Endpoint

Server /PrintService / CreateReturnShippingLabelsPDF

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/PrintService/CreateReturnShippingLabelsPDF HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

IDs=[
  "f15dbd5d-2c24-4ff7-ae7a-c903341383a0",
  "9b6adf58-fbcd-4422-9f25-df3e68379f10"
]&orderItemIdsAndQuantities=[
  {
    "Key": "0830f278-3af0-4d59-9ad8-8c6c15f6c30d",
    "Value": 2
  },
  {
    "Key": "98b7cf9f-f03c-4a41-a568-2549fc0dcb9b",
    "Value": 2
  }
]&returnPostalServiceName=sample string 1

Response

This is an example response. Results may vary depending on your data.

null