Hello Team,
I’m using the Order API to retrieve order details, and I’ve noticed that the Customer ID field is not consistently populated across all orders.
As a reference, here's an example of an order where the customer ID is returned correctly:
However, for many other orders, the Customer ID is missing in the API response. Could you please look into this inconsistency?
Order ID: 30vqVahlPZuluSidnCKKz3meV
Customer ID: J83AGHGF6YJVNYDW3YFB7TRJR4
The following orders do not include a customer ID in the response
1VjpNuEjoWn0hJmNlTTi7tRqivYZY
3ijiBfeVhpEDPNV2z1Ue92lepuWZY
F5l7Zi71BGww5iuOUIwhJoWqZgZZY
Hi, @Faaque ! Welcome the Square Community!
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:
Square may still know who paid (on the Payment), but the Order object itself won’t show customer_id unless it was linked.
How to recover the customer for “missing” orders
I hope this helps.
Hi, @Faaque ! Welcome the Square Community!
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:
Square may still know who paid (on the Payment), but the Order object itself won’t show customer_id unless it was linked.
How to recover the customer for “missing” orders
I hope this helps.
Square Community
Square Products