Light Mode
Customer
Below are the webhook store events paired with their respective data schema related to the Customer webhook events:
Customer Webhook Events Model
The following includes 3 customer webhook events that share the same model, which are mentioned in the event
enum value under the Data Schema tab
{
"event": "customer.login",
"merchant": 1305146709,
"created_at": "Tue Jan 25 2022 12:36:49 GMT+0300",
"data": {
"id": 225167971,
"first_name": "User",
"last_name": "Mohammed",
"mobile": 555555555,
"mobile_code": "+966",
"email": "[email protected]",
"urls": {
"customer": "https://salla.sa/dev-wofftr4xsra5xtlv/profile",
"admin": "https://s.salla.sa/customers/l7mYBdgXA9xJwWZRZK8WD42GNkZbjvRO"
},
"avatar": "https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"gender": "female",
"birthday": {
"date": "1997-06-03 00:00:00.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"city": "الرياض",
"country": "السعودية",
"country_code": "SA",
"currency": "AED",
"location": "14",
"updated_at": {
"date": "2022-01-24 14:26:55.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
}
}
}
Customers OTP (One-Time Password) Webhook Event Model
This event is triggered when a customer's One-Time Password has been requested.
:::warning[Important Note]
This webhook event will only be triggered if both the email and SMS attempts to send the OTP to the customer have failed.
:::
{
"event": "customer.otp.request",
"merchant": 1029864349,
"created_at": "Wed Jun 30 2021 12:09:11 GMT+0300",
"data": {
"code": "5331",
"contact": "+96652318526"
}
}
Last modified: 2 months ago
Customer Webhook Events Model
Customers OTP (One-Time Password) Webhook Event Model