Documentation Index
Fetch the complete documentation index at: https://docs.fyatu.com/llms.txt
Use this file to discover all available pages before exploring further.
Account Events
Account events fire when significant milestones occur on your program’s balance or when withdrawal requests change state. Subscribe to these events to automate balance management and keep your finance team informed. All account events share the same outer envelope:ACCOUNT_LOW_BALANCE
When it fires
Fires when a card funding operation causes the program ledger balance to fall below thelowBalanceThreshold configured for the program. This is your early warning to top up before card funding fails.
Configure the threshold in the portal under Programs → Settings.
Payload
Payload fields
| Field | Type | Description |
|---|---|---|
programId | string | The program with low balance |
balanceCents | integer | Current program ledger balance in cents |
thresholdCents | integer | The configured low-balance threshold in cents |
timestamp | string | ISO 8601 timestamp |
Common use cases
- Send an automated alert to your finance team
- Trigger a crypto deposit to replenish the program
- Temporarily pause new card loads until the balance is replenished
ACCOUNT_WITHDRAWAL_INITIATED
When it fires
Fires when a withdrawal request from the program ledger is created. The requested funds are reserved in a suspense ledger while the transfer is processed.Payload
Payload fields
| Field | Type | Description |
|---|---|---|
withdrawalId | string | Unique withdrawal identifier |
programId | string | The program being withdrawn from |
amount | number | Withdrawal amount (in dollars) |
token | string | USDT or USDC |
network | string | TRC20 or ERC20 |
toAddress | string | Destination wallet address |
timestamp | string | ISO 8601 timestamp |
Common use cases
- Show a “Withdrawal pending” status in your portal
- Record the withdrawal request for reconciliation
ACCOUNT_WITHDRAWAL_COMPLETED
When it fires
Fires when a withdrawal has been broadcast to the blockchain and the funds have left the FYATU system.This event will be dispatched in a future release. Subscribe to it now so your integration is ready when it goes live.
ACCOUNT_WITHDRAWAL_FAILED
When it fires
Fires when a withdrawal cannot be completed. The reserved funds are automatically returned to the program ledger.This event will be dispatched in a future release. Subscribe to it now so your integration is ready when it goes live.

