Rashed Mazumder
Rashed Mazumder

Reputation: 131

Amazon SP-API Getting order items in order list API

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

Upvotes: 5

Views: 8032

Answers (2)

user19782961
user19782961

Reputation: 11

yes you can download Orderreports (possible via the api as well as Website) there is one which contains all the data you want (you may have to set up a regular generation of this report)

hth hannes

Upvotes: 0

jroyce
jroyce

Reputation: 2148

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.

Upvotes: 3

Related Questions