Allow direct invoice link from API

The QuickFile UI allows users to copy a direct link to an invoice that can be shared in their own emails. It would be good if this functionality was also available via the API.

image

If I’m not mistaken that’s the DirectPreviewUri in the response from Invoice_Get.

https://api.quickfile.co.uk/d/v1_2/Invoice_Get

Hi @ian_roberts, unfortunately that link only directs the viewer to a PDF copy of the invoice. That means that they cannot accept or decline an estimate, or perform any other actions. There is also the Client_LogIn endpoint that generates a passwordless link for a client to log in to their account. The link can optionally be directed to a specific invoice. This almost exactly fits our needs, except the link expires after 20 minutes. The link that is accessible from the UI does not expire. Ideally we would like an API method for retrieving this link.

Hi @Adam_Johnston

Unfortunately the expiring link is the only option at this time.

What you may wish to do is add a page in the middle, in which case a user would be taken to your site, in the background you get the expiring link, and then you redirect them to the invoice page.

1 Like

Thanks @QFMathew,

Yeah, I understand that’s an option. Equally we could implement a scraping script to retrieve the link from the UI.

I created this request because I discovered that the non-expiring link is generated on the UI. It would simplify and speed up the process if we could access this link using the API, instead of scripting our own workaround.

Hi again @QFMathew,

Is there any chance you would be able to reveal how the url parameter “d” that seems to encode the information allowing a client to log in and view an invoice using a link is generated? I’m talking about the this_parameter section in the following example invoice view URL:

https://companyname.quickfile.co.uk/?d=this_parameter

If we knew how this parameter was calculated (presumably it is an encoded form of the invoice ID, potentially including some other information about the account) we could replicate the generation on our side and create these links without having to implement either of the workarounds discussed above.

Thanks for any help,
Adam

Hopefully they’ll add this, as it seems pretty simple to add to the API.

Also the API seems a bit misleading because the section “InvoiceView > InvoiceID” Client_LogIn API Schema seems like it would do it.

@tom_44 hey Tom just a heads up you can vote on the feature request

1 Like