Product and variation properties, such as roast level or origin, and their options. Every /properties endpoint needs the ProductProperties plugin; without it they return 403.
List properties
Returns the product and variation properties, newest first, without deleted ones. List items leave out category_id, user_helps, position, the timestamps and options: get a property for those. Needs the ProductProperties plugin: without it every /properties endpoint returns 403.
query Parameters
codes[]Returns properties whose code is one of these codes. The match is exact but ignores case. Repeat the parameter for each code (codes[]=roast&codes[]=origin); codes=roast also works for a single code.
types[]Returns properties whose type is one of these types. Repeat the parameter for each type (types[]=choice&types[]=text); types=choice also works for a single type.
limitThe number of items to return. Must be a decimal integer; any other value returns 400. There is no page size cap, but large pages take longer: follow the next link to read a long list.
offsetThe number of items to skip. Must be a decimal integer; any other value returns 400.
List properties › Responses
A page of properties.
Create a property
Creates a property in a category. Needs the ProductProperties plugin.
type,category_id,multichoice,property_of_productandproperty_of_variationcan only be set here; PUT ignores them.- Sending
property_of_product: falseneedsproperty_of_variation: true, else400. multichoice: truewithtype: booleanreturns400.- A
booleanproperty gets its two options (yes and no) automatically. Its options, and those of anoption_groupproperty, can't be changed through the API.
Create a property › Request Body
The property's name per language. Each element needs a non-empty name.
typeThe property's value type. boolean, option_group, numeric, date and datetime values are not localized; the others are.
category_idThe category to create the property in. It must exist and not be deleted.
codeYour own code for the property.
property_of_productWhether products can have the property. If you send neither this nor property_of_variation, the property is for products.
property_of_variationWhether variations can have the property.
multichoiceWhether a product or variation can have more than one option. Can't be true for boolean.
publicfilterdefault_propertypositionThe sort position. If you leave it out, the property gets the next free number.
Help texts for the shop's admin users per language.
Create a property › Responses
The created property.
hrefThe URL of the request.
The property, as the only element.
Get a property
Returns one property with its options. Needs the ProductProperties plugin.
path Parameters
property-idThe property's id.
Get a property › Responses
The property.
hrefThe URL of the request.
The property, as the only element.
Update a property
Updates the fields you send and keeps the others. In names and user_helps, languages you leave out keep their stored values. type, category_id, multichoice, property_of_product and property_of_variation can't be changed. Needs the ProductProperties plugin.
path Parameters
property-idThe property's id.
Update a property › Request Body
Names to add or change, one element per language. Languages you leave out keep their stored values. A language the property has no name for yet needs a non-empty name.
codepublicfilterdefault_propertypositionHelp texts to add or change, one element per language.
Update a property › Responses
The updated property.
hrefThe URL of the request.
The property, as the only element.
Delete a property
Deletes the property permanently, with its options and the values products and variations have for it. The response shows the property as it was. Needs the ProductProperties plugin.
path Parameters
property-idThe property's id.
Delete a property › Responses
The deleted property.
hrefThe URL of the request.
The property, as the only element.
List property options
Returns the property's options, newest first. Needs the ProductProperties plugin.
path Parameters
property-idThe property's id.
query Parameters
limitThe number of items to return. Must be a decimal integer; any other value returns 400. There is no page size cap, but large pages take longer: follow the next link to read a long list.
offsetThe number of items to skip. Must be a decimal integer; any other value returns 400.
List property options › Responses
A page of options.
Create a property option
Adds an option to a property. The body depends on the property's type:
text,short_text,link,wysiwyg,choice,date,datetime:values, an array of{language, value}. Languages you leave out get an empty value.range:valuesas{min_value, max_value}.numeric:value, an integer.
Options of boolean and option_group properties can't be changed: POST, PUT and DELETE return 403. Adding
an option also updates the property's modified_at. Needs the ProductProperties plugin.
path Parameters
property-idThe property's id.
Create a property option › Request Body
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: values | |
| type = object · requires: values | |
| type = object · requires: value |
The option's value per language. Each language must be one the shop uses, else 400. Languages you leave out get an empty value, also on PUT.
Create a property option › Responses
The created option.
hrefThe URL of the request.
The option, as the only element.
Get a property option
Returns one option of the property. Needs the ProductProperties plugin.
path Parameters
property-idThe property's id.
option-idThe option's id. An unknown option, or an option of another property, returns 404.
Get a property option › Responses
The option.
hrefThe URL of the request.
The option, as the only element.
Update a property option
Replaces the option's value. The body has the same shape as in Create a property option. Send every language: languages you leave out from values become empty. Options of boolean and option_group properties can't be changed (403). Needs the ProductProperties plugin.
path Parameters
property-idThe property's id.
option-idThe option's id. An unknown option, or an option of another property, returns 404.
Update a property option › Request Body
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: values | |
| type = object · requires: values | |
| type = object · requires: value |
The option's value per language. Each language must be one the shop uses, else 400. Languages you leave out get an empty value, also on PUT.
Update a property option › Responses
The updated option.
hrefThe URL of the request.
The option, as the only element.
Delete a property option
Deletes the option permanently, with the values products and variations have for it. The response shows the option as it was. Options of boolean and option_group properties can't be deleted (403). Needs the ProductProperties plugin.
path Parameters
property-idThe property's id.
option-idThe option's id. An unknown option, or an option of another property, returns 404.
Delete a property option › Responses
The deleted option.
hrefThe URL of the request.
The option, as the only element.