Shipment id response is not coming

@Chandrahas @Akshay , For returned product, trying to fetch the parent shipment id, but below fdk method is giving empty response.
““application_client.order.getShipmentById(shipment_id)””

as per conversation with Mayur_Birle he suggested to use “platform_client.order.getShipments” to fetch the order id, but this function is also not returning order id.

shipment id : 16982310872891933346

Hi @Alok_Chaturvedi When a return is created the new shipment gets created, so you will not be able to fetch the data of the previous shipment(forward shipment) with the “getShipmentById” method.
Use the “getOrderById” method which will give you the list of shipment from where you can access the pervious shipment id too.

1 Like

@Devendra_Kumari_Dhay but getOrderById requires order_id parameter, but we are having only shipment id present in the request, how to fetch order id using shipment id, is there any function?
i have tried with getShipments and getShipmentById function, but unable to retrieve the order_id.

@Alok_Chaturvedi this will be fixed in the upcoming release.

@Devendra_Kumari_Dhay , this issue has not fixed yet.
passing parent shipment_id to getShipmentById function but not getting any response.