Direct sale/purchase invoice URL link

Hello Guys,

Is it possible to get UUID using api or is there a way to access specific purchase/sales invoice URL link directly at manager server edition if we just have an invoice number?

Welcome to the forum @palfal

Sure, if you retreive all, you can get all UUIDs

Another way you get the UUID is in the response when you POST to the api

Unfortunately not, the URLs are not supposed to be guessable.

I too believe that getting the URL through the api would be a useful feature, but this feature has been deprecated.

1 Like

thanks for your reply but what i want to archive is at payment or receipt view or list screen to have a link or button to check related invoice direclty? is there away to do this at manager maybe using some kinda of extension if possible?

Your only option is to scrape the webpage.

I like the idea and I too have a use case for it but I’m hesitant to place this in ideas because it’s been raised many times before and it didn’t get the attention of the developer.

@lubos, what do you think? Getting the URLs from the api

2 Likes

This would be 2-step process in Manager.

First you would need to use /api/sales-invoices endpoint with term parameter so you get invoices containing your term only. So if you are looking for invoice containing reference number 1234 then your term will be 1234.

You might get multiple invoices in response. For example invoices that have reference number 11234 or 12345. So you just need to loop through the response to find the invoice that has reference number exactly 1234 which will get you UUID.

The same process is applicable if you are looking for invoices that have specific content in custom field or really almost any field.

1 Like

thanks for your reply, how about getting the exact url for invoice … i wanna create kinda of hyperlink at payments/receipt view/list for the invoice number to check the whole invoice details instead of searching invoice in seprate tab.

i think this will help a lot of people including me and it will give great advantage to manager and also save alot of time.

Are you saying you want an easy way to jump to invoice when looking at receipt all within Manager? If that’s correct, this shouldn’t be resolved using custom code, it should just be built-in feature.

3 Likes

yes exactly easy jump to an invoice within manager itself whenever an invoice # is showing like in debit notes, payment, receipt list tables.