Save Availability Notifications Settings
POST
v1/products/notifications/settings/Save settings for availability notifications.
Request
An Access Token is a unique string that represents the authorization granted to a client (Partner application) by a user (Merchant or Store Manager) to access their protected resources. It is part of the OAuth 2.0 standard and is used to authenticate API requests on behalf of the user. Access Tokens have a limited lifespan and must be used within their validity period. Once expired, a new Access Token can be obtained using a Refresh Token. Access Tokens should be treated as sensitive information and must be kept secure to prevent unauthorized access to the user's data. If you do not have an Access-Token
, but have the older alternative instead, i.e., the X-Manager-Token
, then see the instructions here on how to obtain the Access-Token
.
Role of the user.
The Media Type of the body of the request. This is used to describe the structure of the data in the body.
The unit of time used to define the delay before sending the availability notification.
The value of the delay time, combined with delay_unit, to define the total delay period before sending the availability notification.
The content of the email notification to be sent to the customer when the product is back in stock.
Email text in Arabic.
Email text in English.
The title of the email notification to be sent to the customer when the product is back in stock.
Email title in Arabic.
Email title in English.
{
"delay_unit": "minute",
"delay_value": 50,
"email_text": {
"ar": "عزيزنا {customer_name}، تم توفر {product_name} في المتجر، بإمكانك طلبه الآن \\n{product_url}",
"en": "Dear {customer_name}، {product_name} is now back in stock, you can order it now \\n{product_url}"
},
"email_title": {
"ar": "السلام عليكم",
"en": "Hi"
}
}
Request samples
Responses
{}