Open API v2 / Custom Modules / Module Item Attributes

Module Item Attributes

Every request needs a bearer token: Authorization: Bearer <token>. Base URL https://your-site.webinone.com. New to field types? See the type reference.

PUT/api/v2/admin/module-items/{id}/attributes-order#

Changes existing module item attributes sort order

Parameters
idinteger · pathrequired
Resource identifier.
Body parameters
curl -X PUT "https://your-site.webinone.com/api/v2/admin/module-items/1/attributes-order" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '["string"]'
GET/api/v2/admin/module-items/{moduleItemId}/attributes#

Retrieves a list of module item attributes by using a "where" filtering

Parameters
moduleItemIdinteger · pathrequired
Module item id.
Wherestring · query
JSON filter expression. Combine operators ($eq, $contains, $gt, $in, …) with $and / $or.
Order_Bystring · query
Sort field. Prefix with - for descending; comma-separate for tie-breakers.
Semantic_Querystring · query
Natural-language search, ranked by relevance.
Min_Scorenumber · query
Lowest relevance score to include when using Semantic_Query.
Offsetinteger · query
Number of items to skip before returning results. Defaults to 0.
Limitinteger · query
Maximum number of items to return. Defaults to 100.
Response
Idinteger
The identifier of a specific option. Options setting. Read-only.
Optionsarray of objects
The name of the option presented within the Attribute group input.
AttributeTypeenum
Attribute type. Possible values: Checkbox, Dropdown, Radiolist, UserInput.Possible values: CheckboxDropdownRadiolistUserInput
IsInventoryboolean
Allows the attribute groups options to be added to the inventory control when inventory 'variations' are generated.
Namestring
The title for the attribute group.
Requiredboolean
Turns on validation for the attribute group, enforcing the user to select one of its options before adding to the cart.
ValueTypeenum
Fixed price (currently the only option) allows attribute options to have a set price that increases the main product price when selected. Possible values: FixedPrice.Possible values: FixedPrice
curl "https://your-site.webinone.com/api/v2/admin/module-items/1/attributes" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "Items": [
    {
      "Id": 1,
      "Options": [
        {
          "Id": 1,
          "Name": "Example",
          "Image": "string",
          "OptionPrices": [
            {
              "Value": 0,
              "CurrencyCountry": "USD",
              "Currency": "USD",
              "CountryAbbriviation": "string"
            }
          ]
        }
      ],
      "AttributeType": "Checkbox",
      "IsInventory": false,
      "Name": "Example",
      "Required": false,
      "ValueType": "FixedPrice"
    }
  ],
  "TotalItemsCount": 0
}
POST/api/v2/admin/module-items/{moduleItemId}/attributes#

Creates a new module item attribute

Parameters
moduleItemIdinteger · pathrequired
Module item id.
Body parameters
AttributeTypeenumrequired
Attribute type. Possible values: Checkbox, Dropdown, Radiolist, UserInput.Possible values: CheckboxDropdownRadiolistUserInput
IsInventoryboolean
Allows the attribute groups options to be added to the inventory control when inventory 'variations' are generated.
Namestringrequired
The title for the attribute group.
Requiredboolean
Turns on validation for the attribute group, enforcing the user to select one of its options before adding to the cart.
ValueTypeenum
Fixed price (currently the only option) allows attribute options to have a set price that increases the main product price when selected. Possible values: FixedPrice.Possible values: FixedPrice
Response
Idinteger
The identifier of a specific option. Options setting. Read-only.
Optionsarray of objects
The name of the option presented within the Attribute group input.
AttributeTypeenum
Attribute type. Possible values: Checkbox, Dropdown, Radiolist, UserInput.Possible values: CheckboxDropdownRadiolistUserInput
IsInventoryboolean
Allows the attribute groups options to be added to the inventory control when inventory 'variations' are generated.
Namestring
The title for the attribute group.
Requiredboolean
Turns on validation for the attribute group, enforcing the user to select one of its options before adding to the cart.
ValueTypeenum
Fixed price (currently the only option) allows attribute options to have a set price that increases the main product price when selected. Possible values: FixedPrice.Possible values: FixedPrice
curl -X POST "https://your-site.webinone.com/api/v2/admin/module-items/1/attributes" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"AttributeType":"Checkbox","IsInventory":false,"Name":"Example","Required":false,"ValueType":"FixedPrice"}'
Response · 200
{
  "Id": 1,
  "Options": [
    {
      "Id": 1,
      "Name": "Example",
      "Image": "string",
      "OptionPrices": [
        {
          "Value": 0,
          "CurrencyCountry": "USD",
          "Currency": "USD",
          "CountryAbbriviation": "string"
        }
      ]
    }
  ],
  "AttributeType": "Checkbox",
  "IsInventory": false,
  "Name": "Example",
  "Required": false,
  "ValueType": "FixedPrice"
}
GET/api/v2/admin/module-items/attributes/{id}#

