Order Search API not returning orders when searching by customer

I’m using the Search orders API in the sandbox and today it has stopped returning orders when I search by customer id.

client.orders.search(
    query={
        "filter": {
            "customer_filter": {
                "customer_ids": [
                    "S6NHX3Z1R27HY0X6PZKBK2YEKG"
                ]
            }
        }
    },
    location_ids=[
        "L853MS00EAHB3"
    ]
)

Returns a 200 with an empty dict {}

However, when I use the Retrieve order API with a specific order id, I get a result that has that customer id

client.orders.get(
    order_id="maPyniNVjKOyZp1hJOX4yZj5Ce4F"
)

Returns a 200 with the customer id

{
  "order": {
    "id": "maPyniNVjKOyZp1hJOX4yZj5Ce4F",
    "location_id": "L853MS00EAHB3",
...
    "created_at": "2026-04-29T17:50:21.849Z",
    "updated_at": "2026-04-29T17:50:26.000Z",
    "state": "COMPLETED",
    "version": 7,
    "reference_id": "8262",
...
    "closed_at": "2026-04-29T17:50:24.203Z",
...
    "customer_id": "S6NHX3Z1R27HY0X6PZKBK2YEKG",
...
  }
}

I am seeing the same issue but when using the date_time, fulfillment, source, or state filter. It’s also not showing up on the Sandbox dashboard. However same as OP, retrieving the order by ID works fine. e.g., order id 0l8OgPTxkflHNpRjsMhn1Okyvd4F

This began happening this morning for us and is only impact Sandbox, not our prod. @Bryan-Square If there’s anything else that can be provided to help debug please let us know.

Arielle

@raycionic @bohl-dev thanks for reaching out. We are investigating with our engineering team and will provide an update when we know more.

We’re experiencing the same issue. Our integration uses POST /v2/orders/search with date_time_filter and state_filter against the sandbox, it returns HTTP 200 with an empty {} body regardless of filters used

We’ve confirmed:

  • Orders exist via batch-retrieve (by ID)
  • Payments exist via GET /v2/payments with date filtering
  • orders/search returns {} even with no filters at all - just location_ids and limit
  • Tested across multiple Square API versions (2024-01-18, 2025-04-16) - same result
  • Production is unaffected

This started around April 30 for us as well. It’s blocking our sandbox development and demo workflows. Any update on the investigation timeline would be appreciated.

Looks like the issue was resolved today.

Confirmed. Working for me again too.

Hey all! Yes, confirming we pushed a fix last night.