Extras Options Model

ActionMethodResourceDescription
Get allGET/business/:business_id/extras/:extra_id/optionsGet all options with business_id and extra_id.
GetGET/business/:business_id/extras/:extra_id/options/:option_idGet option with id business_id, extra_id and option_id.
Create POST/business/:business_id/extras/:extra_id/optionsCreate option with business_id and extra_id.
Update PUT/business/:business_id/extras/:extra_id/options/:option_idUpdate option with business_id, extra_id and option_id.
Delete DELETE/business/:business_id/extras/:extra_id/options/:option_idDelete option with business_id, extra_id and option_id.

The extra option (product option) model is composed of the following attributes:

AttributeTypeRequiredDescriptionwhereable
namestringno, required to create.The option's name.Yes
conditionedbooleanno, required to create.If is option that is related to a conditional.Yes
respect_tointegernoThe option's relation to a condition.No
minintegernoThe option's minimum required selection.Yes
maxintegernoThe option's maximum required selection.Yes
rankintegeronly to update.The option's order.Yes
with_half_optionbooleannoThe option's enable/disable the middle price for sub options. if disable, suboptions takes the whole pricesNo
"allow_suboption_quantitybooleannoThe option's enable/disable the amount of sub-options added. If this is not active the APIs will only receive 1 so that the amount sent is different.No
enabledbooleannoThe option's enabledno

📘

Restrictions for POST, PUT, DELETE extra options.

Extra options can only be created, updated or removed by user level 0 (Type: Administrator) and user level 2 (Type: Business owner).

  • User type Administrator can create, update or remove any extra option for any business.
  • User type Business owner can create, update or remove only extra options related to his business.