Retrieves a single module item attribute

Parameters
idinteger · pathrequired
Module item attribute id.
Response
Idinteger
The identifier of a specific option. Options setting. Read-only.
Optionsarray of objects
The name of the option presented within the Attribute group input.
AttributeTypeenum
Attribute type. Possible values: Checkbox, Dropdown, Radiolist, UserInput.Possible values: CheckboxDropdownRadiolistUserInput
IsInventoryboolean
Allows the attribute groups options to be added to the inventory control when inventory 'variations' are generated.
Namestring
The title for the attribute group.
Requiredboolean
Turns on validation for the attribute group, enforcing the user to select one of its options before adding to the cart.
ValueTypeenum
Fixed price (currently the only option) allows attribute options to have a set price that increases the main product price when selected. Possible values: FixedPrice.Possible values: FixedPrice
curl "https://your-site.webinone.com/api/v2/admin/module-items/attributes/1" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "Id": 1,
  "Options": [
    {
      "Id": 1,
      "Name": "Example",
      "Image": "string",
      "OptionPrices": [
        {
          "Value": 0,
          "CurrencyCountry": "USD",
          "Currency": "USD",
          "CountryAbbriviation": "string"
        }
      ]
    }
  ],
  "AttributeType": "Checkbox",
  "IsInventory": false,
  "Name": "Example",
  "Required": false,
  "ValueType": "FixedPrice"
}
PUT/api/v2/admin/module-items/attributes/{id}#

Updates an existing module item attribute

Parameters
idinteger · pathrequired
Existent module item attribute id.
Body parameters
AttributeTypeenumrequired
Attribute type. Possible values: Checkbox, Dropdown, Radiolist, UserInput.Possible values: CheckboxDropdownRadiolistUserInput
IsInventoryboolean
Allows the attribute groups options to be added to the inventory control when inventory 'variations' are generated.
Namestringrequired
The title for the attribute group.
Requiredboolean
Turns on validation for the attribute group, enforcing the user to select one of its options before adding to the cart.
ValueTypeenum
Fixed price (currently the only option) allows attribute options to have a set price that increases the main product price when selected. Possible values: FixedPrice.Possible values: FixedPrice
Response
Idinteger
The identifier of a specific option. Options setting. Read-only.
Optionsarray of objects
The name of the option presented within the Attribute group input.
AttributeTypeenum
Attribute type. Possible values: Checkbox, Dropdown, Radiolist, UserInput.Possible values: CheckboxDropdownRadiolistUserInput
IsInventoryboolean
Allows the attribute groups options to be added to the inventory control when inventory 'variations' are generated.
Namestring
The title for the attribute group.
Requiredboolean
Turns on validation for the attribute group, enforcing the user to select one of its options before adding to the cart.
ValueTypeenum
Fixed price (currently the only option) allows attribute options to have a set price that increases the main product price when selected. Possible values: FixedPrice.Possible values: FixedPrice
curl -X PUT "https://your-site.webinone.com/api/v2/admin/module-items/attributes/1" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"AttributeType":"Checkbox","IsInventory":false,"Name":"Example","Required":false,"ValueType":"FixedPrice"}'
Response · 200
{
  "Id": 1,
  "Options": [
    {
      "Id": 1,
      "Name": "Example",
      "Image": "string",
      "OptionPrices": [
        {
          "Value": 0,
          "CurrencyCountry": "USD",
          "Currency": "USD",
          "CountryAbbriviation": "string"
        }
      ]
    }
  ],
  "AttributeType": "Checkbox",
  "IsInventory": false,
  "Name": "Example",
  "Required": false,
  "ValueType": "FixedPrice"
}
DELETE/api/v2/admin/module-items/attributes/{id}#

Deletes an existing module item attribute

Parameters
idinteger · pathrequired
Existent module item attribute id.
curl -X DELETE "https://your-site.webinone.com/api/v2/admin/module-items/attributes/1" \
  -H "Authorization: Bearer <token>"