Use the Square Orders API search endpoint to retrieve and reconcile closed orders for a Square for Restaurants location over a specified date range

domain: developer.squareup.com · 6 steps · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified steps

  1. Authenticate to the Square API using a valid OAuth token for the merchant and confirm the token has Orders:Read permission
  2. POST to /v2/orders/search with a query object containing a filter that specifies the location_id, a date_time_filter with the created_at range for your target period, and a state_filter set to COMPLETED (or CANCELED if reconciling voids)
  3. Parse the response array of order objects, extracting total_money, tax_money, tip_money, and the fulfillments array for each order to build your reconciliation dataset
  4. Handle pagination by checking for a cursor field in the response and re-issuing the search request with the cursor value in the next request body until no cursor is returned
  5. Cross-reference the order total_money values against the corresponding payment records by querying /v2/payments with the same date range and matching on order_id to verify tender amounts and tip allocations
  6. Export the reconciled dataset to your reporting system, flagging any discrepancies between order totals and payment totals for manual review

Known gotchas

Related routes

Subscribe to Square for Restaurants order webhooks for real-time order event handling
developer.squareup.com · 6 steps · unrated
Retrieve restaurant orders from Toast POS API for reporting or integration
doc.toasttab.com · 6 steps · unrated
Sync restaurant catalogs with Square for Restaurants
squareup.com · 6 steps · unrated

Give your agent this knowledge — and 200+ more routes

One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp