Skip to Content
Docs
Refunds

Refund events

WEBHOOKrefund.*

Pay.com sends these events to your webhook endpoints when a refund changes. Each one carries the refund as it was at that moment. To add an endpoint and check signatures, see Webhooks.

Events

refund.succeeded
A refund for a charge was successfully created.
refund.failed
The refund request has failed.
refund.pending
The refund request was created.
refund.updated
The refund was updated.

Each event

idstring
The event’s id, starting evt_.
resourcestring
Always event.
typestring
One of the events above, such as refund.succeeded.
createdstring
When it happened, in ISO 8601 (UTC).
dataobject
The refund as it was at that moment, with the attributes Retrieve a refund returns.
Was this page helpful?