Hi All. Im new to the group. I just posted on Redd...
# suitetalkapi
d
Hi All. Im new to the group. I just posted on Reddit, but figured I would cross post here. I have Avalara AvaTax setup in Netsuite. When I delete a Cash Sale via the UI, it will void the transaction in avalara. When I delete a Cash Sale via the REST API, it does not void the transaction in Avalara. Does anyone know a way to get this to work via the REST API. Is it possible to void the cash sale in netsuite first, and then delete it, or is there another workaround?
a
sorry not real familiar with REST APIs or Avalara but you should check the script execution contexts on the avalara script that's sending the void call ... also its possible that its executing client side in the browser, and I don't think you're going to be able to mimic that easily with a REST call
hmm... maybe set the amount to 0 instead of a delete?
d
I will try that
Setting the total, subtotal and all items in the cash sale to 0, properly updated the amounts, but did not set the status to VOID.
a
in NetSuite? or in Avalara?
d
Was not void in both systems
Can I delete the cash sale via a workflow?