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": "",

       "LanguageId": "1",

      "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",

       "LanguageId": "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,

                "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,

                "CustomProperties": {}

            }

        ],

        "ReturnRequestReasonId": 2,

        "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": 2,

        "AvailableReturnActions": [

            {

                "Name": "Repair",

                "Id": 1,

                "CustomProperties": {}

            },

            {

                "Name": "Replacement",

                "Id": 2,

                "CustomProperties": {}

            },

            {

                "Name": "Store Credit",

                "Id": 3,

                "CustomProperties": {}

            }

        ],

        "Comments": "Test return request.",

        "AllowFiles": false,

        "UploadedFileGuid": "00000000-0000-0000-0000-000000000000",

        "Result": "Your return request has been submitted successfully.",

        "CustomProperties": {}

    },

    "ValidationMessage": [],

    "ErrorMessage": null

}