/
3.14.1.5 Invoices

3.14.1.5 Invoices

The Quick Calling services enables an end user to redirect his local access number (DID) to any destination number (e.g. international).

Authorization 

The method requires authorization using basic authentication. Please use the sip login and password.

If notepad++ is used to generate basic authentication token for tests, please use option “Base64 Encode with padding”.

Example:

user:password in base 64 format --> dXNlcjpwYXNzd29yZA==

/GetList

  • Description: Gets quick calling list.

  • Url: /vup/api/Invoices/GetList

  • HTTP method: GET

curl --location 'https://xxxxxxxx/vup/api/Invoices/GetList?draw=1&start=0&length=10&dateFrom=2023-12-05&dateTo=2024-12-05' \ --header 'Accept: application/json, text/plain, */*' \ --header 'Authorization: Basic aGVubmUxMjM0NjpoZW5uZTEyMzQ2eHh4'
{ "draw": 1, "recordsTotal": 3, "recordsFiltered": 3, "data": [ { "invoiceNr": "TK\\2024\\6\\29 ", "invoiceDate": "2024-06-13T13:45:57", "url": "/vup/api/Invoices/Get?id=467", "urlDetailed": "/vup/api/Invoices/Get?id=468", "urlSummary": "/vup/api/Invoices/Get?id=469" }, { "invoiceNr": "TK\\2024\\6\\28 ", "invoiceDate": "2024-06-11T06:48:36", "url": "/vup/api/Invoices/Get?id=460", "urlDetailed": "/vup/api/Invoices/Get?id=461", "urlSummary": "/vup/api/Invoices/Get?id=462" }, { "invoiceNr": "TK\\2024\\2\\27 ", "invoiceDate": "2024-02-27T14:19:03", "url": "/vup/api/Invoices/Get?id=357", "urlDetailed": "/vup/api/Invoices/Get?id=358", "urlSummary": "/vup/api/Invoices/Get?id=359" } ] }

Download the invoice

In the getlist response we receives URLS to download the invoice.

url - url to download regular invoice in pdf format

urlDetailed - url to download detailed invoice in pdf format

urlSummary - url to download summary invoice in pdf format

If our server address is https://xxxxxxxx/ just add the value received in url ,urlDetailed , urlSummary parameters to download the invoice

Example

https://xxxxxxxx/vup/api/Invoices/Get?id=357

 

 

Related content