Extra option suboption model
An ExtraOptionSuboption is a selectable choice that belongs to one ExtraOption through extra_option_id. The enclosing route also identifies the business and parent extra; those IDs are not interchangeable.
Operations
| Action | Method | Resource |
|---|---|---|
| List | GET | /business/{business_id}/extras/{extra_id}/options/{option_id}/suboptions |
| Find | GET | /business/{business_id}/extras/{extra_id}/options/{option_id}/suboptions/{suboption_id} |
| Create | POST | /business/{business_id}/extras/{extra_id}/options/{option_id}/suboptions |
| Update | PUT or POST | /business/{business_id}/extras/{extra_id}/options/{option_id}/suboptions/{suboption_id} |
| Delete | DELETE | /business/{business_id}/extras/{extra_id}/options/{option_id}/suboptions/{suboption_id} |
List and item reads may be public, while mutations may require administrator or business-manager access. Match the business, extra, and option IDs in nested routes; read and mutation permissions can differ.
Shared concepts
The model includes fields such as id, extra_option_id, name, price, image, sku, rank, description, max, half_price, enabled, external_id, preselected, is_alcohol, and snooze_until. Its parent relation is option; its metadata relation is metafields.
See load the parent option and the extra suboption metafield operations.