Skip to main content

Load options for product extras

Use the options value in params when an extra response must include its related options. In the controller, an explicit options request loads each option and its suboptions relation.

GET /business/{business_id}/extras?params=options

Sanitized structural example:

{
"error": false,
"result": [
{
"id": 49,
"name": "Example extra",
"options": [
{
"id": 53,
"extra_id": 49,
"name": "Example option",
"suboptions": [
{
"id": 172,
"extra_option_id": 53,
"name": "Example choice",
"price": 1
}
]
}
]
}
]
}

The example demonstrates relation shape only. It is not a complete schema, and fields can differ by operation and requested params.

See the product extras model and extra option model for the identities represented here.