Calypso supports a number of different event types, and you can filter your notification requests depending on types or group of events you send in the request.
There are two ways to subscribe to notifications. You can send values in one of following fields (or in both) using a POST request to the create webhook endpoint:
- notificationServiceTypes - groups of possible event types: [INVOICE, PAYOUT, RECURRENT]. Send values in this field to subscribe to all events of chosen group. See list of events in each group below in the section Events by group.
- notificationEventTypes - event types for which you can receive notifications. Send values in this field to subscribe to particular events. See list of events below in the section Events by group.
Events by group
INVOICE
Event type | Description |
---|---|
INVOICE_CREATE_INVOICE | New single invoice has been created |
INVOICE_CREATE_UNLIMITED_INVOICE | New unlimited invoice has been created |
INVOICE_FUNDS_RECEIVED_FOR_INVOICE | Funds have been received to invoice wallet |
INVOICE_TRANSLATION_TO_ACCOUNT_COMPLETED | Funds have been received from invoice wallet to the merchant balance. |
INVOICE_PENDING_INTERVENTION | Invoice has changed state to INVOICE_PENDING_INTERVENTION. Either more or less funds was received to the invoice wallet than required. |
INVOICE_EXPIRED | Invoice expiration date has expired. |
INVOICE_PAID | Invoice successfully paid. All required amount has been received to invoice wallet. |
INVOICE_MEMPOOL_FOUND | Invoice transaction has been found in mempool but still not confirmed in blockchain. |
PAYOUT
Event type | Description |
---|---|
PAYOUT_CHANGE_STATUS | Payout has changed state to In Progress, Canceled, Failed or Completed |
PAYOUT_CONFIRMED | Payout has changed state to Confirmed |
PAYOUT_SPEEDED_UP | Payout has been speeded up |
PAYOUT_VALIDATION_ERROR | Validation error has been occurred during payout processing |
PAYOUT_WITHDRAWALS_CREATING_VALIDATION_ERROR | Mass payout is failed because of the validation error in it withdrawal(s) |
PAYOUT_ETHEREUM_APPROVAL_VALIDATION_ERROR | Error in mass payout during transaction validation in blockchain (Ethereum only) |
RECURRENT
Event type | Description |
---|---|
RECURRENT_ARCHIVED | Subscription has changed state to Archived |
RECURRENT_CREATED | New recurrent subscription was created |
RECURRENT_CANCELLED | Subscription has been cancelled by the client |
RECURRENT_PAUSED | Subscription has changed state to Paused |
RECURRENT_ACTIVATED | Subscription has changed state to Active |
RECURRENT_NEARING_COMPLETION | Subscription is about to end. The notification occurs in case if 3 days before the end of the subscription period. |
RECURRENT_PAYMENT_CREATED | New subscription payment has been created. |
RECURRENT_PAYMENT_COMPLETED | Subscription payment has changed state to Completed |
RECURRENT_PAYMENT_FAILED | Subscription payment has changed state to Failed |
RECURRENT_PAYMENT_NOT_ENOUGHT_BALANCE | Not enough balance on client address for subscription payment transaction. The notification can be sent in the moment of payment and 3 days before payment. |
RECURRENT_PAYMENT_NOT_ENOUGHT_ALLOWANCE | Not enough allowed funds on client address for subscription payment transaction. The notification can be sent in the moment of payment and 3 days before payment. |
RECURRENT_PAYMENT_TRANSFER_FROM_FAILED | Error occurred during transferFrom message sending |