See the documentation here: Webhooks Schema
In that documentation, there is an InvoicesPaid
event. There is no mention of an InvoicesPayment
event.
Here is a webhook I received today:
{
"PayLoad": {
"InvoicesSent": [
{
"TimeStamp": "2022-03-11T14:00:40",
"Id": **redacted**,
"InvoiceType": "INV"
}
],
"InvoicesPayment": [
{
"TimeStamp": "2022-03-11T14:00:55",
"InvoiceId": **redacted**,
"PaymentId": **redacted**,
"AmountPaid": **redacted**,
"CurrencyCode": "GBP"
}
],
"Timestamp": "2022-03-11T14:00:56.6201921+00:00",
"Signature": **redacted**,
"Hookid": **redacted**
}
}
Notice there is an InvoicesPayment
event. Where is this documented? Is it different from InvoicesPaid
?
edit
The webhook was triggered by our tagging an invoice as paid. Also the InvoicesPaid
event mentions online payment methods. I’m guessing InvoicesPaid
is sent when a payment is made “directly” online through Quickfile’s integrations with Stripe, etc., whereas InvoicesPayment
is for when we tag an invoice with a payment that came into our bank account. In any case I would prefer to develop from documentation rather than guesswork.