Search orders
documentedSearches all orders for specified locations.
POST /v2/orders/searchOrdersno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://connect.squareup.com/v2/orders/search" \
-X POST \
-H "Square-Version: 2026-01-22" \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-d '{
"return_entries": {{$return_entries}},
"limit": {{$limit}},
"location_ids": [
"{{$location_id}}"
],
"cursor": "{{$cursor}}",
"query": {
"filter": {
"date_time_filter": {
"closed_at": {
"start_at": "{{$start_at}}",
"end_at": "{{$end_at}}"
}
},
"state_filter": {
"states": [
"{{$state}}"
]
}
},
"sort": {
"sort_field": "CLOSED_AT",
"sort_order": "DESC"
}
}
}'