Skip to Content
Docs
Documents

Document events

WEBHOOKdocument.*

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

Events

document.created
A document was created.
document.pending
The document was uploaded and is pending review.
document.active
The document was accepted and is now active.
document.rejected
The document was rejected.

Each event

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