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
| Name | Type | Description |
|---|---|---|
input.first | Int | Page size, 1–100. Defaults to 25. |
input.after | String | The 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.sortDesc | Boolean | Deliveries are sorted by creation time. Newest first when true. Defaults to true. |
Returns
| Field | Type | Description |
|---|---|---|
totalCount | Int! | How many deliveries match your filter, across every page. |
pageInfo | PageInfo! | hasNextPage tells you whether to keep going; endCursor is what you pass as after. |
edges[].node | WebhookLog | One WebhookLog per edge, with its cursor beside it. The WebhookLog fields follow. |
Each WebhookLog node
| Field | Type | Description |
|---|---|---|
id | ID! | The delivery id, a UUID. Pass it to webhookLog. |
configId | ID | The endpoint it was sent to. A deleted endpoint keeps its id here. |
eventType | EventType! | The event that was sent. |
status | WebhookLogStatus! | The outcome. Values below. |
associatedOrderId | ID | The order this delivery is about, when there is one. |
customerId | ID | The customer concerned, when there is one. |
associatedTransactionId | ID | The transaction this delivery is about, when there is one. |
payload | JSON | The JSON body sent to your endpoint. Keys under Event payloads. Payloads keep internal names, such as payment method CC. |
deliveryUrl | String | URL the latest send was delivered to. Null until a send completes. |
durationMs | Int | Milliseconds 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. |
responseBody | String | The response body your endpoint returned for the latest send. Long bodies can be truncated. Null until a send completes. |
responseStatusCode | Int | HTTP status your endpoint returned for the latest send. Null until a send completes, or if your endpoint never responded. |
isMock | Boolean! | Whether it was a test delivery. |
scheduledFor | DateTime! | When delivery was scheduled. |
sentAt | DateTime | When it was sent. Null until it is. |
createdAt | DateTime! | 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 } }
}
}{
"input": {
"first": 5,
"statuses": [
"FAILED"
],
"sortDesc": true
}
}{
"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
| Name | Type | Description |
|---|---|---|
id | ID!required | The delivery id, a UUID. |
Returns
| Field | Type | Description |
|---|---|---|
id | ID! | The delivery id. |
configId | ID | The endpoint it was sent to. |
eventType | EventType! | The event that was sent. |
status | WebhookLogStatus! | SUCCESS, FAILED, SCHEDULED, PROCESSING, or CANCELED. |
associatedOrderId | ID | The order this delivery is about. |
customerId | ID | The customer concerned. |
associatedTransactionId | ID | The transaction this delivery is about. |
payload | JSON | The JSON body delivered to your endpoint. A contract in a payload is an order. Payloads keep internal names, such as payment method CC. |
deliveryUrl | String | URL the latest send was delivered to. Null until a send completes. |
durationMs | Int | Milliseconds 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. |
responseBody | String | The response body your endpoint returned for the latest send. Long bodies can be truncated. Null until a send completes. |
responseStatusCode | Int | HTTP status your endpoint returned for the latest send. Null until a send completes, or if your endpoint never responded. |
isMock | Boolean! | Whether it was a test delivery. |
scheduledFor | DateTime! | When delivery was scheduled. |
sentAt | DateTime | When it was sent (null if not yet). |
createdAt | DateTime! | When the record was created. |
Example
query WebhookLog($id: ID!) {
webhookLog(id: $id) {
id eventType status associatedOrderId sentAt deliveryUrl responseStatusCode responseBody durationMs
payload
}
}{
"id": "8c2e41d7-0000-4000-8000-000000004802"
}{
"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
| Value | Meaning |
|---|---|
SCHEDULED | Queued for delivery. |
PROCESSING | Being delivered now. |
SUCCESS | Your endpoint acknowledged it with a 2xx. |
FAILED | Your 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. |
CANCELED | Delivery was canceled before it was sent. |