WebhookEvent
Webhook event data structure
The unique identifier of the event
123e4567-e89b-12d3-a456-426614174000
Webhook event identifier
Possible values: [v1.collection.payment_request.created
, v1.collection.payment_request.paid
, v1.collection.payment_request.part_paid
, v1.collection.payment_request.cancelled
, v1.collection.payment_request.payment.created
, v1.collection.payment_request.payment.pending
, v1.collection.payment_request.payment.received
, v1.collection.payment_request.payment.completed
, v1.collection.payment_request.payment.failed
, v1.collection.payment_request.payment.reversed
, v1.collection.payment_request.payment.payout.pending_approval
, v1.collection.payment_request.payment.payout.initiated
, v1.collection.payment_request.payment.payout.paid
, v1.collection.payment_request.payment.payout.failed
]
Created at timestamp of the event
2023-10-01T12:00:00Z
The user account ID associated with the event
123e4567-e89b-12d3-a456-426614174001
relatedObject object
The related object that triggered the event
The id of the related object that caused the event
123e4567-e89b-12d3-a456-426614174002
The type of the related object that caused the event
Possible values: [collection.payment_request
, collection.payment_request.payment
, collection.payment_request.payment.payout
]
collection.payment_request
The URL of the related object that caused the event
data object
Event-specific properties. The structure varies by event type:
v1.collection.payment_request.*:
{}
v1.collection.payment_request.payment.*:
{
"paymentRequestId": "8a282576-18c0-4c0e-b158-44b92eda1afe"
}
v1.collection.payment_request.payment.payout.*:
{
"paymentRequestId": "8a282576-18c0-4c0e-b158-44b92eda1afe",
"paymentId": "9b393687-29d1-5d1f-c269-55c03fda2bfb",
"transactionReference": "TX123456789"
}
- EmptyEventData
- PaymentEventData
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"event": "v1.collection.payment_request.created",
"createdAt": "2023-10-01T12:00:00Z",
"accountId": "123e4567-e89b-12d3-a456-426614174001",
"relatedObject": {
"id": "123e4567-e89b-12d3-a456-426614174002",
"type": "collection.payment_request",
"url": "string"
}
}