Audit Log Fields
Every audit log entry contains the following fields:| Field | Type | Description |
|---|---|---|
id | string | Unique audit log identifier |
actorType | string | Type of actor (admin, merchant, system) |
actorId | string | Identifier of the actor who performed the action |
action | string | The action performed (e.g., merchant.approve, withdrawal.reject) |
resourceType | string | The type of resource affected (e.g., merchant, withdrawal, settings) |
resourceId | string | Identifier of the affected resource |
ipAddress | string | IP address of the request origin |
userAgent | string | User-Agent header from the request |
timestamp | string | ISO 8601 timestamp of the event |
metadata | object | Additional context about the action (varies per action) |
List Audit Logs
Retrieve platform-wide audit logs. Requires admin authentication.Page number for pagination.
Items per page (max 100).
Filter by action type (e.g.,
merchant.approve, settings.update).Filter by resource type (e.g.,
merchant, withdrawal, settings).Filter by the actor who performed the action.
Filter by actor type. One of
admin, merchant, system.Filter logs from this date (ISO 8601).
Filter logs up to this date (ISO 8601).
Example Request
Example Response (200)
Get Audit Log Detail
The unique audit log identifier.
Example Request
Example Response (200)
Merchant-Scoped Audit Logs
Retrieve audit logs scoped to the authenticated merchant. This endpoint is available to merchants (not admin-only) and returns only logs related to the merchant’s own resources.Page number for pagination.
Items per page (max 100).
Filter by action type.
Filter by resource type.
Example Request
Example Response (200)
Error Responses
404 Not Found