ReturnItem
Return provides access to the return item resource.
For more information please see Return.
Added 2018-08-03 Return Item Properties Example of a return object with items included
{
"response": {
"Page": 1,
"PageCount": 543,
"RecordsSent": 1,
"RecordsFound": 543,
"ReturnItem": [
{
"id": 1,
"Sequence": 1,
"SKU": "MEPTP28188",
"return_id": 2,
"supplier_id": 0,
"Supplier_Code": "",
"Price": 22,
"Quantity": 1,
"Value": 22,
"Discount": 0,
"Detail": {
"Article": "Test jeans",
"ColourCode": "188",
"ColourName": "BLACK",
"Brand": "Mens Core",
"ProductGroup": "DENIM",
"Reason Code": 1,
"Reason": "SIZING - TOO SMALL",
"Action Code": 2,
"Action": "Wastage",
"Supplier": 0,
"Location": "C000",
"Order Num": "",
"Order RSN": 0,
"Order Item RSN": 0,
"Sizes": [
{
"SKUSize": "MEPTP28188 B",
"Size": "28",
"Qty": 1,
"SizeSort": 2
}
]
}
}
]
}
}
ReturnItem Properties
| Property | Example | Description |
|---|---|---|
| id | 1300 Unique id of the order | |
| return_id | "4703122564" | Order reference can be passed in. If passed it will be used with the Order_Source to check uniqueness |
| Sequence | 1092 | Customer id |
| SKU | "01298" | Order number created by i.Level (Read Only) |
| supplier_id | 0 | Supplier id |
| Supplier_Code | "ABCO" | Supplier code |
| Price | 12.50 | Price of item |
| Quantity | 1 | Item quantity being returned |
| Value | 12.50 | Value for return item |
| Discount | 0 | Discount amount |
| Detail | {} | Embeded object containing the return item detail and sizes |
Detail
| Property | Example | Description |
|---|---|---|
| Article | "Test Jeans" | The article name |
| ColourCode | "118" | The colour code for the item |
| ColourName | "BLACK" | The colour name for the item |
| Brand | "Mans Core" | The brand the product belongs to |
| ProductGroup | "DENIM" | Product group the product belongs to |
| Reason Code | 1 | Reason code |
| Reason | "SIZING - TOO SMALL" | Reason text |
| Action Code | 2 | Action code |
| Action | "Wastage" | Action in text. Could be expanded version of the lookup value |
| Supplier | 0 | The supplier RSN |
| Location | "C000" | The pick location for the item |
| Order Num | "" | The original order number if the item was imported from a previously created customer order |
| Order RSN | 0 | The original order RSN if the item was imported from a previously created customer order |
| Order Item RSN | 0 | The original order item RSN if the item was imported from a previously created customer order |
| Sizes | [] | An array of size objects with quantities (see below) |
Sizes
| Property | Example | Description |
|---|---|---|
| SKUSize | "MEPTP28188 B" | The SKUSize for the variant |
| Size | 28 | The size code for the size variant |
| Qty | 1 | The qunatity for the size variant |
| SizeSort | 2 | The size sort for the given size variant |
Return Methods
GET /api/returnitem
Returns all returnitem records in the system with all published fields.
ShowZeros Custom Parameter
The ShowZeros parameter can be used to display sizes for the return item that have a zero quantity in them. By default the behaviour is to return only sizes that have a non zero quantity.