Note
Please check the common webhook information at Webhoot Events for a general understanding of the webhook workflow and payload.
This event is triggered whenever a new transaction is added to one of your ledger accounts.
Payload (object)
- ledgerAccountId (string) - The id of the ledger account that was credited
- amountCredited (object) - The amount that was credited to the ledger account
- value (number) - The amount to be paid in float point
- currency (string) - 3 letters ISO code for currency
- formattedValue (string) - The formatted value, e.g: $10.00
- digits (number) - The amount of decimal places this currency has
- wholeValue (number)
An integer value for the least significant value for this currency, eg.: $10.00 would be 1000. It can be thought as how many cents for this operation
- ledgerBalance (object) - The current ledger balance considering the amount credited
- value (number) - The amount to be paid in float point
- currency (string) - 3 letters ISO code for currency
- formattedValue (string) - The formatted value, e.g: $10.00
- digits (number) - The amount of decimal places this currency has
- wholeValue (number)
An integer value for the least significant value for this currency, eg.: $10.00 would be 1000. It can be thought as how many cents for this operation
{
amountCredited: {
value: number,
currency: 'string',
formattedValue: 'string',
digits: number,
wholeValue: number,
},
ledgerBalance: {
value: number,
currency: 'string',
formattedValue: 'string',
digits: number,
wholeValue: number,
},
ledgerAccountId: 'string'
}