QuickFile [400] Cannot find invoice

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”
}
]

The output bundle content is: [
null
]

Has anyone encountered this problem before?

image

Can you verify that the Invoice Type of the invoices you are searching for are of type “Estimate”?

What are the other options hidden by the “Show advanced settings” toggle? Could you give them a try as well?

1 Like

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.

image

Hi @samliew,

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.

3 Likes

Hi @Adam_Johnston :wave:

Congrats on getting this up and running with the assistance of @samliew! Awesome work :clap:

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. :pray: