Skip to main content
GET
/
v2
/
giftcards
/
audit-logs
Query Audit Logs
curl --request GET \
  --url https://api.loyalty.dog/v2/giftcards/audit-logs \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "<string>",
      "action": "<string>",
      "resourceType": "<string>",
      "actorType": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "resourceId": "<string>",
      "actorId": "<string>",
      "subjectId": "<string>",
      "merchantId": "<string>",
      "ipAddress": "<string>",
      "userAgent": "<string>",
      "requestId": "<string>",
      "details": {},
      "actorName": "<string>",
      "subjectName": "<string>",
      "merchantName": "<string>",
      "resourceName": "<string>"
    }
  ],
  "total": 123,
  "page": 123,
  "pages": 123,
  "limit": 123
}

Authorizations

Authorization
string
header
required

JWT access token obtained from POST /v2/token.

Headers

X-Eposn-Merchant-Token
string | null

Query Parameters

merchantId
string | null
subjectId
string | null
actorId
string | null
subjectName
string | null
actorName
string | null
merchantName
string | null
action
string[] | null
resourceType
string[] | null
from
string<date-time> | null
to
string<date-time> | null
page
integer
default:1
Required range: x >= 1
limit
integer
default:50
Required range: 1 <= x <= 200

Response

Successful Response

items
AuditLogResponse · object[]
required
total
integer
required
page
integer
required
pages
integer
required
limit
integer
required