SuiteTalk 在 NetSuite 中将客户设置为免税

SuiteTalk Set Customer as Tax Exempt in NetSuite

我正在尝试使用 SOAP 请求更新 NetSuite 中的客户。我能够正确搜索客户并将其退回,但是当我尝试向其发送应税或免税字段时,如下所示:

<taxExempt xmlns="urn:relationships_2014_1.lists.webservices.netsuite.com">true</taxExempt>
      <taxable xmlns="urn:relationships_2014_1.lists.webservices.netsuite.com">false</taxable>

NetSuite returns 出现以下错误:

<?xml version="1.0" encoding="utf-16"?>
<WriteResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <status isSuccess="false" xmlns="urn:core_2014_1.platform.webservices.netsuite.com">
    <statusDetail>
      <code>INSUFFICIENT_PERMISSION</code>
      <message>You do not have permissions to set a value for element taxexempt due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases.</message>
    </statusDetail>
  </status>
</WriteResponse>

我也试过单独执行 taxable 或 taxExempt,但它引发了同样的问题。我是否需要在 NetSuite 中进行特定设置,或者我是否发送了错误的字段?

taxExempt 仅适用于加拿大帐户。您需要 taxable=false 并确保 taxitem 字段为空(或者只留下 taxable 并将 taxitem 设置为适当的非应税税项的 id)