Travel Rule Events
Webhook events
Webhook events represent specific actions or status changes within Ospree that trigger real-time notifications to your subscribed endpoint. Each event contains structured data, enabling your system to process and respond automatically. This section provides an overview of the available webhook events and their triggers.
TRAVEL_RULE
INCOMING_TRANSFER
Triggered when a new incoming transfer request is received from a counterparty, requiring review and action.
TRAVEL_RULE
TRANSFER_ACCEPTED
Triggered when an outgoing transfer request has been "accepted" by the recipient and is ready for processing.
TRAVEL_RULE
TRANSFER_REJECTED
Triggered when an outgoing transfer request is "rejected" by the counterparty, preventing it from proceeding.
TRAVEL_RULE
TRANSFER_REPAIR
Triggered when an outgoing transfer needs to be repaired and resubmitted with corrections.
TRAVEL_RULE
TRANSFER_COMPLETED
Triggered when an incoming transfer has been successfully "completed".
TRAVEL_RULE
TRANSFER_CANCELED
Triggered when an incoming transfer has been "canceled" by the originator.
Webhook request schema
Below is the sample payload for travel rule events published to the webhook, along with the description of each field.
request_id
UUIDV7
A unique identifier for the webhook request.
event_type
string
Specifies the module where the event originates (e.g., “TRAVEL_RULE”).
event_name
string
The specific event that triggered the webhook. See the list of Travel Rule events here.
timestamp
datetime
The date and time when the webhook request was sent.
error
object
Contains error details from the counterparty if a transfer request status is "REJECTED" or "REPAIR".
data
object
Contains travel rule request data.
Webhook request examples
Below are example requests for the different travel rule events.
// Received when there is an incoming transfer from a counterparty VASP.
{
"request_id": "01954725-66bb-7de1-a0f3-b5dbcdbd47b8",
"event_type": "TRAVEL_RULE",
"event_name": "INCOMING_TRANSFER",
"timestamp": "2024-12-31T12:40:01.138096+00:00",
"error": null,
"data": {
"transfer_id": "018f85d7-0650-7205-a1d5-011e9587c07c",
"reference_id": "reference-transfer-01",
"amount": 1.00,
"amount_usd": 101234.00,
"dti": "4H95J0R2X",
"chain": "bitcoin",
"symbol": "BTC",
"protocol": "flow",
"transaction_hash": null,
"transfer_status": "REVIEW"
}
}
Last updated