0

I'm trying to create a Sales Order using the NetSuite REST API. The only line item on the Sales Order, as it's created, is one Subscription item (SuiteBilling) with three Subscription Lines. We use Avalara AvaTax for our tax calculations, and no matter what I try, it returns an error:

"Error while accessing a resource. Unable to save the transaction due to an error being reported by the tax calculation engine: Tax Calculation Plugin error: Invalid tax calculation output: item line taxes array must contain exactly one element for every input line.",

From what I can tell, this is happening because when I add a Subscription as a line item on a Sales Order, it's actually creating a line item on the Sales Order for each Subscription Line. I'm able to force it in if I override tax details, but that's obviously not an ideal outcome.

{
    "entity": "94661",
    "department": "203",
    "billAddress": "XXX",
    "item": {
        "items": [
            {
                "subscription": "27853"
            }
        ]
    }
}
  • I'm not familiar with Avalara, so this is a shot in the dark, but have you checked any Avalara script deployments to make sure context filtering includes REST? – Krypton Mar 16 '23 at 17:34

0 Answers0