Discussions
how to add tax amount ?
i need to create invoice and include tax amount in it to get total price includes tax amount or price
Good Day, Mohammad.
In Wafeq API, the tax is defined by percentage. When creating an invoice, you fill the tax_rate
on the line item level.
Follow the below steps to create an invoice with a VAT rate using Wafeq APIs:
• Call the Wafeq invoices_create API.
• Fill in the required date like currency
, invoice_number
, invoice_date
, language
and so on.
• On the invoice level, specify the tax_amount_type
as Inclusive or Exclusive.
• In the Line Items Object, fill in the tax_rate.
The line item tax_rate
field is the tax rate that needs to be applied.
You can retrieve the list of available tax rates from the tax_rates_list API.
• Once reported successfully i.e. you receive a 201 response, you will receive a line_items
array of objects in the response body.
• For each line item reported, you can check its calculated tax_amount
.