Creates a PDF file of return shipping labels for a single order
Name | Type | Description |
---|---|---|
referenceNum | String | Reference number of the order to print return labels for |
SKUsAndQuantities | List<KeyValuePair> | A list of the SKUs and quantities to include. If empty then same as the outbound shipment |
returnPostalServiceName | String | Name of the postal service to use. If null then specified in settings or same as the outbound shipment |
cancellationToken | CancellationToken |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/PrintService/CreateReturnShippingLabelsPDFWithSKUs
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
This is an example of the request structure. Results will vary depending on your data.
referenceNum=sample string 1&SKUsAndQuantities=[
{
"Key": "sample string 1",
"Value": 2
}
]&returnPostalServiceName=sample string 1&cancellationToken={
"IsCancellationRequested": false,
"CanBeCanceled": false,
"WaitHandle": {
"Handle": {
"value": 1292
},
"SafeWaitHandle": {
"IsInvalid": false,
"IsClosed": false
}
}
}
This is an example of the response JSON. Results will vary depending on your data.
{
"KeyedError": [
{
"TemplateType": "sample string 1",
"Id": "8ccf2e87-ec87-4858-af2f-2410305fdb7f",
"Error": "sample string 3",
"Tags": [
{
"Tag": "sample string 1",
"Value": "sample string 2"
}
]
}
],
"URL": "sample string 1",
"IdsProcessed": [
"a21d9ddd-231d-47ce-aabd-88cc1e63cf8a"
],
"ProcessedIds": {
"sample string 1": [
"0dff290a-6341-4433-925f-cfd3c27a4d8b"
]
},
"PageCount": 2,
"PrintErrors": [
"sample string 1"
]
}