Get Business by products Model
Use GET /products with groupBy=business to return businesses associated with products that match the availability and filter conditions.
groupBy=business is evaluated by the availability-search branch, which runs when order_type_id or its type alias is present. The result is grouped by business after product, menu, schedule, fulfillment, and location/dropdown-option filtering.
Relevant parameters include:
groupBy=business— return matching businesses instead of products.where— apply fields supported by the current product filter contract.order_type_idortype— select the fulfillment mode.location— comma-separated latitude and longitude.dropdown_option_idordropdownoption— select a configured delivery-zone option.timestamp— evaluate availability at a Unix timestamp.professional_id— scope products where the operation supports professional assignment.
The where filter does not necessarily search product names or descriptions; supported fields depend on the operation.
GET /products?order_type_id=1&location=40.7314,-73.9970&groupBy=business