This article presents possible use cases and corresponding sample flows that you can support. This can be a helpful jumping off point as you plan your implementation.
PRODUCT_OPTION, and with different product colors (choices): red, green, blue.
SWATCH_CHOICES and choice type must be ONE_COLOR.PRODUCT_OPTION, and with different product sizes (choices): S, M, L, XL.
TEXT_CHOICES and choice types must be CHOICE_TEXT.MODIFIER, in order to specify free text to be on a product.
FREE_TEXT.freeTextInput.title to "Choose text to be on shirt", and have and a range of 10-50 characters.PRODUCT_OPTION and render type SWATCH_CHOICES.
To assign a new non-existing option to a new product, you can provide the option to the Create Product request.
To create a product with new options, call Create Product and pass the name, optionRenderType, and choices:
Note that if an option with option.name already exists, it will assign the existing option to the product.
To assign a new non-existing modifier to a new product, you can provide the modifier to the Create Product request.
To create a product with new modifiers, call Create Product and pass the name, modifierRenderType, and freeTextSettings:
Note that if a modifier with modifier.name already exists, it will assign the existing modifier to the product.
To change the name of an option, which updates all products to which it is assigned, call Update Customization with the requested changes:
To delete a modifier, which removes it from any product to which it is assigned, call Delete Customization with the customizationId of the modifier you want to delete: