Skip to content

Events

View as Markdown

Overview

An Event records that something happened in your account, such as a payment that succeeded. Its id starts with evt_. TapPay stores every event, and sends it to your webhook endpoint as a small message.

The thin webhook

A webhook carries only three fields: the event id, its type and the objectId. It does not carry the object itself.

{ "id": "evt_0b3f1c2e9a7d4e58", "type": "payment.succeeded", "objectId": "5d1f0a52-7c1e-4a6b-9a53-2f7c9d8e1b40" }

The webhook is small on purpose. The object always comes fresh from the API, so you never act on an old copy.

Read the object again

Use the objectId to read the current object with its GET endpoint. For a payment, call Retrieve a payment. Trust the object you read from the API, and not the webhook alone.

An event can be delivered again, for example after a resend. Store the event id so you handle each event only once.

List and resend

GET /events lists your events, filtered by type, objectId or a time range. See List events. Use Retrieve an event to read one event.

If your server was down, resend an event with Resend an event. TapPay delivers it again to your endpoints.

Several endpoints

You can register many webhook endpoints. Each has its own list of event types, its own webhook secret and its own apiVersion.

An allowlist entry is an exact type such as payment.succeeded, a group such as payment.*, or * for all. Create an endpoint with Create a webhook endpoint. The webhooks guide shows the full flow.

Event types

Every event type you can receive is below. The Object column names the object that objectId points to. Events from the wallet side, such as link.*, r2p.declined, mandate.* and dispute.*, are included.

EventObjectDescription
invoice.paidinvoiceInvoice fully paid
invoice.partially_paidinvoiceInvoice partially paid
invoice.expiredinvoiceInvoice expired
invoice.updatedinvoiceInvoice edited before payment. Read it again for the new values
payment.processingpaymentPayment processing
payment.succeededpaymentPayment succeeded
payment.failedpaymentPayment failed
payment.overpaidpaymentPayment overpaid
payment.finalizedpaymentPayment finalized (pre-auth)
payment.authorizedpaymentPayment authorized (pre-auth hold)
payment.settledpaymentPayment settled
refund.succeededrefundRefund succeeded
refund.failedrefundRefund failed
ebarimt.receipt_requestedpaymentYou must issue an ebarimt receipt
ebarimt.return_requestedrefundYou must return an ebarimt receipt
ebarimt.issuedpaymentEbarimt receipt issued
ebarimt.returnedpaymentEbarimt receipt returned
ebarimt.failedpaymentEbarimt receipt failed
payout.requestedpayoutManual payout requested, checks pending
payout.scheduledpayoutPayout scheduled
payout.in_transitpayoutPayout in transit
payout.paidpayoutPayout paid
payout.failedpayoutPayout failed
dispute.updateddisputeDispute updated
mandate.createdmandateMandate created
mandate.revokedmandateMandate revoked
mandate.pausedmandateMandate paused
mandate.resumedmandateMandate resumed
mandate.expiredmandateMandate expired
mandate.credential_invalidmandateThe card of the mandate is no longer valid, so the mandate is paused
link.createdpayer_linkPayer link created
link.revokedpayer_linkPayer link revoked
r2p.declinedr2p_requestR2P request declined by the payer
subscription.createdsubscriptionSubscription created
subscription.updatedsubscriptionSubscription updated (plan, payment method or cancel at period end)
subscription.activatedsubscriptionSubscription activated (from trialing or past due)
subscription.renewedsubscriptionSubscription cycle paid
subscription.past_duesubscriptionSubscription past due
subscription.pausedsubscriptionSubscription paused
subscription.resumedsubscriptionSubscription resumed
subscription.cancelledsubscriptionSubscription cancelled
service.customer_lookupmerchant_serviceSynchronous customer lookup. TapPay waits for your response
catalog.availability_lookupcatalog_offeringSynchronous availability lookup for an offering. TapPay waits for your response
order.createdorderOrder created. Accept or reject it
order.updatedorderOrder changed (status, payment or progress). Skip versions older than the one you have
order.reschedule_requestedorderThe customer asked for a new booking time. Confirm or decline it
terminal_payment.deliveredterminal_paymentTerminal payment request shown on the bank POS terminal
terminal_payment.paidterminal_paymentTerminal payment paid by QR or card
terminal_payment.declinedterminal_paymentCard declined on the terminal. The request stays open
terminal_payment.cancelledterminal_paymentTerminal payment request cancelled
terminal_payment.failedterminal_paymentTerminal payment request could not reach the terminal
terminal_payment.card_voidedterminal_paymentCard payment voided on the bank terminal
sticker.assignedqr_stickerSticker assigned to your system or moved to another terminal
sticker.unassignedqr_stickerSticker no longer assigned to your system
sticker.closedqr_stickerSticker closed, for example lost or damaged
sticker.replacedqr_stickerSticker replaced. objectId is the new sticker

Statuses that go with these events are in Statuses.