Return Request Submit
Request Parameters:
Submits the return request for order.
URL: ../Api/Client/ReturnRequestSubmit
Header:
Content-Type:application/json
Required Parameters : CustomerGUID,OrderId,StoreId,ReturnRequestReasonId,ReturnRequestActionId,OrderItemModelList
Case-1. Exception Response :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"",
"StoreId": "",
"OrderId":"",
"ReturnRequestReasonId":"2",
"ReturnRequestActionId":"2",
"Comments":"Test return request.",
"AllowFiles":"false",
"OrderItemModelList":
[{
"Id":"29", "Quantity":"3"
},
{
"Id":"28", "Quantity":"2"
}]
}
Response :
{
"Status": 0,
"Message": "Request cannot be empty",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-2. Success Response :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"OrderId":"19",
"ReturnRequestReasonId":"2",
"ReturnRequestActionId":"2",
"Comments":"Test return request.",
"AllowFiles":"false",
"OrderItemModelList":
[{
"OrderItemId":"29", "Quantity":"3"
},
{
"OrderItemId":"28", "Quantity":"2"
}]
}
Response :
{
"Status": 1,
"Message": "Success",
"Data": {
"OrderId": 19,
"CustomOrderNumber": "19",
"Items": [
{
"ProductId": 18,
"ProductName": "HTC One M8 Android L 5.0 Lollipop",
"ProductSeName": "htc-one-m8-android-l-50-lollipop",
"AttributeInfo": "",
"UnitPrice": "$245.00",
"Quantity": 2,
"Id": 28,
"Form": null,
"CustomProperties": {}
},
{
"ProductId": 25,
"ProductName": "adidas Consortium Campus 80s Running Shoes",
"ProductSeName": "adidas-consortium-campus-80s-running-shoes",
"AttributeInfo": "Size: 8<br />Color: Red",
"UnitPrice": "$27.56",
"Quantity": 3,
"Id": 29,
"Form": null,
"CustomProperties": {}
}
],
"ReturnRequestReasonId": 2,
"AvailableReturnReasons": [
{
"Name": "Received Wrong Product",
"Id": 1,
"Form": null,
"CustomProperties": {}
},
{
"Name": "Wrong Product Ordered",
"Id": 2,
"Form": null,
"CustomProperties": {}
},
{
"Name": "There Was A Problem With The Product",
"Id": 3,
"Form": null,
"CustomProperties": {}
}
],
"ReturnRequestActionId": 2,
"AvailableReturnActions": [
{
"Name": "Repair",
"Id": 1,
"Form": null,
"CustomProperties": {}
},
{
"Name": "Replacement",
"Id": 2,
"Form": null,
"CustomProperties": {}
},
{
"Name": "Store Credit",
"Id": 3,
"Form": null,
"CustomProperties": {}
}
],
"Comments": "Test return request.",
"AllowFiles": false,
"UploadedFileGuid": "00000000-0000-0000-0000-000000000000",
"Result": "Your return request has been submitted successfully.",
"Form": null,
"CustomProperties": {}
},
"ValidationMessage": [],
"ErrorMessage": null
}