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

时间:2016-08-23 21:48:38

标签: xml soap xslt-1.0 netsuite suitetalk

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

<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返回以下错误:

<?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>

我也尝试过单独征税或者免税,但它会引发同样的问题。我在NetSuite中是否需要某种设置,或者我发错了字段?

1 个答案:

答案 0 :(得分:1)

taxExempt仅适用于加拿大帐户。您希望taxable = false并确保taxitem字段为空(或者只是单独征税并将taxitem设置为相应的非应税税项的ID)