<?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 BatchRetreiveOrders in sandbox in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/BatchRetreiveOrders-in-sandbox/m-p/137117#M93950</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Is it possible to use BatchRetrieveOrders in Sandbox?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this is the code I'm using:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;$body = new \SquareConnect\Model\BatchRetrieveOrdersRequest(); 
$body-&amp;gt;setOrderIds(['CBASEO0b4bbWpum1aleKACATKzg']);
$result = $client-&amp;gt;batchRetrieveOrders($location_id, $body);
var_dump($result);&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I get this response:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;object(SquareConnect\Model\BatchRetrieveOrdersResponse)#9 (2) { ["orders":protected]=&amp;gt; NULL ["errors":protected]=&amp;gt; NULL }&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;The order id I'm using came from an order placed in sandbox, from the URL on the redirect URL:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checkoutId=CBASEO0b4bbWpum1aleKACATKzg&amp;amp;session_id=123&amp;amp;transactionId=CMzyOm702NumugckHC1J63UjDb4F&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I'm expecting to get an Order model back, but get NULL instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Suggestions?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 20:31:06 GMT</pubDate>
    <dc:creator>ourgourmetlife</dc:creator>
    <dc:date>2019-10-29T20:31:06Z</dc:date>
    <item>
      <title>BatchRetreiveOrders in sandbox</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/BatchRetreiveOrders-in-sandbox/m-p/137117#M93950</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Is it possible to use BatchRetrieveOrders in Sandbox?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this is the code I'm using:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;$body = new \SquareConnect\Model\BatchRetrieveOrdersRequest(); 
$body-&amp;gt;setOrderIds(['CBASEO0b4bbWpum1aleKACATKzg']);
$result = $client-&amp;gt;batchRetrieveOrders($location_id, $body);
var_dump($result);&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I get this response:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;object(SquareConnect\Model\BatchRetrieveOrdersResponse)#9 (2) { ["orders":protected]=&amp;gt; NULL ["errors":protected]=&amp;gt; NULL }&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;The order id I'm using came from an order placed in sandbox, from the URL on the redirect URL:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checkoutId=CBASEO0b4bbWpum1aleKACATKzg&amp;amp;session_id=123&amp;amp;transactionId=CMzyOm702NumugckHC1J63UjDb4F&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I'm expecting to get an Order model back, but get NULL instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Suggestions?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 20:31:06 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/BatchRetreiveOrders-in-sandbox/m-p/137117#M93950</guid>
      <dc:creator>ourgourmetlife</dc:creator>
      <dc:date>2019-10-29T20:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: BatchRetreiveOrders in sandbox</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/BatchRetreiveOrders-in-sandbox/m-p/137199#M93951</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/214150"&gt;@ourgourmetlife&lt;/a&gt;! Welcome to the Community.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I reached out to someone on our API team with your inquiry and this was their response:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;After searching our internal logs, the order id they provided (CBASEO0b4bbWpum1aleKACATKzg) isn’t an order id - it’s a checkout id. Since they’re using create checkout, the checkout should have an&amp;nbsp;order&amp;nbsp;object with an id on it. In this case the order is actually&amp;nbsp;CMzyOm702NumugckHC1J63UjDb4F1&amp;nbsp;for that checkout.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 16:56:49 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/BatchRetreiveOrders-in-sandbox/m-p/137199#M93951</guid>
      <dc:creator>ashc</dc:creator>
      <dc:date>2019-10-30T16:56:49Z</dc:date>
    </item>
  </channel>
</rss>

