curl --location 'https://api.nomba.com/v1/webhooks/event-logs' \
--header 'Authorization: Bearer <token> \
--header 'Content-Type: application/json' \
--header 'accountId: <accountId>' \
--data '{
        "coreUserId": "6703XXXd1-158a-42XX-8f0b-XXXXXXXXX",
        "limit": 1,
        "eventType": "payment_success",
        "startDateTime": "2025-03-03",
        "endDateTime": "2025-03-12"
   }'
{
    "code": "200",
    "description": "Webhook events fetched successfully",
    "data": {
        "list": [
            {
                "webhookUrl": "https://hip-namsj.preme.ngrok-free.app/api/v1/nomba-hook",
                "eventId": 257,
                "eventType": "payment_success",
                "hookRequestId": "ff99274c-58f7-4da4-b20f-XXXXXXXX",
                "responsePayload": "This URL has no default content configured. <a href=\"https://webhook.site/#!/edit/7604-6372-41ee-8f89-d28b8d21944b\">Change response in Webhook.site</a>.",
                "responseHttpStatus": 200
            },
        ],
        "pageToken": "MjEyOTY3MThzM2NyM3Q="
    }
}

POST /v1/webhooks/event-logs

Request Body

coreUserId
string
required

Unique identifier of the user for whom the event logs are being requested.

limit
number
required

The maximum number of event logs to retrieve.

eventType
string
required

The type of webhook event to filter for (e.g. payment_success).

startDateTime
string
required

The start date (in YYYY-MM-DD format) for filtering event logs.

endDateTime
string
required

The end date (in YYYY-MM-DD format) for filtering event logs.

Response Body

code
string
required

Response code indicating the status of the request.

description
string
required

Description of the response.

data
object
required
list
array
required

An array of webhook event logs.

webhookUrl
string
required

The URL to which the webhook was sent.

eventId
number
required

Unique identifier of the webhook event.

eventType
string
required

The type of the webhook event.

hookRequestId
string
required

Unique identifier for the specific webhook request.

responsePayload
string
required

The response received from the webhook URL.

responseHttpStatus
number
required

HTTP status code returned by the webhook URL.

pageToken
string

Token to retrieve the next page of results, if available.

curl --location 'https://api.nomba.com/v1/webhooks/event-logs' \
--header 'Authorization: Bearer <token> \
--header 'Content-Type: application/json' \
--header 'accountId: <accountId>' \
--data '{
        "coreUserId": "6703XXXd1-158a-42XX-8f0b-XXXXXXXXX",
        "limit": 1,
        "eventType": "payment_success",
        "startDateTime": "2025-03-03",
        "endDateTime": "2025-03-12"
   }'
{
    "code": "200",
    "description": "Webhook events fetched successfully",
    "data": {
        "list": [
            {
                "webhookUrl": "https://hip-namsj.preme.ngrok-free.app/api/v1/nomba-hook",
                "eventId": 257,
                "eventType": "payment_success",
                "hookRequestId": "ff99274c-58f7-4da4-b20f-XXXXXXXX",
                "responsePayload": "This URL has no default content configured. <a href=\"https://webhook.site/#!/edit/7604-6372-41ee-8f89-d28b8d21944b\">Change response in Webhook.site</a>.",
                "responseHttpStatus": 200
            },
        ],
        "pageToken": "MjEyOTY3MThzM2NyM3Q="
    }
}