Fdk method getShipmentById() returns empty list for a valid shipment id

Hi Team,

I am trying to get shipment details of a given shipmentId after the order is placed. But even though the shipment is visible in the platform, the above method returns empty result.
I have attached the request/response logs as well as the shipment status from the platform.

As the scope was being passed as “company/saleschannel”, the client and user were getting created with limited permissions. Due to this, the order permissions were missing for the extension and the “getShipmentById()” method was returning an empty list.

To resolve this issue-
Please remove the scope from the config and re-install the extension. Then, retry the FDK method call

After doing the above step, this issue has now been resolved.

Please do not pass anything in the scope while initiating an extension if you want the extension client to have all the permissions specified at the time of extension creation on the partners panel

1 Like

Thanks @Siddhesh_More_007. The issue is now resolved.