Blocked on getting receipts + listings #1000
-
My client requires syncing shop receipts with our database. Some users have thousands of receipts they need to sync. First, I
How can work around this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @bijoutrouvaille, I would be happy to help figure this one out for you. First I need to understand what data you want to get from Etsy into your system. |
Beta Was this translation helpful? Give feedback.
OK, not knowing how many orders a single use might have, that you would want to sync on go. Lets just big a large number of 9000.
So you have 9000 Receipts to get, that is 90 requests to Etsy.
You said that you have no way of associating the listing to the Receipt, if you were to get the listings separately, but the Receipt has transactions on it, and the transactions have the ListingId to allow you to match the receipts items to the listings.
So you can either use
getListingsByShop
to get all the shops listings, including ones that aren't related to any receipts. Or you can get all your receipts first, then gather all the ListingId's from the transactions, get a distinct list of IDs, bat…