Skip to main content

Create option group

POST 

/api/v2/catalog/options

Create a new option group for a given business or product

You must provide either a business_id or a product_id

Request

Body

required

    anyOf

    business_id uuidrequired

    Business ID to associate the group with

    name stringrequired

    Possible values: non-empty

    Name of the product option group

    options

    object[]

  • Array [

  • name stringrequired

    Possible values: non-empty

    Name of the product option

    price decimalrequired

    Default value: 0

    The additional price of the option, can be 0 or negative

    sku stringnullable

    The SKU of the option

    ref_code stringnullable

    The reference code of the option

    available boolean

    Default value: true

    Mark the option as not available

  • ]

  • order integer

    Default value: 0

    Used to order the item, order defaults to ascending.

Responses

Schema

    id stringrequired

    Possible values: >= 12 characters and <= 12 characters, Value must match regular expression ^[0-9a-z]+$

    Unique ID of the product option group

    name stringrequired

    Possible values: non-empty

    Name of the product option group

    business_id uuid

    Business id linked to the group

    options

    object[]

    required

  • Array [

  • name stringrequired

    Possible values: non-empty

    Name of the product option

    price decimalrequired

    Default value: 0

    The additional price of the option, can be 0 or negative

    sku stringnullable

    The SKU of the option

    ref_code stringnullable

    The reference code of the option

    available boolean

    Default value: true

    Mark the option as not available

  • ]

  • order integerrequired

    Default value: 0

    Used to order the item, order defaults to ascending.

    created_at date-timerequired
    updated_at date-timerequired
Loading...