访问资源时出错。请输入以下值:税项

问题描述 投票:0回答:1

API URL:https://.suitetalk.api.netsuite.com/services/rest/record/v1/customer/eid:123

方法:PUT

有效负载:

{
  "email": "[email protected]",
  "companyName": "Test EiO Trigger V2",
  "subsidiary": {
    "id": "29"
  },
  "taxItem": {
      "id": "808"
  }
}

在尝试使用上述 NetSuite REST API 更新插入客户记录时,我收到以下错误响应:-

{
    "type": "https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.1",
    "title": "Bad Request",
    "status": 400,
    "o:errorDetails": [
        {
            "detail": "Error while accessing a resource. Please enter value(s) for: Tax Item.",
            "o:errorCode": "USER_ERROR"
        }
    ]
}

我已验证税码内部 ID 值存在。不知道这里出了什么问题。

netsuite netsuite-rest-api
1个回答
1
投票

根据以下文档,REST Webservices 不再支持旧版税务功能。 https://suiteanswers.custhelp.com/app/answers/detail/a_id/99106/loc/en_us

为此考虑使用 Restlet 而不是 Rest API。

© www.soinside.com 2019 - 2024. All rights reserved.