<?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: Missing customer id from order response. in Orders, Menu Items, Catalog &amp; Fulfilment</title>
    <link>https://community.squareup.com/t5/Orders-Menu-Items-Catalog/Missing-customer-id-from-order-response/m-p/819480#M20801</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/743529"&gt;@Faaque&lt;/a&gt;&amp;nbsp;! Welcome the Square Community!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Order ID is optional and is only populated when a customer profile was explicitly linked to the order at creation or via an update. Common cases where it’s not set:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Guest/anonymous checkout (no profile selected or created).&lt;/LI&gt;
&lt;LI&gt;POS orders where the team didn’t attach a customer at checkout.&lt;/LI&gt;
&lt;LI&gt;Online orders where the buyer didn’t sign in and no post-purchase linking occurred.&lt;/LI&gt;
&lt;LI&gt;3P/legacy flows (e.g., older integrations, terminals) that don’t send customer_id with the order.&lt;/LI&gt;
&lt;LI&gt;Merged/deleted customer profiles—the order remains, but its customer_id link can be lost.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Square may still know &lt;EM&gt;who paid&lt;/EM&gt; (on the Payment), but the Order object itself won’t show customer_id unless it was linked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How to recover the customer for “missing” orders&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;You can usually backfill from Payments or fulfillment data:Look up the Payment(s) for the order&lt;BR /&gt;Use Payments API to find the payment tied to the order; payments often have customer_id even when the order doesn’t.POST /v2/payments/search&lt;BR /&gt;{&lt;BR /&gt;"query": { "filter": { "order_filter": { "order_ids": ["&amp;lt;ORDER_ID&amp;gt;"] } } }&lt;BR /&gt;}&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;If payments[i].customer_id is present, that’s your customer.If there’s no customer_id on the payment, try:&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;UL&gt;
&lt;LI&gt;buyer_email_address on the Order&lt;/LI&gt;
&lt;LI&gt;fulfillments[].shipment_details.recipient.* (name, email, phone)&lt;/LI&gt;
&lt;LI&gt;Any invoice/checkout link metadata you passed&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I hope this helps.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 02 Oct 2025 12:45:00 GMT</pubDate>
    <dc:creator>Summer2024</dc:creator>
    <dc:date>2025-10-02T12:45:00Z</dc:date>
    <item>
      <title>Missing customer id from order response.</title>
      <link>https://community.squareup.com/t5/Orders-Menu-Items-Catalog/Missing-customer-id-from-order-response/m-p/819326#M20741</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m using the Order API to retrieve order details, and I’ve noticed that the&amp;nbsp;Customer ID&amp;nbsp;field is not consistently populated across all orders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a reference, here's an example of an order where the customer ID is returned correctly:&lt;/P&gt;&lt;P&gt;However, for many other orders, the&amp;nbsp;Customer ID&amp;nbsp;is missing in the API response. Could you please look into this inconsistency?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Order ID: 30vqVahlPZuluSidnCKKz3meV&lt;BR /&gt;Customer ID: J83AGHGF6YJVNYDW3YFB7TRJR4&lt;/P&gt;&lt;P&gt;The following orders do not include a customer ID in the response&lt;/P&gt;&lt;P&gt;1VjpNuEjoWn0hJmNlTTi7tRqivYZY&lt;BR /&gt;3ijiBfeVhpEDPNV2z1Ue92lepuWZY&lt;BR /&gt;F5l7Zi71BGww5iuOUIwhJoWqZgZZY&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 13:57:23 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Orders-Menu-Items-Catalog/Missing-customer-id-from-order-response/m-p/819326#M20741</guid>
      <dc:creator>Faaque</dc:creator>
      <dc:date>2025-10-01T13:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Missing customer id from order response.</title>
      <link>https://community.squareup.com/t5/Orders-Menu-Items-Catalog/Missing-customer-id-from-order-response/m-p/819480#M20801</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/743529"&gt;@Faaque&lt;/a&gt;&amp;nbsp;! Welcome the Square Community!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Order ID is optional and is only populated when a customer profile was explicitly linked to the order at creation or via an update. Common cases where it’s not set:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Guest/anonymous checkout (no profile selected or created).&lt;/LI&gt;
&lt;LI&gt;POS orders where the team didn’t attach a customer at checkout.&lt;/LI&gt;
&lt;LI&gt;Online orders where the buyer didn’t sign in and no post-purchase linking occurred.&lt;/LI&gt;
&lt;LI&gt;3P/legacy flows (e.g., older integrations, terminals) that don’t send customer_id with the order.&lt;/LI&gt;
&lt;LI&gt;Merged/deleted customer profiles—the order remains, but its customer_id link can be lost.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Square may still know &lt;EM&gt;who paid&lt;/EM&gt; (on the Payment), but the Order object itself won’t show customer_id unless it was linked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How to recover the customer for “missing” orders&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;You can usually backfill from Payments or fulfillment data:Look up the Payment(s) for the order&lt;BR /&gt;Use Payments API to find the payment tied to the order; payments often have customer_id even when the order doesn’t.POST /v2/payments/search&lt;BR /&gt;{&lt;BR /&gt;"query": { "filter": { "order_filter": { "order_ids": ["&amp;lt;ORDER_ID&amp;gt;"] } } }&lt;BR /&gt;}&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;If payments[i].customer_id is present, that’s your customer.If there’s no customer_id on the payment, try:&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;UL&gt;
&lt;LI&gt;buyer_email_address on the Order&lt;/LI&gt;
&lt;LI&gt;fulfillments[].shipment_details.recipient.* (name, email, phone)&lt;/LI&gt;
&lt;LI&gt;Any invoice/checkout link metadata you passed&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I hope this helps.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Oct 2025 12:45:00 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Orders-Menu-Items-Catalog/Missing-customer-id-from-order-response/m-p/819480#M20801</guid>
      <dc:creator>Summer2024</dc:creator>
      <dc:date>2025-10-02T12:45:00Z</dc:date>
    </item>
  </channel>
</rss>

