curl --location --request GET 'https://api.zid.sa/v1/managers/store/abandoned-carts/notifications/merchant-validate-messages' \
--header 'Authorization: {{Autherization}}' \
--header 'Store-ID: {{StoreId}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"test_data": {
"email": "customer@example.com",
"phone": "966501234567",
"whatsapp_phone": "966501234567"
},
"notification_settings": {
"type": "abandoned_cart_notifications",
"id": "123",
"title": "Abandoned cart reminder",
"settings": {
"support_multilanguage": true,
"email": {
"is_active": true,
"content": [
{
"lang": "en",
"subject": "You left items in your cart",
"message": "Complete your purchase before your cart expires."
}
]
},
"sms": {
"is_active": true,
"content": [
{
"lang": "en",
"message": "You still have items waiting in your cart."
}
]
},
"whatsapp": {
"is_active": true,
"content": [
{
"lang": "en",
"message": "Complete your order from your abandoned cart."
}
]
},
"extra_data": {
"type": "manually",
"save_as_draft": false,
"discount": {
"coupon_id": 123,
"code": "CART10",
"discount_type": "percentage",
"discount": 10,
"free_shipping": false
},
"receiver_name": {
"use_customer_name": true,
"fixed_name": "Customer"
},
"trigger": {
"cart_total": 100,
"phase": [
"first_reminder"
]
}
}
}
}
}'