4

The Amazon SP-API getorders API endpoint doesn't send the items of that orders. I want to show the orders with their items like in Amazon Seller central in my inventory. Calling the get items (getorderitems endpoint) for every order will be unwise. Is there any other way to achieve this?

The seller central sends the order items data altogether in a single response. Amazon SP-API response like seller-central

Rashed Mazumder
  • 121
  • 1
  • 9

1 Answers1

2

SP-API was specifically set up to not include all that data in one API call. They provide the following operations for you to be able to get the specific data you need:

  • getOrders
  • getOrder
  • getOrderBuyerInfo
  • getOrderAddress
  • getOrderItems
  • getOrderItemsBuyerInfo
  • updateShipmentStatus

orders-api

So for each order you need to call the getOrderItems operation to retrieve the data you are looking for.

jroyce
  • 2,029
  • 2
  • 22
  • 45
  • 3
    yes looks like it. I have to call getorderItems API every time. May run into limit issues down the road. – Rashed Mazumder Feb 19 '22 at 16:59
  • Yes you will. Checkout their rate-limit and burst limit in the docs. .0055 requests per second or it will just hang. – jroyce Feb 26 '22 at 16:51
  • 1
    I had to add a wait in between loops to ensure I didn't exceed the rate limits. – jroyce May 17 '22 at 22:30
  • @CrouchingKitten unhelpful - not a parallel system or choice - totally different platforms, and btw, the reason people choose amazon over shopify is the sales volume is four orders of magnitude higher. – kevinc Mar 02 '23 at 03:09
  • 1
    @kevinc I disagree. You can integrate Amazon Sales data into Shopify and then export gigabytes of detailed order data easily, without having to tackle a badly implemented API. – Crouching Kitten Mar 03 '23 at 11:32