Skip to main content
Use this endpoint to retrieve a log of every webhook delivery attempt Shogun has made to your registered endpoint. Each log entry includes the event type, delivery status, the payload that was sent, and the response your server returned. This is the primary tool for debugging missed or failed event deliveries.

Endpoint

POST /api/v1/customer/web/fetch_webhook_logs

Authentication

All requests must include a valid Dashboard Bearer token in the Authorization header.
HeaderTypeRequiredDescription
AuthorizationstringYesBearer <token> — obtain from Login
Content-TypestringYesapplication/json

Request Body

filters
object
required
An object of filter criteria to scope the logs returned. At least one filter field is recommended to avoid retrieving the entire unscoped log.

Example Request Body

{
  "filters": {
    "status": "failed",
    "event": "inflow.received"
  }
}

Response

A successful response returns an array of webhook delivery log entries matching your filter criteria.
FieldTypeDescription
idstring (uuid)Unique identifier for this log entry
eventstringThe event type that triggered the delivery attempt
statusstringDelivery outcome: success or failed
attemptintegerNumber of delivery attempts made for this event
payloadobjectThe JSON payload that was sent to your endpoint
response_bodystringThe response body your endpoint returned
response_status_codeintegerHTTP status code your endpoint responded with
created_atstring (ISO 8601)Timestamp when the delivery was attempted

Success

{
  "status": true,
  "response_code": "00",
  "message": "Success",
  "data": {
    "filters": {
      "logs": [
        {
          "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "event": "inflow.received",
          "status": "failed",
          "attempt": 3,
          "payload": {
            "event": "inflow.received",
            "account_number": "7801234567",
            "amount": "5000.00"
          },
          "response_body": "Internal Server Error",
          "response_status_code": 500,
          "created_at": "2026-04-25T14:30:00Z"
        }
      ]
    }
  }
}

Example

curl --request POST \
  --url https://baasapi.payrepmfb.com/api/v1/customer/web/fetch_webhook_logs \
  --header 'Authorization: Bearer <your_dashboard_token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "filters": {
      "status": "failed",
      "event": "inflow.received"
    }
  }'