The business model has the following endpoints:
Action | Method | Resource | Description |
---|---|---|---|
Get | GET | /search | Get an advance businesses search. |
Get | GET | /search/suggestions | Get suggestions of the search from business, category and product |
The business model has the following attributes:
Attribute | Type | Required | Description | Whereable |
---|---|---|---|---|
order_type_id | integer | Yes | order type (1,2) Delivery, Pickup | Yes |
location | json | Yes | location to find the data. (lat, lng) | Yes |
term | string | No | value to find related data too. | Yes |
tags | array | no | label for products. | No |
max_distance | float | no | Max search from the location provided | Yes |
max_eta | integer | no | Max estimate time of arrival | Yes |
max_delivery_price | float | no | Max delivery price on business | No |
max_product_price | float | no | Max price amount of product | No |
featured_products | boolean | no | if enabled, the search will only find featured products | Yes |
in_offer_products | boolean | no | if enabled, the search will only find in offer products | Yes |
level_price | string | no | This is the classification per business depending on the prices of each business. | Yes |