I am try to Create Invoice in Xero using asp.net and i set Invoice Status Authorized and type ACCREC but I cant create it throw "The tax type field is mandatory" How to rectify this problem
Asked
Active
Viewed 190 times
0
-
What are you putting in for the Tax Type? It seems that in my code (which is a bit old now, so I don't completely remember) any line item that has an item code also has a tax type. – droopsnoot Jul 27 '21 at 08:02
-
TaxType is referring to the TaxType field on the LineItems within the invoice. You need to specify a TaxType: https://developer.xero.com/documentation/api/accounting/types#tax-types. TaxTypes depend on the region of the org, so you can retrieve them programatically via the TaxRates endpoint: https://developer.xero.com/documentation/api/accounting/taxrates – RJaus Aug 30 '21 at 00:05