Skip to main content
GET
/
merchant
/
webhook-logs
{
  "success": false,
  "error": {
    "status": 401,
    "code": "UNAUTHORISED",
    "message": "Invalid API key"
  },
  "data": null
}
Get webhook delivery logs for monitoring and debugging.
page
integer
Page number
limit
integer
Items per page
status
integer
HTTP status code filter
paymentId
string
Filter by payment ID
startDate
string
Start date filter (ISO string)
endDate
string
End date filter (ISO string)
success
boolean
Indicates if the request was successful
data.logs
array
Array of webhook log objects
data.pagination
object
Pagination information

Example Request

curl -X GET "https://api.transaction.gg/merchant/webhook-logs?page=1&limit=10&status=200" \
  -H "Authorization: Bearer sk_your_secret_key"

Example Response

{
  "success": true,
  "data": {
    "logs": [
      {
        "id": "log_uuid",
        "createdAt": "2024-01-01T00:00:00Z",
        "paymentId": "pay_abc123def456",
        "endpoint": "https://mystore.com/webhook",
        "status": 200,
        "request": {
          "method": "POST",
          "headers": {...},
          "body": {...}
        },
        "response": {
          "status": 200,
          "headers": {...},
          "body": "OK"
        }
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 10,
      "total": 100
    }
  }
}

Error Responses

{
  "success": false,
  "error": {
    "status": 401,
    "code": "UNAUTHORISED",
    "message": "Invalid API key"
  },
  "data": null
}