updateShipmentStatus Failing while updating the "return_pre_qc" status

Getting this error while trying to update the status of the shipment to “return_pre_qc” using the updateShipmentStatus FDK method call

response = await platformClient.order.updateShipmentStatus({
shipmentId: updatePayload.shipment_id,
body: updateObj,
});

Request:

{
“service”: “kapture”,
“statuses”: [
{
“shipments”: [
{
“identifier”: “17011769026301838431”,
“products”: [
{
“identifier”: “7500034”,
“line_number”: 1,
“quantity”: 1
}
],
“reasons”: {
“products”: [
{
“filters”: [
{
“identifier”: “7500034”,
“line_number”: 1,
“quantity”: 1
}
],
“data”: {
“reason_id”: 119,
“reason_text”: “Damaged product delivered”
}
}
],
“entities”: []
}
}
],
“status”: “return_pre_qc”
}
],
“force_transition”: true
}

Response

{“status”:500,“message”:“Something went wrong!!”,“code”:null,“exception”:“InternalServerError”,“stack_trace”:null}

Hi @Gunasegaran_R1 ,

There is a bug at the core system regarding group ID (promo group validation) due to which the “return_pre_qc” status update via updateShipmentStatus() FDK call is failing. We have raised a JIRA for this with all the findings and necessary details and will update once this is resolved.
JIRA ticket:- https://gofynd.atlassian.net/browse/FPCO-25851

Thanks for the update

Hi team,

Please share the ETA for this Fix.

Hi Team…Please update the ETA. we need to close this.

Hi @Gunasegaran_R1 ,

This has been fixed. We have tested with one order and the status return_pre_qc is getting updated successfully.
Sample shipment ID - 17035986206281574607
Return shipment ID - 17041982658551490451

Request Body:-

{
  "service": "kapture",
  "statuses": [
    {
      "shipments": [
        {
          "identifier": "17035986206281574607",
          "products": [
            {
              "identifier": "491997703",
              "line_number": 1,
              "quantity": 1
            }
          ],
          "reasons": {
            "products": [
              {
                "filters": [
                  {
                    "identifier": "491997703",
                    "line_number": 1,
                    "quantity": 1
                  }
                ],
                "data": {
                  "reason_id": 119,
                  "reason_text": "Damaged product delivered"
                }
              }
            ],
            "entities": [
              
            ]
          }
        }
      ],
      "status": "return_pre_qc"
    }
  ],
  "force_transition": True
}

Response:-

'status_code': 200, 'text': '{"statuses": [{"shipments": [{"status": 200, "final_state": {"return_pre_qc": "return_pre_qc", "shipment_id": "17035986206281574607"}, "identifier": "17035986206281574607"}]}]}'