orders.read, products.read)

payload contains the event data that Salla sends:| Field | Type | Description |
|---|---|---|
event | string | Event name (e.g., order.created, product.updated) |
merchant | number | Merchant ID who installed your app |
created_at | string | ISO timestamp when the event occurred |
data | object | Event-specific data (order, product, customer, etc.) |
{
"event": "order.created",
"merchant": '123456',
"created_at": "2024-03-24T10:30:00Z",
"data": {
"id": 789,
"status": "pending",
"total": 299.99
}
}The payload is diffrenet for each event/action, you can find the schema of each event/action in Merchants Events or Customers Events pages
settings contains your app's configuration values that you define in the Partner Portal:{
"apiKey": "your-api-key",
"webhookUrl": "https://api.example.com/webhook",
"syncEnabled": true
}

order-status-webhook-notifier| Category | Examples |
|---|---|
| Orders | created, updated, cancelled, refunded |
| Products | added, updated, deleted, quantity low |
| Customers | created, updated, login, OTP request |
| Shipments | creating, created, cancelled, updated |
| And many more... | brands, categories, coupons, reviews |

context object with payload, settings and merchant objectsasync/await for asynchronous operationssuccess status



Response object with .success or .setError. You can find all the information about handling responses in 🤝 Understanding App Function Responsesconsole.log() for debugging, but avoid logging sensitive data.