Skip to main content
POST
/
v2
/
giftcards
/
audit-logs
/
export
Export Audit Logs
curl --request POST \
  --url https://api.loyalty.dog/v2/giftcards/audit-logs/export \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "format": "csv",
  "merchantId": "<string>",
  "subjectId": "<string>",
  "actorId": "<string>",
  "subjectName": "<string>",
  "actorName": "<string>",
  "merchantName": "<string>",
  "actions": [
    "<string>"
  ],
  "resourceTypes": [
    "<string>"
  ],
  "fromDate": "2023-11-07T05:31:56Z",
  "toDate": "2023-11-07T05:31:56Z"
}
'
{
  "taskId": "<string>",
  "status": "<string>",
  "downloadUrl": "<string>",
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

JWT access token obtained from POST /v2/token.

Headers

X-Eposn-Merchant-Token
string | null

Body

application/json
format
string
default:csv
merchantId
string | null
subjectId
string | null
actorId
string | null
subjectName
string | null
actorName
string | null
merchantName
string | null
actions
string[] | null
resourceTypes
string[] | null
fromDate
string<date-time> | null
toDate
string<date-time> | null

Response

Successful Response

taskId
string
required
status
string
required
downloadUrl
string | null
error
string | null