<?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 Re: Unexpected v1 GUIDs returned in item_variation_id with call to RetrievePayment in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Unexpected-v1-GUIDs-returned-in-item-variation-id-with-call-to/m-p/123391#M94033</link>
    <description>&lt;P&gt;Hey &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/136390"&gt;@UglyBaby&lt;/a&gt;!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;We would recommend reaching out to our API team directly for assistance with this because we're not really versed in this on our team.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You can &lt;A href="http://squ.re/contact " target="_blank"&gt;Contact Us&lt;/A&gt;&amp;nbsp;by email and someone on our Customer Success team can help directly connect you with one of our API team members.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks for understanding!&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jun 2019 15:39:28 GMT</pubDate>
    <dc:creator>ashc</dc:creator>
    <dc:date>2019-06-02T15:39:28Z</dc:date>
    <item>
      <title>Unexpected v1 GUIDs returned in item_variation_id with call to RetrievePayment</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Unexpected-v1-GUIDs-returned-in-item-variation-id-with-call-to/m-p/123242#M94032</link>
      <description>&lt;P&gt;I'm working on report building system based off items sold. I have a site that handles the&amp;nbsp;PAYMENT_UPDATED webhook.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That page sends the entity_id (paymentId) to the&amp;nbsp;&lt;A href="https://developer.squareup.com/docs/api/connect/v2#endpoint-v1transactions-retrievepayment" target="_self"&gt;v1 RetrievePayment&lt;/A&gt;&amp;nbsp;API to get the details of the transaction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then parse through the &lt;EM&gt;itemizations&lt;/EM&gt; collection to look at each item sold in a transaction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For each item, I grab &lt;EM&gt;item_detail-&amp;gt;item_variation_id&lt;/EM&gt; and send that off to&amp;nbsp;&lt;A href="https://developer.squareup.com/docs/api/connect/v2#endpoint-inventory-retrieveinventorycount" target="_blank" rel="noopener"&gt;v2 RetrieveInventoryCount&lt;/A&gt; to get the current inventory for that item after the sale.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This all works great (thanks for these APIs, by the way!) and has been running for a few weeks with no problems. But yesterday, I noticed a problem. Some of the items in my catelog are showing a v1 GUID in&amp;nbsp; &lt;EM&gt;itemizations-&amp;gt;item_detail-&amp;gt;&lt;/EM&gt;&lt;EM&gt;item_variation_id&lt;/EM&gt;&amp;nbsp;in the data retrieved from RetrievePayment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem item's variations all have valid v2 item_variation_ids. But looking at their parent item with&amp;nbsp;&lt;A href="https://developer.squareup.com/docs/api/connect/v2#endpoint-catalog-retrievecatalogobject" target="_blank" rel="noopener"&gt;v2 RetrieveCatalogObject&lt;/A&gt;, I can see these problem variations also have at&amp;nbsp;&lt;EM&gt;catalog_v1_ids&lt;/EM&gt; collection that is not present in other items.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 - why are the v2 item_variation_ids not getting returned in RetrievePayment for these items like they are for everything else in my catalog (so far)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2 - Is there are a way for me to stop this from happening? Assuming it's the source of the problem, is there a way for me to remove the&amp;nbsp;&lt;EM&gt;catalog_v1_ids&lt;/EM&gt; collection from these variations?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also - I know I can code around this problem by making a series of other API calls when I detect a v1 GUID in &lt;EM&gt;item_variation_id&lt;/EM&gt; but I would rather not take that approach unless there are no other options available to me.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you in advance for any help you can offer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 21:03:22 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Unexpected-v1-GUIDs-returned-in-item-variation-id-with-call-to/m-p/123242#M94032</guid>
      <dc:creator>UglyBaby</dc:creator>
      <dc:date>2019-05-31T21:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected v1 GUIDs returned in item_variation_id with call to RetrievePayment</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Unexpected-v1-GUIDs-returned-in-item-variation-id-with-call-to/m-p/123391#M94033</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/136390"&gt;@UglyBaby&lt;/a&gt;!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;We would recommend reaching out to our API team directly for assistance with this because we're not really versed in this on our team.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You can &lt;A href="http://squ.re/contact " target="_blank"&gt;Contact Us&lt;/A&gt;&amp;nbsp;by email and someone on our Customer Success team can help directly connect you with one of our API team members.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks for understanding!&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 15:39:28 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Unexpected-v1-GUIDs-returned-in-item-variation-id-with-call-to/m-p/123391#M94033</guid>
      <dc:creator>ashc</dc:creator>
      <dc:date>2019-06-02T15:39:28Z</dc:date>
    </item>
  </channel>
</rss>

