I'm new to the Sage API and I'm trying to create an invoice but I'm getting an error and I don't see how to fix it. The error says "$message: "This field is required", $source: "line_items.tax_rate_id" and "$message: "This field is required.", $source: "line_items.tax.rate". In the API documentation I do not see a "line_items" member - there is "invoice_lines" member.
Here is the Json I'm using to create the invoice:
{"sales_invoice":{"contact_id":"e69235e7f37e462dbc5e038b57b7d13d","date":"2022-03-13","net_amount":207.60,"tax_amount":26.99,"total_amount":234.59,"invoice_number":"1","tax_address_region_id":"CA-ON","invoice_lines":[{"description":"Test","ledger_account_id":"29fc0490a21411ecbcc60e97dc3b579b","product_id":null,"service_id":"0dc3d4f44f6e421b9e134b9fda48e793","unit_price":173.0,"quantity":1.2,"net_amount":207.60,"tax_amount":26.99,"total_amount":234.59,"tax_rate":{"id":"CA_HST_ON","displayed_as":null}}]}}
Any help is appreciated