Insert Custom User-Input Fields to a Product
POST
v1/products/{product_id}/custom_user_input_fields/Adds custom user-input fields to a product, allowing customers to provide additional information while making a purchase. Custom user input fields can be used to collect data such as personalization details, gift messages, or special instructions.
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.
Unique identifier of the store.
Defines the type of input field that will be added to the product. This can represent different types of input fields such as text boxes, number fields, or dropdowns.
Represents the price associated with this custom user input field.
Additional information or guidance related to the custom input field. It's often used as a tooltip or helper text for the user.
The hint in English.
The hint in Arabic.
The label or title of the custom input field, often displayed as the field name.
The label in Arabic.
The label in English.
{
"type": "text",
"price": "100.00",
"hint": {
"en": "Please enter the desired value.",
"ar": "يرجى إدخال القيمة المطلوبة"
},
"label": {
"ar": "نص مخصص",
"en": "Custom Text"
}
}