Now businesses can configure webhooks under Settings -> Alerts -> Setup Webhook menu on the top right.
Configure a hook URL which can accept HTTP POST Request with the following payloads.
Sample Payloads
Different Event Types
type: 'DEBIT' | 'CREDIT' | 'REFUND' | 'DECLINE' | 'LOW_BALANCE_ALERT' | 'DAILY_BALANCE_ALERT'
Debit Response
JSON
{
id: string,
type: string,
amount: number,
date: string(ISO format),
isSettled: boolean,
title: string,
category: string,
last4: string,
closingBalance: number,
employeeName: string,
};
Credit Response
JSON
{
id: string,
type: string,
amount: number,
date: string(ISO format),
title: string,
closingBalance: number,
tokenData: {
chain: string,
hash: string,
symbol: string,
tokenNos: string,
}
}
Refund Response
JSON
{
id: string,
type: string,
amount: number,
date: string(ISO format),
isSettled: boolean,
title: string,
category: string,
last4: string,
closingBalance: number,
employeeName: string,
}
Decline Response
JSON
{
id: string,
type: string,
amount: number,
date: string(ISO format),
title: string,
category: string,
last4: string,
closingBalance: number,
employeeName: string,
reason: string,
}
Low Balance Alert Response
JSON
{
type: string,
date: string(ISO format),
closingBalance: number,
lowBalanceLimit: number,
businessName: string,
}
Daily Balance Alert Response
JSON
{
type: string,
date: string(ISO format),
closingBalance: number,
businessName: string,
}
Last updated