Login and create invoice

-1

We are trying to implement invoices automatically and with difficulty in realizing:

  • What endpoint to get the access token
  • What is the endpoint for creating an invoice
  • Is it possible after creating the invoice to get the pdf, or to automate in some way its sending by email?
  • Thank you

    $url = 'https://my.jasminsoftware.com/api/' . $acount . '/' . $sub . '/billing/invoices';
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $url);
    $result = curl_exec($curl);
    
        
    asked by anonymous 30.08.2018 / 12:04

    1 answer

    3

    To get the token:
    Method: POST
    Endpoint: link
    Body: Varies depending on the auth flow you want to use

    To create an invoice:
    Method: POST
    Endpoint: link {{account}} / {{subscription}} / billing / invoices
    Body: (see link )

    To obtain PFD: (ex: Invoice FA.2018.1)
    Method: POST
    Endpoint: link {{account}} / {{subscription}} / billing / invoices / {{company}} / FA / 2018/1 / print

    To send by email:
    Method: POST
    Endpoint: link {{account}} / {{subscription}} / billing / invoices / {{id}} / send < br> Body:

    {
       sender: {
           address: "",
           displayName: ""
       },
       to: [
           {
               address: "",
               culture: ""
           },
           {
               address: "",
               culture: ""
           }
       ],
       cc: [
           {
               address: "",
               culture: ""
           },
           {
               address: "",
               culture: ""
           }
       ],
       bcc: [
           {
               address: "",
               culture: ""
           },
           {
               address: "",
               culture: ""
           }
       ],
       subject: "",
       body: "",
       bodyishtml: 0
    }
    
        
    30.08.2018 / 18:09