Xtopay Docs
Webhooks

Events Reference

All webhook event types that Xtopay can send to your endpoint.

Payment events

EventFired when
payment.createdA payment object is created
payment.pendingCustomer opens the checkout page
payment.succeededPayment is collected successfully
payment.failedPayment attempt fails
payment.cancelledCustomer closes checkout without paying
payment.expiredCheckout URL expires unused

Refund events

EventFired when
refund.createdA refund is initiated
refund.succeededRefund reaches the customer
refund.failedRefund could not be processed

Subscription events

EventFired when
subscription.createdA new subscription is created
subscription.trial_startedSubscription enters trialing state
subscription.trial_ending_soon3 days before trial ends
subscription.trial_endedTrial period is over
subscription.activatedSubscription becomes active after trial
subscription.renewedSuccessful renewal charge
subscription.payment_failedRenewal charge fails (enters dunning)
subscription.payment_action_requiredCustomer must update payment method
subscription.updatedPlan, amount, or metadata changed
subscription.cancellation_scheduledCancel-at-period-end set
subscription.cancellation_reversedCancellation undone before period end
subscription.cancelledSubscription fully cancelled
subscription.pausedSubscription paused
subscription.resumedSubscription resumed from pause

Invoice events

EventFired when
invoice.createdInvoice is generated
invoice.payment_succeededInvoice is paid
invoice.payment_failedInvoice charge fails
invoice.voidedInvoice is voided

Customer events

EventFired when
customer.createdA new customer record is created
customer.updatedCustomer details changed
customer.deletedCustomer record deleted
customer.payment_method_addedNew payment method attached
customer.payment_method_updatedPayment method details updated
customer.payment_method_removedPayment method detached

Usage billing events

EventFired when
usage.threshold_reachedCustomer hits a usage threshold you configured
usage.period_closedBilling period ends and usage is locked in

Subscribing to events

In Dashboard → Settings → Webhooks, you can subscribe to:

  • All events — receive every event type
  • Category — e.g. all subscription events
  • Specific events — handpick individual types

You can also configure multiple endpoints with different event filters — for example, send payment events to your fulfilment service and subscription events to your CRM.

On this page