Customer Orders

We are seeing strange issues when retrieving orders via the API.

Overnight we import the previous days orders, but it appears that in some cases the customer ID is changing, or it is simply missing.

If we use the orders API to retrieve a specific customers orders directly, we can see orders with multiple different customer IDs and in some cases none at all.

From our side this makes it nearly impossible to associate orders with a specific customer.

The process we follow is that overnight we get the previous days transactions. Using the customer ID we associated it with the relevant customer. Obviously if the customer ID changes, or isn’t present, we cannot do this effectively.

I have seen comments saying that the customer ID changes if it is merged, but this equally doesn’t make sense. There is never an occasion where the customer is duplicated, especially in one case where the customers ID has changed over 7 times in the last 6 months.

Thanks,

Dave

Hi Dave,

There are a few Square behaviors that could explain what you’re seeing:

  • Missing IDs: A customer can be linked to a payment without being linked to the order, including when they enter contact details on the receipt screen. Check the associated payment’s customer_id.
  • Different IDs: Square can create instant customer profiles. Those without public information aren’t visible in Dashboard or customer searches, so not seeing duplicates doesn’t rule them out.
  • Merged profiles: Historical transactions retain their original IDs. Calling RetrieveCustomer with an old, merged ID returns the current profile. Use the returned customer.id when matching records.

These behaviors are covered in the Customers API documentation.

Is there a way you can see how this happened exactly?

The customers current ID is D97NWGHZY1199FE247QBMGYA7W.

We are concerned that his ID has changed so frequently.

This is not the only customer with the issue, but the one we are focussing on to try to alleviate the issue.

Thanks,

Dave

Sending you a DM to get your merchant token.