MenuQL
MenuQL is PAR Ordering's proprietary menu query language. It was developed to offer a performant and efficient way to pull the menu. Using MenuQL you can specify which types of resources and specific attributes that you want to query. MenuQL also allows you to apply custom attribute filters and sorting, as well as to paginate results for a best-in-class menu experience.
To enable MenuQL, send the X-QL-ENABLED HTTP header as true on all of your PAR Ordering API calls.
You may see
X-QB-ENABLEDin older integrations. It is still accepted for backwards compatibility and behaves identically, butX-QL-ENABLEDis the current header and is the one to use in new code.
Query Builder
Available query parameters
| Parameter | Value | Repeatable | Description |
|---|---|---|---|
| page | integer | FALSE |
Sets the page number of the queried results. Default value: Allowed values: any integer larger than Example: |
| per_page | integer | FALSE |
Sets the number of items to be returned per page of the queried results. Default value: Allowed values: any integer larger than Example: |
| paginated_results | boolean | FALSE |
If this parameter is included in the query and has value set to false, it will remove the pagination from the queried results and returns the collection of all items. Default value: Allowed values: Example: |
| include | string array |
FALSE |
Includes the attribute(s) ( Default value: Allowed values: defined for each entity specificly. Example: |
| sort[attribute_name] | string | TRUE |
Sorts the queried results by the Allowed attributes: defined for each entity specificly. Allowed values: Example: |
| filter[attribute_name] | boolean integer string array |
TRUE |
Filters out the queried results by the Allowed attributes: defined for each entity specificly. Allowed values: any. Example: |