Insert Custom Options to a Product
POST
v1/products/{product_id}/custom_options_fields/Adds custom options to a product, allowing customers to choose from a predefined set of options while making a purchase. Custom options can be used to offer choices such as gift wrapping, warranty options, or other additional services.
Request
The unique identifier for the product.
The Authorization token is a unique key given to the third-party application (Partner) by Zid. It is used to authenticate the API requests made by the Partner application. The token verifies the partner's identity and ensures they have permission to access Zid's API but does not provide any specific user or store information. It should be included in the header of API requests when the partner application needs to access Zid's API.
This token is used to authenticate and access information related to the store. It is obtained through an OAuth mechanism and is required to perform operations on the store's data. The X-Manager-Token
should be included in the header of API requests that require store-related information.
Preferred language for the response. Defaults to en
if not specified.
Unique identifier of the store.
This represents the label or title of the custom option for the product. It is an object that can contain multiple language translations for the label.
The label in Arabic.
A list of available options (choices) for the custom product feature. Each option can have multiple translations and an associated price.
The choice or option name in Arabic.
The choice or option name in English.
The price associated with this option. It should be provided as a string to ensure proper formatting.
This provides additional information or guidance about the custom option, often used as a tooltip or additional label for users.
The hint or guidance text in Arabic.
The hint or guidance text in English.
{
"label": {
"ar": "خيار مخصص"
},
"choices": [
{
"ar": "اختيار 1",
"en": "Option 1",
"price": "50.00"
}
],
"hint": {
"ar": "يرجى اختيار الخيار المناسب",
"en": "Please select a suitable option"
}
}