Webhook Events
A webhook event is a notification that KingsPay sends to your configured webhook destination whenever something notable happens within your business account. Each event represents a specific occurrence in the system, such as a charge being created, a payout changing status, or an API key being updated.
When an event occurs, KingsPay delivers a payload to your endpoint containing details about the event. You can use this to keep your systems in sync with your KingsPay account in real time, without needing to poll the API for changes.
Available events
Payment Charges
-
payment_charge.createdOccurs when a payment charge is created.
-
payment_charge.succeededOccurs when a payment charge status is updated to succeeded.
-
payment_charge.failedOccurs when a payment charge status is updated to failed.
Payouts
-
payout.createdOccurs when a payout is created.
-
payout.pendingOccurs when a payout status changes to pending.
-
payout.processingOccurs when a payout status changes to processing.
-
payout.succeededOccurs when a payout status changes to succeeded.
-
payout.failedOccurs when a payout status changes to failed.
-
payout.suspectedOccurs when a payout status changes to suspected.
-
payout.rejectedOccurs when a payout status changes to rejected.
-
payout.returnedOccurs when a payout status changes to returned.
-
payout.updatedOccurs when a payout is updated.
Transfers
-
transfer.createdOccurs when a transfer is created.
-
transfer.succeededOccurs when a transfer status changes to succeeded.
Balance Transactions
-
balance_transaction.createdOccurs when a balance transaction record is created.
API Keys
-
account_api_key.createdOccurs when an account API key is created.
-
account_api_key.updatedOccurs when an account API key is updated.
-
account_api_key.deletedOccurs when an account API key is deleted.
Next steps
For details on the event payload structure and how to handle events in your application, see Webhook Events in the Integration Guides.