You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to parse all orders for 1 year but only 100 order information is coming.
I did not fully understand the logic.
Let's say in the seller account, there were 10000 orders in 1 year, how can we parse them all?
amazon api parses only 100 orders.
from datetime import date
from sp_api.api import Orders
from sp_api.base import Marketplaces
from keys import CLIENT_CONFIG
#https://sp-api-docs.saleweaver.com/endpoints/orders/
if __name__ == '__main__':
today = date.today()
d1 = today.strftime("%Y-%m-%d")
res = Orders(credentials=CLIENT_CONFIG, marketplace=Marketplaces.AU)
data = res.get_orders(CreatedAfter="2022-01-01", CreatedBefore=d1)
sellerOrders = data.payload['Orders']
sellerOrdersCount = len(sellerOrders)
print(sellerOrders)
print(sellerOrdersCount)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to parse all orders for 1 year but only 100 order information is coming.
I did not fully understand the logic.
Let's say in the seller account, there were 10000 orders in 1 year, how can we parse them all?
amazon api parses only 100 orders.
Beta Was this translation helpful? Give feedback.
All reactions