I have a couple of websites in my Square account. From the dashboard “All orders” page, I can filter the orders by channels (Website 1, Website 2, Doordash, Uber Eats). Is there a way to retrieve that channel name associated with an order programmatically?
Hi! There isn’t a dedicated channel field on the Orders API Order object that maps directly to the Dashboard “Channel” filter.
The closest field available on an order is source.name. The source field represents the latest source details for the order, and OrderSource.name is the name used to identify where the order originated. You can see it when retrieving/searching orders, for example:
"source": { "name": "Website 1"}
If you already know the source names you want to query for, SearchOrders also supports filtering by source.nameusing query.filter.source_filter.source_names.
A couple of caveats:
- The Orders API doesn’t provide an endpoint to list all Dashboard channel filter values for orders.
source.nameis not a separate channel ID, and it may not always be a perfect 1:1 match to the Dashboard “Channel” label for every Square or third-party channel.- The
sourcefield can reflect the latest source/app that interacted with the order, not necessarily a stable original channel in all cases.
So the best approach is to retrieve a few known orders from each Dashboard channel and confirm the corresponding source.name values returned by the API.
Docs:
- Order
source: Order Object - Square API Reference OrderSource.name: OrderSource Object - Square API ReferenceSearchOrdersSourceFilter.source_names: SearchOrdersSourceFilter Object - Square API Reference