Configured return reasons are not getting from the reason API

Hi,

We are configured return reason for fashion and electronics verticals from the platform. But we are not getting the configured reason from theme. And also we are enabled Pre - QC from the platform, But the reason api is not returning the Pre-QC attribute.

Below I have shared reason api response for your reference.

Fashion and groceries vertical return reason:

{

"reasons": [

    {

        "reason_id": 115,

        "priority": 9,

        "reason_text": "Wrong size\/colour delivered",

        "show_text_area": false,

        "feedback_type": "bag",

        "flow": "return"

    },

    {

        "reason_id": 116,

        "priority": 10,

        "reason_text": "Product does not fit me",

        "show_text_area": false,

        "feedback_type": "bag",

        "flow": "return"

    },

    {

        "reason_id": 117,

        "priority": 11,

        "reason_text": "Quality of product is not good",

        "show_text_area": false,

        "feedback_type": "bag",

        "flow": "return"

    },

    {

        "reason_id": 118,

        "priority": 12,

        "reason_text": "Wrong product delivered",

        "show_text_area": true,

        "feedback_type": "bag",

        "flow": "return"

    },

    {

        "reason_id": 119,

        "priority": 13,

        "reason_text": "Damaged product delivered",

        "show_text_area": true,

        "feedback_type": "bag",

        "flow": "return"

    },

    {

        "reason_id": 120,

        "priority": 14,

        "reason_text": "Used product delivered",

        "show_text_area": true,

        "feedback_type": "bag",

        "flow": "return"

    },

    {

        "reason_id": 124,

        "priority": 15,

        "reason_text": "Missing Items\/Partially Received",

        "show_text_area": true,

        "feedback_type": "bag",

        "flow": "return"

    },

    {

        "reason_id": 121,

        "priority": 16,

        "reason_text": "Found better price elsewhere",

        "show_text_area": true,

        "feedback_type": "bag",

        "flow": "return"

    },

    {

        "reason_id": 122,

        "priority": 17,

        "reason_text": "Product looks different from image",

        "show_text_area": true,

        "feedback_type": "bag",

        "flow": "return"

    },

    {

        "reason_id": 123,

        "priority": 18,

        "reason_text": "Other issue",

        "show_text_area": true,

        "feedback_type": "bag",

        "flow": "return"

    }

]
}

Electronics vertical return reasons

{

"reasons": [
    {
        "reason_id": 115,
        "priority": 9,
        "reason_text": "Wrong size\/colour delivered",
        "show_text_area": false,
        "feedback_type": "bag",
        "flow": "return"
    },
    {
        "reason_id": 116,
        "priority": 10,
        "reason_text": "Product does not fit me",
        "show_text_area": false,
        "feedback_type": "bag",
        "flow": "return"
    },
    {
        "reason_id": 117,
        "priority": 11,
        "reason_text": "Quality of product is not good",
        "show_text_area": false,
        "feedback_type": "bag",
        "flow": "return"
    },
    {
        "reason_id": 118,
        "priority": 12,
        "reason_text": "Wrong product delivered",
        "show_text_area": true,
        "feedback_type": "bag",
        "flow": "return"
    },
    {
        "reason_id": 119,
        "priority": 13,
        "reason_text": "Damaged product delivered",
        "show_text_area": true,
        "feedback_type": "bag",
        "flow": "return"
    },
    {
        "reason_id": 120,
        "priority": 14,
        "reason_text": "Used product delivered",
        "show_text_area": true,
        "feedback_type": "bag",
        "flow": "return"
    },
    {
        "reason_id": 124,
        "priority": 15,
        "reason_text": "Missing Items\/Partially Received",
        "show_text_area": true,
        "feedback_type": "bag",
        "flow": "return"
    },
    {
        "reason_id": 121,
        "priority": 16,
        "reason_text": "Found better price elsewhere",
        "show_text_area": true,
        "feedback_type": "bag",
        "flow": "return"
    },
    {
        "reason_id": 122,
        "priority": 17,
        "reason_text": "Product looks different from image",
        "show_text_area": true,
        "feedback_type": "bag",
        "flow": "return"
    },
    {
        "reason_id": 123,
        "priority": 18,
        "reason_text": "Other issue",
        "show_text_area": true,
        "feedback_type": "bag",
        "flow": "return"
    }
]

}

Below I have shared configured reasons for playpit company


@devendrapathi.raju The API you are using returns the “returns reasons” which are specifically hardcoded on backend.

If you wanna access the return reason which you have defined on platform end you can use the fdk method “Use this API to retrieve the issues that led to the cancellation of bags within a shipment. | Fynd Partners Help Center”
but this method only return reason_id and reason. AS per your requirement you need “quality check” flag too. Which we raised internally to fix your requirement.

1 Like

@devendrapathi.raju you can use the fdk methods “Get reasons behind full or partial cancellation of a shipment | Fynd Partners Help Center”
or “Get reasons behind full or partial cancellation of a shipment | Fynd Partners Help Center”

This will give the return reason as per requirement and also it has the “qc_check” flag.

@devendrapathi.raju this the available fdk method for application to get the return reason.
https://partners.fynd.com/help/docs/sdk/application/order/getShipmentBagReasons

@Devendra_Kumari_Dhay We checked with mentioned fdk method. It’s also returning hardcoded response for all verticals. Below I have shared sample request url and response for your reference

URL1 : /service/application/order/v1.0/orders/shipments/16983283172661502274/bags/6157/reasons

URL 2: /service/application/order/v1.0/orders/shipments/16970874468341794072/bags/4169/reasons

Response:

{
“success”: true,
“reasons”: [
{
“id”: 84,
“display_name”: “Changed my mind”,
“meta”: {
“show_text_area”: false
},
“qc_type”: [],
“question_set”: [],
“reasons”: []
},
{
“id”: 86,
“display_name”: “Found better price elsewhere”,
“meta”: {
“show_text_area”: false
},
“qc_type”: [],
“question_set”: [],
“reasons”: []
}
]
}

1 Like

@Devendra_Kumari_Dhay We checked with recently delivered orders. The return reasons are coming from the fdk method which are configured on the platform. QC values are also coming now.

thanks for your support.