Availability Notifications Settings
GET
v1/products/notifications/settings/Retrieve current 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.
Email address of the customer.
Language preference of the customer.
{
"email": "test@test.com",
"language": "ar"
}
Request samples
Responses
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.
The title of the email notification to be sent to the customer when the product is back in stock.
This parameter is used to specify any coupon code that might be included in the email. If there is no coupon code, it will be set to null.
{
"settings": {
"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"
},
"coupon_code": null
}
}