Order Return Request
Request Parameters:
Submits the return request for order.
URL: ../Api/Client/OrderReturnRequest
Header:
Content-Type:application/json
Required Parameters : CustomerGUID, OrderId, StoreId
Case-1. Exception Response :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"OrderId" :""
}
Response :
{
"Status": 0,
"Message": "Request cannot be empty",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-2. Validating parameters :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"OrderId" :"1"
}
Response :
{
"Status": 0,
"Message": "Order not found",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-3. Success Response :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"OrderId" :"21"
}
Response :
{
"Status": 1,
"Message": "Success",
"Data": {
"OrderId": 21,
"CustomOrderNumber": "21",
"Items": [
{
"ProductId": 20,
"ProductName": "Nokia Lumia 1020",
"ProductSeName": "nokia-lumia-1020",
"AttributeInfo": "",
"UnitPrice": "$349.00",
"Quantity": 1,
"Id": 31,
"CustomProperties": {}
}
],
"ReturnRequestReasonId": 0,
"AvailableReturnReasons": [
{
"Name": "Received Wrong Product",
"Id": 1,
"CustomProperties": {}
},
{
"Name": "Wrong Product Ordered",
"Id": 2,
"CustomProperties": {}
},
{
"Name": "There Was A Problem With The Product",
"Id": 3,
"CustomProperties": {}
}
],
"ReturnRequestActionId": 0,
"AvailableReturnActions": [
{
"Name": "Repair",
"Id": 1,
"CustomProperties": {}
},
{
"Name": "Replacement",
"Id": 2,
"CustomProperties": {}
},
{
"Name": "Store Credit",
"Id": 3,
"CustomProperties": {}
}
],
"Comments": null,
"AllowFiles": false,
"UploadedFileGuid": "00000000-0000-0000-0000-000000000000",
"Result": null,
"CustomProperties": {}
},
"ValidationMessage": [],
"ErrorMessage": null
}