Adds a new line to a Return by Item_ID.
| Method | AddItemToReturn |
The request body is of type AddItemToReturn.
| Name | Description | Data Type |
|---|---|---|
| Item_ID | xml:int | |
| Qty | xml:int | |
| UOM | xml:anyType | |
| PurchaseDate | xml:dateTime | |
| SerialNumber | xml:string | |
| Options | xml:string |
The response body is of type AddItemToReturnResponse.
| Name | Description | Data Type |
|---|---|---|
| AddItemToReturnResult | A string value containing a JSON object.
{
"Data": {
"FirstName": "Susan",
"LastName": "Brown",
"Email": "sbrown@bikesblades.com",
"Phone": "",
"CustomerNumber": "000000000000013",
"CustomerName": "Out of Africa",
"ItemCount": 1,
"TotalWeight": 10.0,
"TotalVolume": 0.3,
"LastUpdated": "2022-11-04T15:38:09.853",
"CustomData": {},
"Branch": "",
"Fax": "",
"UserField1": "",
"SpecialInstrs": "",
"OrderType": "",
"AlternateKey": "",
"ServiceTicket": "",
"ShippingAddress": {
"FirstName": "Susan",
"LastName": "Brown",
"Address1": "254 Southway Drive",
"Address2": "Southern Bypass",
"Address3": "South, Sandton",
"City": "",
"State": "",
"Zip": "2196",
"Country": "",
"MultiShipCode": "",
"Area": ""
},
"Details": [{
"Row": 1,
"ID": 13262,
"Item_ID": 579,
"StockCode": "A100",
"NonStockItem": false,
"Description": "Boys 15 Speed Mountain Bike",
"SerialNumber": "Test1011",
"Quantity": 1,
"UOM": "EA",
"UnitType": 1,
"UnitWeight": 10.0,
"UnitVolume": 0.3,
"ReturnType": "",
"ProblemCode": "",
"ProblemNotes": "",
"InvoiceNumber": "",
"OrderNumber": "",
"CustomData": {},
"LastUpdated": "2022-11-04T15:38:09.87",
"WarrantyDate": null,
"ReturnByDate": null,
"Lot": "",
"UserDefined1": "",
"UserDefined2": "",
"PurchaseDate": "2022-11-04",
"Photo1": "/Ecommerce/site/images/Photo1/A100.jpg",
"Photo2": "/Ecommerce/site/images/Photo2/A100.jpg"
}]
},
"LookupData": {
"DefaultProblemCode": "BR",
"ProblemCodes": [{
"Code": "BR",
"DisplayText": "Broken"
}, {
"Code": "CL",
"DisplayText": "Certification Limit"
}, {
"Code": "CM",
"DisplayText": "Changed Mind"
}, {
"Code": "FT",
"DisplayText": "Faulty"
}, {
"Code": "OS",
"DisplayText": "Over Supply"
}, {
"Code": "US",
"DisplayText": "Unsuitable"
}, {
"Code": "WC",
"DisplayText": "Wrong Color"
}, {
"Code": "WI",
"DisplayText": "Wrong Item"
}]
},
"Result": {
"Success": true,
"Message": "The item has been successfully added to the return.",
"ElapsedTime": "124 ms"
}
}
| xml:string |