Light Mode
Cart
Below are the webhook store events paired with their respective data schema related to the Store webhook events:
Abandoned Cart Webhook Events Model
This event is triggered when an abandoned cart has been created.
{
"event":"abandoned.cart",
"merchant":1305146709,
"created_at":"Tue Jan 25 2022 13:00:27 GMT+0300",
"data":{
"id":1097962121,
"status":"active",
"currency":"SAR",
"subtotal":60,
"total_discount":10,
"totla":100,
"checkout_url":"https://salla.sa/dev-wofftr4xsra5xtlv/checkout/1097962121",
"age_in_minutes":83,
"created_at":"Tue Jan 25 2022 13:00:27 GMT+0300",
"updated_at":"Tue Jan 25 2022 13:00:27 GMT+0300",
"customer":{
"id":225167971,
"name":"User Name",
"mobile":"+977612917082",
"avatar":"https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"country":"السعودية",
"city":"الرياض",
"email":"[email protected]"
},
"coupon":{
"id":2036833834,
"code":"wizefriend",
"status":"active",
"type":"percentage",
"amount":20,
"minimum_amount":0,
"free_shipping":true,
"expiry_date":"2022-04-13 00:00:00",
"created_at":"Tue Jan 25 2022 13:00:27 GMT+0300"
},
"items_count":2,
"items":[
{
"id":1793843311,
"product_id":401511871,
"quantity":2
},
{
"id":239847784,
"product_id":64738276,
"quantity":1
}
],
"cart_history":[
{
"reminder_channel":"sms",
"is_sent":true,
"reminder_date":"Tue Jan 30 2022 13:00:27 GMT+0300",
"created_at":"Tue Jan 25 2022 13:00:27 GMT+0300"
}
]
}
}
Coupon Applied Webhook Event Model
This event is triggered when a coupon has been applied.
{
"event": "coupon.applied",
"merchant": 847769313,
"created_at": "Wed Jan 26 2022 22:38:30 GMT+0300",
"data": {
"cart": {
"id": 746780865,
"total": {
"amount": 2910,
"currency": "SAR"
},
"subtotal": {
"amount": 3000,
"currency": "SAR"
},
"total_discount": {
"amount": 100,
"currency": "SAR"
},
"checkout_url": "https://robbama.com/checkout/746780865",
"age_in_minutes": 3517,
"created_at": {
"date": "2022-01-24 12:01:24.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"updated_at": {
"date": "2022-01-26 22:38:30.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"customer": {
"id": 1448307086,
"name": "Nabil Mohammed",
"mobile": "+251944130250",
"avatar": "https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"country": "السعودية",
"city": "جدة"
},
"coupon": {
"id": 2036833834,
"code": "wizefriend",
"status": "active",
"type": "percentage",
"amount": {
"amount": 20,
"currency": "SAR"
},
"minimum_amount": {
"amount": 0,
"currency": "SAR"
},
"expiry_date": "2022-04-13 00:00:00",
"created_at": {
"date": "2022-01-24 13:47:47.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
}
},
"items": [
{
"id": 2093591642,
"product_id": 91502809,
"quantity": 2
}
]
}
}
}
Last modified: 2 months ago