Skip to main content

Modifiers

13 API calls in this section.

Create Modifier Group​

Restaurant Menu / Modifiers
POST/restaurant/modifier-groups

Create a group of product choices, such as extras or preparation options, with selection limits and optional initial choices.

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Body parameters

ParameterTypeDescription
location_idstring—
nameobject—
name.enstring—
requiredboolean—
min_selectnumber—
max_selectnumber—
activeboolean—
optionsarray<object>—
options.nameobject—
options.name.enstring—
options.price_deltanumber—
options.allows_quantityboolean—
Show 1 more body fields

Additional body parameters

ParameterTypeDescription
options.activeboolean—
Staging
Request
curl
1curl --globoff --request POST "https://staging-api.ondi.io/functions/v1/restaurant/modifier-groups" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}" \3  --header "Content-Type: application/json" \4  --data-raw '{5  "location_id": "{{location_id}}",6  "name": {7    "en": "Sauces"8  },9  "required": false,10  "min_select": 0,11  "max_select": 2,12  "active": true,13  "options": [14    {15      "name": {16        "en": "Ketchup"17      },18      "price_delta": 0,19      "allows_quantity": false,20      "active": true21    },22    {23      "name": {24        "en": "Mayo"25      },26      "price_delta": 0.2,27      "allows_quantity": false,28      "active": true29    }30  ]31}'

Replace {{placeholders}} with your own values before sending.

Response examples

No saved response example. Use Try it to inspect a staging response.

Update Modifier Group (with options upsert)​

Restaurant Menu / Modifiers
PUT/restaurant/modifier-groups/:id

Change a modifier group’s name or selection rules, and create or update its supplied options.

Path parameters

ParameterTypeDescription
idRequiredstring

Dynamic path value from the request URL.

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Body parameters

ParameterTypeDescription
nameobject—
name.enstring—
requiredboolean—
min_selectnumber—
max_selectnumber—
activeboolean—
optionsarray<object>—
options.idstring—
options.nameobject—
options.name.enstring—
options.price_deltanumber—
options.allows_quantityboolean—
Show 1 more body fields

Additional body parameters

ParameterTypeDescription
options.activeboolean—
Staging
Request
curl
1curl --globoff --request PUT "https://staging-api.ondi.io/functions/v1/restaurant/modifier-groups/${ID}" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}" \3  --header "Content-Type: application/json" \4  --data-raw '{5  "name": {6    "en": "Sauces"7  },8  "required": true,9  "min_select": 1,10  "max_select": 2,11  "active": true,12  "options": [13    {14      "id": "{{option_id_1}}",15      "name": {16        "en": "Ketchup"17      },18      "price_delta": 0.1,19      "allows_quantity": false,20      "active": true21    },22    {23      "name": {24        "en": "BBQ"25      },26      "price_delta": 0.3,27      "allows_quantity": false,28      "active": true29    }30  ]31}'

Replace {{placeholders}} with your own values before sending.

Response examples

No saved response example. Use Try it to inspect a staging response.

Create Modifier Option​

Restaurant Menu / Modifiers
POST/restaurant/modifier-groups/:groupId/options

Add a choice to a modifier group, including its price adjustment and quantity behavior.

Path parameters

ParameterTypeDescription
groupIdRequiredstring

Dynamic path value from the request URL.

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Body parameters

ParameterTypeDescription
nameobject—
name.enstring—
price_deltanumber—
allows_quantityboolean—
activeboolean—
Staging
Request
curl
1curl --globoff --request POST "https://staging-api.ondi.io/functions/v1/restaurant/modifier-groups/${GROUPID}/options" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}" \3  --header "Content-Type: application/json" \4  --data-raw '{5  "name": {6    "en": "Ketchup"7  },8  "price_delta": 0,9  "allows_quantity": false,10  "active": true11}'

Response examples

No saved response example. Use Try it to inspect a staging response.

Update Modifier Option​

Restaurant Menu / Modifiers
PUT/restaurant/modifier-options/:id

Change a modifier choice’s name, price adjustment, availability or quantity behavior.

Path parameters

ParameterTypeDescription
idRequiredstring

Dynamic path value from the request URL.

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Body parameters

ParameterTypeDescription
nameobject—
name.enstring—
price_deltanumber—
allows_quantityboolean—
activeboolean—
Staging
Request
curl
1curl --globoff --request PUT "https://staging-api.ondi.io/functions/v1/restaurant/modifier-options/${ID}" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}" \3  --header "Content-Type: application/json" \4  --data-raw '{5  "name": {6    "en": "Ketchup"7  },8  "price_delta": 0.25,9  "allows_quantity": true,10  "active": true11}'

