Events
When the status of a payout changes, KingsPay emits an event. You can receive these events by configuring a webhook destination.
This page lists all events emitted for the Payouts resource. For a general guide on consuming events—verifying signatures, handling retries, and setting up webhook destinations—see the Events overview.
Available events
payout.created
Emitted when a new payout is successfully created.
payout.pending
Emitted when a withdrawal is requested and is waiting for review.
payout.processing
Emitted when the payout is being sent to the destination bank.
payout.suspected
Emitted when the outcome of the transfer is unknown and is being checked. A payout.succeeded or payout.failed event follows.
payout.succeeded
Emitted when a payout is successfully completed and funds have been transferred to the recipient.
payout.failed
Emitted when a payout fails during processing due to technical issues or bank errors.
payout.rejected
Emitted when a withdrawal is rejected during review.
payout.returned
Emitted when a payout is returned by the destination bank after initial processing.
payout.updated
Emitted when other details of the payout change, without a change of status.
No event is sent when a payout becomes approved. Disbursements start in approved, so payout.created covers it.
Event data structure
All payout events contain the payout object, the same one the Get Payout endpoint returns:
| Field | Description |
|---|---|
id | Unique ID of the payout. |
account_id | ID of the business account the payout belongs to. |
status | Current status of the payout. |
type | Payout type. |
amount | Payout amount. |
fee | Fee deducted by KingsPay. |
currency | Currency code. |
client_reference_id | Your own reference ID, echoed back from the create request. |
bank | Bank information object with name, country code, and currency. |
account_number | Recipient account number. |
account_holder_name | Recipient account holder name. |
account_bank_account_id | ID of the saved bank account the payout was sent to, if any. |
balance_transaction_id | ID of the balance transaction that debited the payout. |
return_balance_transaction_id | ID of the balance transaction that returned the funds, for a failed, rejected or returned payout. |
created_at | Timestamp of payout creation. |
updated_at | Timestamp of last update. |
What to do with these events
- On
payout.succeeded— mark the withdrawal as completed, update internal records, and notify the user if applicable. - On
payout.suspected: wait, and don't send the money again. The payout still ends assucceededorfailed. - On
payout.failed— log the error, notify the user of the failure, and allow them to retry with corrected information. - On
payout.rejected— inform the user of the rejection and the reason, and provide guidance on next steps. - On
payout.returned— notify the user of the return and investigate the account details for potential issues.
For details on verifying event signatures and configuring where events are delivered, see the Events overview.