Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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"
}]
}
}
Tagged:
0