ryanh123
01-25-2019
09:35 PM
Thread Options
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Does the API support the ability to collect what items the customer purchased in a transaction?
I'd like to use the API to capture how many of a particular item an individual customer purchases over time. I was hoping the transaction detail would include the list and quantity of items for each transaction. I can't see to find this however. Is this supported?
Reply
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
2 REPLIES 2
Helen
01-29-2019
10:40 AM
Thread Options
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Apologies for the delay @ryan123! I escalated this to our API team for you - and yes you can use the Orders API in conjunction with the Transactions API and Customers API to get itemization for your transactions per customer.
The steps you need to to take are as follows (Note - this assumes you have linked a customer_id and order_id to each transaction) :
- Use the ListTransactions endpoint and loop through the transactions and pull out all the transactions that have the customer_id attributed to the transaction.
- Then retrieve all the order_ids from those transactions.
- Next, pass in those order_ids to the BatchRetrieveOrders endpoints to see the itemization breakdown that are associated with that individual customer.
Take a look at the Itemize Tranactions documentation and if you have any other questions please let us know!
️ Helen
Seller Community Manager
Seller Community Manager
Reply
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Dugasmike
05-01-2019
03:22 PM
Thread Options
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
you can but it is not easy. You cannot pull transactions for customers without knowing order Id.
so you cannot say hey get me all orders for this customer.
You should join the slack work space much more helpful