API URL:https://
方法: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 值存在。不知道这里出了什么问题。
根据以下文档,REST Webservices 不再支持旧版税务功能。 https://suiteanswers.custhelp.com/app/answers/detail/a_id/99106/loc/en_us
为此考虑使用 Restlet 而不是 Rest API。