Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
How to Override Tax Details on Invoice Item via Rest API?
Hi,
I need to override the tax details when creating a new invoice but this is having no effect and the standard tax rate is being applied to the item.
Can anyone suggest a solution?
An example call is shown below.
I have set taxDetailsOverride = true and included the taxDetails section.
Also, taxDetailsReference:id = "NEW1" to reference item 1 (I saw this as a solution in different post)
POST https://nnnnnnn.suitetalk.api.netsuite.com/services/rest/record/v1/invoice/
{ "customForm": { "id": "330" }, "entity": { "externalId": "e7db287d-9109-4b90-87b3-e4e856ed670a" }, "currency": { "id": "2" }, "exchangeRate": 1.612, "memo": "Usage for Oct 2022", "tranDate": "2022-11-01", "dueDate": "2022-11-15", "item": { "items": [{ "item": { "id": "68" }, "price": { "id": -1 }, "quantity": 12, "rate": 1.00 }] }, "taxDetailsOverride": true, "taxDetails": { "items": [{ "lineType": "Item", "netAmount": 12.00, "taxAmount": 0.0, "taxBasis": 1.0, "taxCode": { "id": "9" }, "taxDetailsReference": { "id": "NEW1" }, "taxRate": 0.0, "taxType": "1" }] } }