Returns all RMA headers associated with the given order ID
Name | Type | Description |
---|---|---|
request | GetRMAHeadersByOrderIdRequest | The request class for this call |
The following request format is required for this method.
POST https://eu-ext.linnworks.net/api/ReturnsRefunds/GetRMAHeadersByOrderId
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.
request={
"OrderId": "248dd73f-9f25-4202-9149-29d32ee18484"
}
This is an example of the response JSON. Results will vary depending on your data.
{
"RMAHeaders": [
{
"RMAHeaderId": 1,
"OrderId": "1fdd4947-1382-4a16-84aa-cea96b5a0ab2",
"NumOrderId": 3,
"OrderSource": "sample string 4",
"OrderSubSource": "sample string 5",
"ExternalReference": "sample string 6",
"ChannelInitiated": true,
"CreatedDate": "2022-03-09T13:04:03.4935543+00:00",
"Status": {
"StatusHeader": 0,
"StatusDetail": {
"StatusTag": "sample string 1",
"StatusDescription": "sample string 2",
"Actionable": true,
"ActionDescription": "sample string 4",
"EditableFields": [
"sample string 1"
]
}
},
"Actioned": true,
"LastActionDate": "2022-03-09T13:04:03.4935543+00:00",
"RMALines": [
{
"RMARowId": 1,
"RMAHeaderId": 2,
"Type": 0,
"Status": {
},
"ExternalReference": "sample string 3",
"CreatedDate": "2022-03-09T13:04:03.4945515+00:00",
"Actioned": true,
"ActionedDate": "2022-03-09T13:04:03.4945515+00:00",
"Deleted": true,
"ResendQuantity": 7,
"NewOrderId": "f77843cc-778a-46f2-a90e-ec40ff84a65b",
"ValidationError": "sample string 10",
"Error": "sample string 10",
"Errors": [
{
"RMARowId": 1,
"ErrorMessage": "sample string 2",
"DateStamp": "2022-03-09T13:04:03.4945515+00:00",
"Acknowledged": true
}
],
"Info": "sample string 11",
"ExchangeStockItemId": "7f8d078e-a5c9-4364-9805-ea6fb3cbb540",
"ExchangeSKU": "sample string 13",
"ExchangeTitle": "sample string 14",
"ExchangeQuantity": 15,
"DespatchLocationId": "699e7a05-fc19-4f43-858a-7e6eb5e3a9ef",
"AdditionalCost": 17.0,
"OrderItemRowId": "ff3f3179-f460-4a5f-a11d-5615a6b7a8c7",
"ReturnItemSKU": "sample string 19",
"ReturnItemTitle": "sample string 20",
"BatchInventoryId": 1,
"ReturnLocation": "8bc1c871-0624-489d-a164-bf28586e7db3",
"ReturnQuantity": 22,
"RefundAmount": 23.0,
"RefundRowId": "f9962b46-e440-4cb1-8441-12663e15a1a0",
"ScrapQuantity": 24,
"ReasonCategory": "sample string 25",
"IsFreeText": false,
"Reason": "sample string 26",
"ReasonTag": "sample string 27",
"SubReasonTag": "sample string 28",
"BinrackOverride": "sample string 29"
}
]
}
]
}