invoice tax is incorrect

  • 1
  • Question
  • Updated 2 years ago
  • Answered
Hi Team,

I am trying to create an invoice in Reckon from a woocommerce purchase, and am constantly being told that the "Invoice tax is incorrect"

I am sending the following JSON to the endpoint:
{"CustomerID":"30b44591-e302-4718-901a-21c249085280","AmountTaxStatus":2,"Reference":"Order 2714","InvoiceAmount":15.9500,"InvoiceTax":1.45,"PurchaseDescription":"Purchase through madameflavourshop.com","InvoiceDate":"2017-11-23","DueDate":"2017-11-30","LineItems":[{"Amount":"5.9500","ChargeableItemId":"613b9d56-0fd5-41b1-b03d-7a0a45b9b950","LineNo":1,"Description":"Mint Lavender","Quantity":1},{"Amount":"10.0000","ChargeableItemId":"613b9d56-0fd5-41b1-b03d-7a0a45b9b950","LineNo":2,"Description":"Shipping","Quantity":1,"UnitPriceIsTaxInclusive":false}],"TemplateID":"4f5aeeb7-1f56-496d-a02f-aacf5ae76552"}

This is a tax-inclusive invoice for $15.95, which would include a component of  $1.45 GST, as per the amounts in InvoiceAmount and InvoiceTax fields.

Could someone please tell me what I'm doing wrong here?

If enter amounts against the line items individually, I also get a "Tax for line 1 is incorrect." message
{"CustomerID":"30b44591-e302-4718-901a-21c249085280","AmountTaxStatus":2,"Reference":"Order 2715","InvoiceAmount":"15.9500","InvoiceTax":"1.4500","PurchaseDescription":"Purchase through madameflavourshop.com","InvoiceDate":"2017-11-23","DueDate":"2017-11-30","LineItems":[{"Amount":"5.9500","ChargeableItemId":"613b9d56-0fd5-41b1-b03d-7a0a45b9b950","LineNo":1,"Description":"Mint Lavender","Quantity":1,"UnitPriceExTax":"5.4091","UnitPriceTax":"0.5409","UnitPriceIsTaxIncludive":true,"TaxAmount":"0.5409","AmountExTax":"5.4091"},{"Amount":"10.0000","ChargeableItemId":"613b9d56-0fd5-41b1-b03d-7a0a45b9b950","LineNo":2,"Description":"Shipping","Quantity":1,"UnitPriceExTax":"5.4091","UnitPriceTax":"0.5409","UnitPriceIsTaxIncludive":true,"TaxAmount":"0.5409","AmountExTax":"5.4091"}],"TemplateID":"4f5aeeb7-1f56-496d-a02f-aacf5ae76552"}
Photo of Lucas Williams

Lucas Williams

  • 290 Points 250 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Lucas Williams

Lucas Williams

  • 290 Points 250 badge 2x thumb
Hi Simon,

Thanks, I have managed to create an invoice successfully now.

I had a typo in the InvoiceDiscountedAmountExTax property, where I was calling it InvoiceAmountDiscountedAmountExTax, meaning that the required property was not being saved.

Thank you for persisting with this and helping me to get the right values in through the API, it looks correct to me.

Now on to processing a payment for these invoices!


Cheers,
Lucas