Infinite pagination loop on FulfillmentInbound shipment_items_by_shipment #1664
-
Issue: Sometimes we have FBA Inbound Shipments with more that 100 items. For those particular shipments, calling the code bellow results into a never ending loop:
EDIT: I also tried it with I used the same request in Postman and I can confirm that putting the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi, according to the docs, the next token param for this operation is 'paginationToken'. It's quite unfortunate, but Amazon seems to randomize how they call things. You should have better luck by using the decorator like this
|
Beta Was this translation helpful? Give feedback.
-
@saleweaver I tried your suggestion, but it does not work because the code uses V_v0, and that seems to require |
Beta Was this translation helpful? Give feedback.
-
Sorry for the confusion. The correct method in 2024_03_20 is 'list_shipment_items'. Can you try with this one please |
Beta Was this translation helpful? Give feedback.
-
@saleweaver thanks, I'll drop the usage of V_v0 and use instead only V_2024_03_20. |
Beta Was this translation helpful? Give feedback.
Sorry for the confusion. The correct method in 2024_03_20 is 'list_shipment_items'. Can you try with this one please