<?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 Can you create a transaction with an Item SKU using the connectV2 API? in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Can-you-create-a-transaction-with-an-Item-SKU-using-the/m-p/29188#M94756</link>
    <description>&lt;P&gt;I have scoured through all of the documentation I can find, but I have not found a way to do this as of yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have succesfully integrated with the Connect API v2 endpoints (Transaction/Location so far) and have been able to succesfully create a Charge in sanbox mode. &amp;nbsp;I am setting the "amount_money" property in the request and a charge is created for that amount - so far so good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We recently took the time to create Items (through the Square dashboard) so that we can better track sales and inventory. &amp;nbsp;So much better than just creating one-time charges with an amount! &amp;nbsp;Thus I am hoping to do the same for the online store,&amp;nbsp;and ensure that the transactions that occur in the online store can be&amp;nbsp;tracked alongside the PoS transactions. &amp;nbsp;So I'm looking for a way to submit charges with Item SKUs rather than just a dollar amount,&amp;nbsp;but so far I have not seen a way to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help or guidance would be greatly appreciated, thanks for your time!&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2017 21:03:46 GMT</pubDate>
    <dc:creator>cg_dev</dc:creator>
    <dc:date>2017-07-21T21:03:46Z</dc:date>
    <item>
      <title>Can you create a transaction with an Item SKU using the connectV2 API?</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Can-you-create-a-transaction-with-an-Item-SKU-using-the/m-p/29188#M94756</link>
      <description>&lt;P&gt;I have scoured through all of the documentation I can find, but I have not found a way to do this as of yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have succesfully integrated with the Connect API v2 endpoints (Transaction/Location so far) and have been able to succesfully create a Charge in sanbox mode. &amp;nbsp;I am setting the "amount_money" property in the request and a charge is created for that amount - so far so good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We recently took the time to create Items (through the Square dashboard) so that we can better track sales and inventory. &amp;nbsp;So much better than just creating one-time charges with an amount! &amp;nbsp;Thus I am hoping to do the same for the online store,&amp;nbsp;and ensure that the transactions that occur in the online store can be&amp;nbsp;tracked alongside the PoS transactions. &amp;nbsp;So I'm looking for a way to submit charges with Item SKUs rather than just a dollar amount,&amp;nbsp;but so far I have not seen a way to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help or guidance would be greatly appreciated, thanks for your time!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 21:03:46 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Can-you-create-a-transaction-with-an-Item-SKU-using-the/m-p/29188#M94756</guid>
      <dc:creator>cg_dev</dc:creator>
      <dc:date>2017-07-21T21:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can you create a transaction with an Item SKU using the connectV2 API?</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Can-you-create-a-transaction-with-an-Item-SKU-using-the/m-p/29281#M94757</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;At this time you can't pass items into the charge endpoint directly, however we are working on this feature (ecommerce itemizations) and you can read more about it &lt;A href="https://medium.com/square-corner-blog/developer-night-recap-544bb900d0e1#.gdd0d65rl" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would probably want to do a workflow like this&lt;/P&gt;
&lt;P&gt;Display the items on your site (list items)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Retreive an item during checkout to get the price, taxes, etc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;charge for the item,&lt;/P&gt;
&lt;P&gt;update the inventory for the item.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;does that make sense?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 21:10:43 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Can-you-create-a-transaction-with-an-Item-SKU-using-the/m-p/29281#M94757</guid>
      <dc:creator>tristansokol</dc:creator>
      <dc:date>2017-01-24T21:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can you create a transaction with an Item SKU using the connectV2 API?</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Can-you-create-a-transaction-with-an-Item-SKU-using-the/m-p/29396#M94758</link>
      <description>&lt;P&gt;Hi Tristan!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the link to the article (well written!),&amp;nbsp;eCommerce Itemization is exactly the feature&amp;nbsp;I'm looking for and the ability to generate on-the-fly items could allow for some really cool&amp;nbsp;functionality, please let me know if there is any way to sign up for&amp;nbsp;the beta, I'd be happy to participate. &amp;nbsp;I also like the &lt;EM&gt;catalog&lt;/EM&gt;&amp;nbsp;concept, looking forward to the changes to come!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As to your solution - that absolutely makes sense. &amp;nbsp;I didn't realize the v1 API had so much more depth to it, and was pounding my head against the wall looking through the v2 docs. &amp;nbsp;Now that I see the&amp;nbsp;&lt;A href="https://docs.connect.squareup.com/api/connect/v1/#managinginventory" target="_blank"&gt;inventory management&lt;/A&gt;&amp;nbsp;capabilities your workflow seems fairly simple to achieve. &amp;nbsp;If I understand correctly it would look something like:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Menlo, Monaco, Consolas, Courier New, monospace" color="#333333"&gt;&lt;SPAN style="font-size: 13px; white-space: pre;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;GET /v1/{my_location}/items/{square_item_id_from_my_db} // retrieve item details by key&lt;/PRE&gt;
&lt;PRE&gt;POST /v2/locations/{my_location}/transactions // charge by dollar amount&lt;/PRE&gt;
&lt;PRE&gt;POST /v1/{my_location}/inventory/{square_item_variation_id} // use the variation_id from the item in step 1 to update inventory&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if there's anything I'm missing, and thanks for your time!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 04:59:16 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Can-you-create-a-transaction-with-an-Item-SKU-using-the/m-p/29396#M94758</guid>
      <dc:creator>cg_dev</dc:creator>
      <dc:date>2017-01-26T04:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can you create a transaction with an Item SKU using the connectV2 API?</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Can-you-create-a-transaction-with-an-Item-SKU-using-the/m-p/29410#M94759</link>
      <description>&lt;P&gt;Yeah, I think you've got the general idea, and you can always ask more questions if you get stuck.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another thing to look into might be &lt;A href="https://docs.connect.squareup.com/articles/square-checkout-overview/" target="_self"&gt;Square Checkout&lt;/A&gt;&amp;nbsp;that we quietly released a couple days ago. It might be better for your use case.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 17:30:23 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Can-you-create-a-transaction-with-an-Item-SKU-using-the/m-p/29410#M94759</guid>
      <dc:creator>tristansokol</dc:creator>
      <dc:date>2017-01-26T17:30:23Z</dc:date>
    </item>
  </channel>
</rss>

