<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        
        
         
    </head>
    <body>
        <div>TODO write content</div>
    </body>
</html>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>

<script>
    
    function apitest(){
    $.ajax({
            type: 'POST',
            //url: 'http://localhost:8524/api/IMSFiscal/GetInvoiceNumberByModel',
            url: url,
            contentType: "application/json",
            asyn: false,
            beforeSend: function (xhr) {
                xhr.setRequestHeader ("Authorization", "Bearer " + token);
            },            
            //data: {myJSON: data, url: url, token: token},
            data: data,
            success: function(response) {
                console.log(response);
               //response= $.parseJSON(response);
               
               toastr.success(response.Response, 'Fiscal');
                //update the log tables
                updateimslog(data, response.InvoiceNumber, invoiceid);
                
            }
        });
    }
</script>