> ## Documentation Index
> Fetch the complete documentation index at: https://docs.transaction.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhook Logs

> Get webhook delivery logs

Get webhook delivery logs for monitoring and debugging.

<ParamField path="page" type="integer">
  Page number
</ParamField>

<ParamField path="limit" type="integer">
  Items per page
</ParamField>

<ParamField path="status" type="integer">
  HTTP status code filter
</ParamField>

<ParamField path="paymentId" type="string">
  Filter by payment ID
</ParamField>

<ParamField path="startDate" type="string">
  Start date filter (ISO string)
</ParamField>

<ParamField path="endDate" type="string">
  End date filter (ISO string)
</ParamField>

<ResponseField name="success" type="boolean">
  Indicates if the request was successful
</ResponseField>

<ResponseField name="data.logs" type="array">
  Array of webhook log objects
</ResponseField>

<ResponseField name="data.pagination" type="object">
  Pagination information
</ResponseField>

## Example Request

```bash theme={null}
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

```json theme={null}
{
  "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

<ResponseExample name="Unauthorized">
  ```json theme={null}
  {
    "success": false,
    "error": {
      "status": 401,
      "code": "UNAUTHORISED",
      "message": "Invalid API key"
    },
    "data": null
  }
  ```
</ResponseExample>
