What value should the template parameter of the Jasminsoftware Web API endpoint take to download an invoice?

-3

The company that uses the web api of Jasmin only provides services, so in downloading the invoice not only do not need to have the goods delivery data as these make it unaesthetic. The endpoint for downloading said invoice, according to the documentation, allows you to select the type of report you want. In this case we would like to obtain the invoice for services. According to the documentation the endpoint and parameters of the application address, it should be anything like:

 /billing/invoices/Default/FA/2017/123/print?template=Billing.ServicesInvoiceReport

I tried in various ways like lowercase letters, bars, etc ... and I did not succeed with any, that is, it always comes with the delivery data.

    
asked by anonymous 02.10.2018 / 04:37

1 answer

2

Good evening, Paulo,

Regarding the endpoint, you are correct. For example, to print the invoice FA.2018.1 we will order using this endpoint:

link {{account}} / {{subscription}} / billing / invoices / {{company} } / FA / 2018/1 / print? Template = {{template}}

by varying the template between Billing.ServicesInvoiceReport and Billing.MaterialsInvoiceReport depending on whether or not to print transport data.

It turns out that there is an error that causes the API to be using the last template used directly in Jasmin.

Let's fix this ASAP problem and hope to publish it in the next release.

Thank you.

    
02.10.2018 / 20:51