Jump to content

Lahiru Hewa Rajage

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Lahiru Hewa Rajage

  1. Hi,

    I am successfully creating invoices on Sage via the API. 

    I want to know whether it is possible to tell Sage to auto calculate the tax amount of each line, when we pass in the tax_rate_id ?

    Following is my JSON. 

    {"sales_invoice":{"contact_id":"004e60b2331d421aae39eb30760f53ce","date":"13/06/2022","invoice_lines":[{"description":"Product 1","ledger_account_id":"060828c7af6e11ecb2850279d0cc53c5","quantity":1,"unit_price":"50.00000","tax_rate_id":"GB_STANDARD","unit_price_includes_tax":false}]}}

    This is what I see on the UI.

    image.thumb.png.1167a9117c6a8b9390b115cf2317e8e1.png

     

    In a second scenario, if I send the same JSON but with "unit_price_includes_tax":true, it does the following.

    image.thumb.png.a4ed1c588d8ea814401dd9d2927933d1.png

    Hope my question makes sense. 

    Thank you.

×
×
  • Create New...