Light Mode
Audit
GET
/audit/logsLast modified: 14 hours ago
Request
Query Params
from
string
optional
to
string
optional
employee
integer
optional
user id
sort_by
enum<string>
optional
Allowed values:
ascdesc
products[]
array[string]
optional
Example:
["product.created","product.updated","product.deleted","product.status.changed.hidden","product.status.changed.sale"]
customers[]
array[string]
optional
Example:
["customer.created","customer.updated","customer.unbanned","customer.banned","customer.add.to.group","customer.group.created","customer.group.updated"]
filtering
boolean
optional
Example:
true
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
status
integer
required
success
boolean
required
data
array [object {5}]
required
id
integer
required
event
string
required
user
object
required
created_at
string
required
entity
object
required
Example
{
"status": 200,
"success": true,
"data": [
{
"id": 46179442,
"event": "product.updated",
"user": {
"id": 123123,
"name": "الامين يوسف",
"email": "[email protected]",
"role": "موظف"
},
"created_at": "2024-10-14 11:53:55",
"entity": {
"type": "products",
"name": "مخدة ميرال الفندقية",
"link": "https://s.salla.test/products/zzzzzzzz"
}
},
{
"id": 46179442,
"event": "customer.updated",
"user": {
"id": 123123,
"name": "الامين يوسف",
"email": "[email protected]",
"role": "موظف"
},
"created_at": "2024-10-14 11:53:55",
"entity": {
"type": "customers",
"name": "xxxxx",
"link": "https://s.salla.test/products/xxxxx"
}
}
]
}
Last modified: 14 hours ago