<?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: Getting Order ID From Transaction [PHP API] in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-Order-ID-From-Transaction-PHP-API/m-p/99211#M98074</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/136099"&gt;@devstcs&lt;/a&gt;!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I escalated this to our API team for you and they confirmed that the order_id&lt;STRONG&gt; &lt;/STRONG&gt;will only be present if you&amp;nbsp;explicitly pass an order_id to the Charge&amp;nbsp;endpoint, or if you use Checkout API.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If you're looking for itemization from POS transactions, you should use &lt;A href="https://docs.connect.squareup.com/api/connect/v1#navsection-payments" target="_blank"&gt;v1's Payment API&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;But if you're referreing to online transactions, then take a look at this &lt;A href="https://docs.connect.squareup.com/cookbook/orders-and-transactions" target="_blank"&gt;itemize transactions documentation&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If you have any other questions please let me know!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Nov 2018 22:20:05 GMT</pubDate>
    <dc:creator>Helen</dc:creator>
    <dc:date>2018-11-07T22:20:05Z</dc:date>
    <item>
      <title>Getting Order ID From Transaction [PHP API]</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-Order-ID-From-Transaction-PHP-API/m-p/99034#M98073</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are looking for a little help in trying to get the order ID from a transaction, or a transaction list using the PHP API. Our transactional response comes back but the order id is empty. also attempting to use -&amp;gt;getId() on a transaction ended up being a bust.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated,&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 17:34:53 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-Order-ID-From-Transaction-PHP-API/m-p/99034#M98073</guid>
      <dc:creator>devstcs</dc:creator>
      <dc:date>2018-11-06T17:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Order ID From Transaction [PHP API]</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-Order-ID-From-Transaction-PHP-API/m-p/99211#M98074</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/136099"&gt;@devstcs&lt;/a&gt;!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I escalated this to our API team for you and they confirmed that the order_id&lt;STRONG&gt; &lt;/STRONG&gt;will only be present if you&amp;nbsp;explicitly pass an order_id to the Charge&amp;nbsp;endpoint, or if you use Checkout API.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If you're looking for itemization from POS transactions, you should use &lt;A href="https://docs.connect.squareup.com/api/connect/v1#navsection-payments" target="_blank"&gt;v1's Payment API&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;But if you're referreing to online transactions, then take a look at this &lt;A href="https://docs.connect.squareup.com/cookbook/orders-and-transactions" target="_blank"&gt;itemize transactions documentation&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If you have any other questions please let me know!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 22:20:05 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-Order-ID-From-Transaction-PHP-API/m-p/99211#M98074</guid>
      <dc:creator>Helen</dc:creator>
      <dc:date>2018-11-07T22:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Order ID From Transaction [PHP API]</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-Order-ID-From-Transaction-PHP-API/m-p/99253#M98075</link>
      <description>&lt;P&gt;Helen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&amp;nbsp; Essentially we are trying to get orders that were run from our Square POS, so I'm not sure if sure what Checkout API that actually uses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to confirm there is no way to get the the items from the V2 API?&amp;nbsp; We will take a look at the V1 Paypment API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you again!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 12:26:19 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-Order-ID-From-Transaction-PHP-API/m-p/99253#M98075</guid>
      <dc:creator>devstcs</dc:creator>
      <dc:date>2018-11-08T12:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Order ID From Transaction [PHP API]</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-Order-ID-From-Transaction-PHP-API/m-p/99305#M98076</link>
      <description>&lt;P&gt;Hi again! I checked back with the team and yep, if you only need&amp;nbsp;POS payments then you will need to use V1 Payments. It's not possible retrieve the items in V2 for a POS payment at this time. The only way to retrieve items in V2 is for an online transaction, not for a POS transaction.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Hope this helps clarify but don't hesitate to post again if any other questions come up!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 19:04:11 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-Order-ID-From-Transaction-PHP-API/m-p/99305#M98076</guid>
      <dc:creator>Helen</dc:creator>
      <dc:date>2018-11-08T19:04:11Z</dc:date>
    </item>
  </channel>
</rss>