Response examples

No saved response example. Use Try it to inspect a staging response.

Link Group to Product​

Restaurant Menu / Modifiers
POST/restaurant/products/:productId/modifier-groups/:groupId

Make a modifier group available on a product and set its display order.

Path parameters

ParameterTypeDescription
productIdRequiredstring

Dynamic path value from the request URL.

groupIdRequiredstring

Dynamic path value from the request URL.

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Body parameters

ParameterTypeDescription
sort_ordernumber—
Staging
Request
curl
1curl --globoff --request POST "https://staging-api.ondi.io/functions/v1/restaurant/products/${PRODUCTID}/modifier-groups/${GROUPID}" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}" \3  --header "Content-Type: application/json" \4  --data-raw '{5  "sort_order": 06}'

Response examples

No saved response example. Use Try it to inspect a staging response.

Restaurant Menu / Modifiers
DELETE/restaurant/products/:productId/modifier-groups/:groupId

Remove the relationship between a product and a modifier group.

Path parameters

ParameterTypeDescription
productIdRequiredstring

Dynamic path value from the request URL.

groupIdRequiredstring

Dynamic path value from the request URL.

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging

Response examples

No saved response example. Use Try it to inspect a staging response.

Get Modifier Group (with options)​

Restaurant Menu / Modifiers
GET/restaurant/modifier-groups/:id

Read a modifier group together with the choices customers can select.

Path parameters

ParameterTypeDescription
idRequiredstring

Dynamic path value from the request URL.

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/restaurant/modifier-groups/${ID}" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

No saved response example. Use Try it to inspect a staging response.

List Modifier Groups (with options, by location)​

Restaurant Menu / Modifiers
GET/restaurant/locations/{{location_id}}/modifier-groups

Browse a location’s modifier groups and their options before linking them to products.

Path parameters

ParameterTypeDescription
location_idRequiredstring

Variable used inside the request path.

Query parameters

ParameterTypeDescription
pagestring

Example: {{page}}

limitstring

Example: {{limit}}

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/restaurant/locations/${LOCATION_ID}/modifier-groups?page=${PAGE}&limit=${LIMIT}" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

No saved response example. Use Try it to inspect a staging response.

Get Product Modifier Groups (with options)​

Restaurant Menu / Modifiers
GET/restaurant/products/:productId/modifier-groups

Load the modifier groups and choices linked to one product.

Path parameters

ParameterTypeDescription
productIdRequiredstring

Dynamic path value from the request URL.

Query parameters

ParameterTypeDescription
pagestring

Example: 1

limitstring

Example: 20

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/restaurant/products/${PRODUCTID}/modifier-groups?page=1&limit=20" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

No saved response example. Use Try it to inspect a staging response.

Delete Modifier Group​

Restaurant Menu / Modifiers
DELETE/restaurant/modifier-groups/:id

Remove a modifier group from the restaurant’s configuration.

Path parameters

ParameterTypeDescription
idRequiredstring

Dynamic path value from the request URL.

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request DELETE "https://staging-api.ondi.io/functions/v1/restaurant/modifier-groups/${ID}" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

No saved response example. Use Try it to inspect a staging response.

Get Modifier Option​

Restaurant Menu / Modifiers
GET/restaurant/modifier-options/:id

Read the details of one modifier choice before displaying or editing it.

Path parameters

ParameterTypeDescription
idRequiredstring

Dynamic path value from the request URL.

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/restaurant/modifier-options/${ID}" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

No saved response example. Use Try it to inspect a staging response.

List Modifier Options (by group)​

Restaurant Menu / Modifiers
GET/restaurant/modifier-groups/:groupId/options

Browse the choices belonging to one modifier group.

Path parameters

ParameterTypeDescription
groupIdRequiredstring

Dynamic path value from the request URL.

Query parameters

ParameterTypeDescription
pagestring

Example: {{page}}

limitstring

Example: {{limit}}

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/restaurant/modifier-groups/${GROUPID}/options?page=${PAGE}&limit=${LIMIT}" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

No saved response example. Use Try it to inspect a staging response.

Delete Modifier Option​

Restaurant Menu / Modifiers
DELETE/restaurant/modifier-options/:id

Remove a choice from its modifier group.

Path parameters

ParameterTypeDescription
idRequiredstring

Dynamic path value from the request URL.

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request DELETE "https://staging-api.ondi.io/functions/v1/restaurant/modifier-options/${ID}" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

No saved response example. Use Try it to inspect a staging response.