Extras Options special request

Extra options have two special params request that brings specific information, the attributes that are used for special requests are listed below:

  • Extra
  • Suboptions

Extra

This param is used to obtain the product options Extra information. Extra information is basically the product options group.

An example to use this param is:

  • http://apiv4.ordering.co/v400/en/demo/business/41/extras/49?params=extra
[
    {
        "id": 53,
        "extra_id": 49,
        "name": "Size",
        "conditioned": false,
        "respect_to": null,
        "min": 1,
        "max": 1,
        "rank": 1,
        "extra": {
            "id": 49,
            "business_id": 41,
            "name": "McBonalds option1",
            "description": null,
            "enabled": true
        }
    }
    ... //if findAll
]

Suboptions

This param is used to obtain the Extra options. The Suboptions are basically the product options choices.

An example to use this param is:

  • http://apiv4.ordering.co/v400/en/demo/business/41/extras/49?params=suboptions
[
    {
        "id": 53,
        "extra_id": 49,
        "name": "Size",
        "conditioned": false,
        "respect_to": null,
        "min": 1,
        "max": 1,
        "rank": 1,
        "suboptions": [
            {
                "id": 172,
                "extra_option_id": 53,
                "name": "small",
                "price": 1,
                "image": null,
                "sku": null,
                "rank": 1
            },
            ...
        ]
    },
    ... //if findAll
]