Webhook

Basic data for every webhooks.

Every webhook is a POST with a JSON body and these headers:

{
  "CALLBACK-TOKEN": "secretcallbacktoken",
  "USER-AGENT": "Monit"
}

Refuse the request if CALLBACK-TOKEN does not match your callback token. You can change the token on your Monit dashboard.

Every webhook body has the same fields:

{
  "event_id": "0bae6dfc-8200-009e-9c16-c149ce5b019b",
  "timestamp": "2022-12-13 10:03:39",
  "event_type": "TRANSACTION",
  "event_detail": "NEW_TRANSACTION",
  "is_sandbox": false,
  "organization_id": "0b5a1e02-3c00-0011-8d2e-7a1f3b9c4d10",
  "data": {}
}
FieldTypeDescription
event_idString UUIDUnique for every event. Retries of the same event keep the same event_id.
timestampDatetimeWhen the event was created, format yyyy-mm-dd HH:MM:SS, time zone UTC.
event_typeStringEvent type. See below.
event_detailStringEvent detail. See below.
is_sandboxBooleantrue for sandbox events.
organization_idString UUIDYour organization's identifier.
dataObjectEvent data. See the page for each event.

Event type and detail

event_typeevent_detailSent when
TRANSACTIONNEW_TRANSACTIONA transaction is created, such as a card transaction, a transfer between accounts, a new card, or a card cancellation refund.
TRANSACTIONUPDATED_TRANSACTIONA transaction's status changes, for example after a payment.
TRANSACTIONDECLINED_TRANSACTIONA card transaction is declined. See Declined Transaction.
PAYMENTPAYMENT_PROCESSEDA payment is processed.
ACCOUNTACCOUNT_ACTIVEAn account becomes active.
CARDCARD_ACTIVEA card becomes active.
CARDCARD_FROZENA card is frozen.
CARDREQUEST_3DSA cardholder gets a 3D Secure challenge. Sent only to your OTP callback URL. See Card 3DS OTP.
CARDREQUEST_3DS_TESTA test REQUEST_3DS event sent from your Monit dashboard. Sent only to your OTP callback URL.