Webhook logswebhookLogs
HelpStatusOpen portal

Webhook logs

Every event Payva has sent, or scheduled to send, to your endpoints, with the payload and latest send result. When a webhook seems to be missing, this is where you look first.

webhookLogsQuery

Your webhook delivery history. Filter by event type and status; paginate.

Filter statuses to FAILED to find what your endpoint did not acknowledge, then inspect the latest response status, body, delivery URL and duration. isMock marks test deliveries fired from the portal.

POST/graphql

webhookLogs(input: WebhookLogsInput): WebhookLogConnection!

Arguments

NameTypeDescription
input.firstIntPage size, 1–100. Defaults to 25.
input.afterStringThe endCursor from the previous page. Omit it for the first page.
input.eventTypes[EventType!]Only these event types. Values under Webhooks.
input.statuses[WebhookLogStatus!]SUCCESS, FAILED, SCHEDULED, PROCESSING or CANCELED.
input.sortDescBooleanDeliveries are sorted by creation time. Newest first when true. Defaults to true.

Returns

FieldTypeDescription
totalCountInt!How many deliveries match your filter, across every page.
pageInfoPageInfo!hasNextPage tells you whether to keep going; endCursor is what you pass as after.
edges[].nodeWebhookLogOne WebhookLog per edge, with its cursor beside it. The WebhookLog fields follow.

Each WebhookLog node

FieldTypeDescription
idID!The delivery id, a UUID. Pass it to webhookLog.
configIdIDThe endpoint it was sent to. A deleted endpoint keeps its id here.
eventTypeEventType!The event that was sent.
statusWebhookLogStatus!The outcome. Values below.
associatedOrderIdIDThe order this delivery is about, when there is one.
customerIdIDThe customer concerned, when there is one.
associatedTransactionIdIDThe transaction this delivery is about, when there is one.
payloadJSONThe JSON body sent to your endpoint. Keys under Event payloads. Payloads keep internal names, such as payment method CC.
deliveryUrlStringURL the latest send was delivered to. Null until a send completes.
durationMsIntMilliseconds the latest send took, measured from when it started processing. Null until a send completes, or when the duration is unknown or exceeds 95 seconds.
responseBodyStringThe response body your endpoint returned for the latest send. Long bodies can be truncated. Null until a send completes.
responseStatusCodeIntHTTP status your endpoint returned for the latest send. Null until a send completes, or if your endpoint never responded.
isMockBoolean!Whether it was a test delivery.
scheduledForDateTime!When delivery was scheduled.
sentAtDateTimeWhen it was sent. Null until it is.
createdAtDateTime!When the delivery record was created.

Example

query WebhookLogs($input: WebhookLogsInput) {
  webhookLogs(input: $input) {
    totalCount
    edges { node { id eventType status associatedOrderId deliveryUrl responseStatusCode responseBody durationMs scheduledFor sentAt isMock } }
  }
}
Variables
{
  "input": {
    "first": 5,
    "statuses": [
      "FAILED"
    ],
    "sortDesc": true
  }
}
Response
{
  "data": {
    "webhookLogs": {
      "totalCount": 8,
      "edges": [
        {
          "node": {
            "id": "8c2e41d7-0000-4000-8000-000000004801",
            "eventType": "PAYMENT_SUCCESS",
            "status": "FAILED",
            "associatedOrderId": "100235",
            "deliveryUrl": "https://hooks.payva.example/payva",
            "responseStatusCode": 500,
            "responseBody": "temporary failure",
            "durationMs": 412,
            "scheduledFor": "2026-07-22T18:00:00Z",
            "sentAt": "2026-07-22T18:00:04Z",
            "isMock": false
          }
        }
      ]
    }
  }
}

webhookLogQuery

Fetch one delivery by id, with its payload and latest send result. Null when the id isn’t found on your account.

The place to debug a single failed delivery: the latest HTTP status, response body, delivery URL and duration are available with the exact payload that was posted.

POST/graphql

webhookLog(id: ID!): WebhookLog

Arguments

NameTypeDescription
idID!requiredThe delivery id, a UUID.

Returns

FieldTypeDescription
idID!The delivery id.
configIdIDThe endpoint it was sent to.
eventTypeEventType!The event that was sent.
statusWebhookLogStatus!SUCCESS, FAILED, SCHEDULED, PROCESSING, or CANCELED.
associatedOrderIdIDThe order this delivery is about.
customerIdIDThe customer concerned.
associatedTransactionIdIDThe transaction this delivery is about.
payloadJSONThe JSON body delivered to your endpoint. A contract in a payload is an order. Payloads keep internal names, such as payment method CC.
deliveryUrlStringURL the latest send was delivered to. Null until a send completes.
durationMsIntMilliseconds the latest send took, measured from when it started processing. Null until a send completes, or when the duration is unknown or exceeds 95 seconds.
responseBodyStringThe response body your endpoint returned for the latest send. Long bodies can be truncated. Null until a send completes.
responseStatusCodeIntHTTP status your endpoint returned for the latest send. Null until a send completes, or if your endpoint never responded.
isMockBoolean!Whether it was a test delivery.
scheduledForDateTime!When delivery was scheduled.
sentAtDateTimeWhen it was sent (null if not yet).
createdAtDateTime!When the record was created.

Example

query WebhookLog($id: ID!) {
  webhookLog(id: $id) {
    id eventType status associatedOrderId sentAt deliveryUrl responseStatusCode responseBody durationMs
    payload
  }
}
Variables
{
  "id": "8c2e41d7-0000-4000-8000-000000004802"
}
Response
{
  "data": {
    "webhookLog": {
      "id": "8c2e41d7-0000-4000-8000-000000004802",
      "eventType": "PAYMENT_SUCCESS",
      "status": "SUCCESS",
      "associatedOrderId": "100235",
      "sentAt": "2026-07-22T18:00:04Z",
      "payload": {
        "event": "PAYMENT_SUCCESS",
        "event_type": "Cleared Payment",
        "plan_id": "100235",
        "transaction_id": "6d0b5e3a-0000-4000-8000-000000004471",
        "payment_amount": "900.00",
        "payment_status": "CLEARED"
      },
      "deliveryUrl": "https://hooks.payva.example/payva",
      "responseStatusCode": 200,
      "responseBody": "received",
      "durationMs": 412
    }
  }
}

Types

WebhookLogStatusEnum

ValueMeaning
SCHEDULEDQueued for delivery.
PROCESSINGBeing delivered now.
SUCCESSYour endpoint acknowledged it with a 2xx.
FAILEDYour endpoint returned a non-2xx status, hit the hard 35-second response deadline, or had a network error. A failed delivery is not retried automatically.
CANCELEDDelivery was canceled before it was sent.