Deposits to a PayID
How a deposit addressed to a sub-client's PayID shows up in the API and in webhooks
Once you have registered a PayID on a sub-client’s Virtual Account Number (VAN), your customer can pay into their VAN by that alias instead of the Australian BSB and account number.
Before paying, their bank shows them the account name registered for the PayID, which is the sub-client’s name as registered with Flash. The transaction arrives as an ordinary deposit on the VAN, booked on your master account balance and linked to the sub-client, exactly like a deposit to the BSB and account number: the same statuses, the same webhooks and the same queries.
Which PayID a deposit was addressed to
The deposit's recipient records it: accountIdType is PAYID and payid holds the address, next to the bsb and accountNo of the virtual account it was paid into. For a deposit paid to the BSB and account number, accountIdType is BSB and payid is null. To reconcile per PayID, match on recipient.payid.
const bodyJSON = {
variables: {
input: "68e5c1a9d2f4b07a3c9e1d55",
},
query: `
query ($input: ID) {
deposit(id: $input) {
id amount currency status externalReference createdAt
subClient {
id fullName
}
recipient {
accountIdType payid bsb accountNo accountName
}
}
}`,
};query($input: ID) {
deposit(id: $input) {
id
amount
currency
status
externalReference
createdAt
subClient {
id
fullName
}
recipient {
accountIdType
payid
bsb
accountNo
accountName
}
# more fields available, see API schema
}
}Webhooks
The deposit webhooks carry the PayID too: the recipient object of every deposit_* payload has payid next to accountName, bsb and accountNo. The field is absent for deposits paid to the BSB and account number.
Last updated
Was this helpful?