I am trying to use the QuickFile API to view an invoice, but every invoice ID I try and retrieve gives a “[400] Cannot find invoice” error.
Attached are screenshots of the module setup, inputs for when I run just the find invoice module and the error message. Invoice number 540 definitely exists and is an Estimate.
The input bundle content is: [
{
“InvoiceID”: 540,
“InvoiceType”: “ESTIMATE”
}
]
Hi @samliew, I can confirm they are of type Estimate. I have tried the advanced settings - turning Test Mode on does not affect anything, and Device ID is only needed for mobile devices.
Turns out I was using the invoice number instead of the invoice ID (the ID can be found in the URL when viewing an invoice), and was not wrapping the API Request body I was using to return the PDF in curly brackets. All works now, thanks for your help.
Congrats on getting this up and running with the assistance of @samliew! Awesome work
Also, thanks a lot for stepping back in here and sharing what ended up doing the final trick for you. This is super valuable and could prove incredibly helpful to others searching for similar info in the future.