<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>thread Does the API support the ability to collect what items the customer purchased in a transaction? in Community Corner</title>
    <link>https://community.squareup.com/t5/Community-Corner/Does-the-API-support-the-ability-to-collect-what-items-the/m-p/107443#M4560</link>
    <description>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?</description>
    <pubDate>Sat, 26 Jan 2019 05:35:15 GMT</pubDate>
    <dc:creator>ryanh123</dc:creator>
    <dc:date>2019-01-26T05:35:15Z</dc:date>
    <item>
      <title>Does the API support the ability to collect what items the customer purchased in a transaction?</title>
      <link>https://community.squareup.com/t5/Community-Corner/Does-the-API-support-the-ability-to-collect-what-items-the/m-p/107443#M4560</link>
      <description>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?</description>
      <pubDate>Sat, 26 Jan 2019 05:35:15 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Community-Corner/Does-the-API-support-the-ability-to-collect-what-items-the/m-p/107443#M4560</guid>
      <dc:creator>ryanh123</dc:creator>
      <dc:date>2019-01-26T05:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Does the API support the ability to collect what items the customer purchased in a transaction?</title>
      <link>https://community.squareup.com/t5/Community-Corner/Does-the-API-support-the-ability-to-collect-what-items-the/m-p/107712#M4561</link>
      <description>&lt;P&gt;Apologies for the delay @ryan123! I escalated this to our API team for you - and yes&amp;nbsp;you&amp;nbsp;can use the Orders API in conjunction with the Transactions API and Customers API to get itemization for your transactions per customer.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The steps you need to to take are as follows&amp;nbsp;(Note - this assumes you&amp;nbsp;have linked a customer_id and order_id to each transaction) :&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;OL&gt;
 &lt;LI&gt;Use the ListTransactions endpoint and loop through the transactions and pull out all the transactions that have the customer_id attributed to the transaction.&lt;/LI&gt;
 &lt;LI&gt;Then retrieve all the order_ids from those transactions.&lt;/LI&gt;
 &lt;LI&gt;Next, pass in those order_ids to the BatchRetrieveOrders endpoints to see the itemization breakdown that are associated with that individual customer.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Take a look at the &lt;A href="https://slack-redir.net/link?url=https%3A%2F%2Fdocs.connect.squareup.com%2Fpayments%2Ftransactions%2Fcookbook%2Fitemize-transactions" target="_blank"&gt;Itemize Tranactions&lt;/A&gt;&amp;nbsp;documentation and&amp;nbsp;if you have any other questions please let us know!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 18:40:08 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Community-Corner/Does-the-API-support-the-ability-to-collect-what-items-the/m-p/107712#M4561</guid>
      <dc:creator>Helen</dc:creator>
      <dc:date>2019-01-29T18:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Does the API support the ability to collect what items the customer purchased in a transaction?</title>
      <link>https://community.squareup.com/t5/Community-Corner/Does-the-API-support-the-ability-to-collect-what-items-the/m-p/119678#M4562</link>
      <description>&lt;P&gt;you can but it is not easy. You cannot pull transactions for customers without knowing order Id.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so you cannot say hey get me all orders for this customer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should join the slack work space much more helpful&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 22:22:15 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Community-Corner/Does-the-API-support-the-ability-to-collect-what-items-the/m-p/119678#M4562</guid>
      <dc:creator>Dugasmike</dc:creator>
      <dc:date>2019-05-01T22:22:15Z</dc:date>
    </item>
  </channel>
</rss>

