
Webhooks & Firehoses
FD1 Invoices
Functions relating to Invoices received, ie invoices you are expected to pay.
invoices.get_invoice
Fetch an invoice record
Example, fetching by direct key.
{ a: "fd1.invoices.get_invoice", k: "KLMVNVJJJTJYWJFHH3KSI9EZAZ" }
Example, fetching by by source document MD5.
If the invoice was derived from a file, such as a PDF, CSV file, or even a JSON packet then you can request Fieldpine details using the md5 of the source file.
{ a: "fd1.invoices.get_invoice", q: { srcdocmd5: "dcfb940f0e9181bb1629b95c160f7d75" } }
Example, fetching by by source email message-id.
If you know the email message-id used to send the invoice to Fieldpine, you can request all the invoices derived from that email. The response can contain zero, one or more invoices. Emails can send multiple invoices at once.
{ a: "fd1.invoices.get_invoice", q: { srcemailid: "<rj848fh248573@soemeghgubg-shw28@23jun2025.mailgun.2828473>" } }