使用 API 在 netsuite 中创建销售订单的示例 JSON 格式
Sample JSON format to create salesOrder in netsuite using API
有人可以帮我解决在 netsuite 中(创建)发布销售订单的 JSON 格式吗???提前致谢...
{
"entity": {
"id": {{lastCustomer}}
},
"item": {
"items": [
{
"item":
{
"id": "814"
},
"rate": 10
}
]
}
}
这是我试过的...但是它说“访问资源时出错:您为以下字段输入了无效的字段值 814:项目”。我试过将 Id 字段值作为数字但没有成功。
谁能告诉我这有什么问题吗?
您的 JSON 格式正确(在我的帐户中测试并确认)。您收到错误消息是因为该商品对客户无效。
这是工作 JSON:
{
"recordtype": "salesorder",
"entity": {
"id": {{lastCustomer}}
},
"item": {
"items": [
{
"item": {
"id": "945"
},
"rate": 10
}
]
},
"location": {
"id": "2"
},
"department": {
"id": "3"
}
}
有人可以帮我解决在 netsuite 中(创建)发布销售订单的 JSON 格式吗???提前致谢...
{
"entity": {
"id": {{lastCustomer}}
},
"item": {
"items": [
{
"item":
{
"id": "814"
},
"rate": 10
}
]
}
}
这是我试过的...但是它说“访问资源时出错:您为以下字段输入了无效的字段值 814:项目”。我试过将 Id 字段值作为数字但没有成功。 谁能告诉我这有什么问题吗?
您的 JSON 格式正确(在我的帐户中测试并确认)。您收到错误消息是因为该商品对客户无效。
这是工作 JSON:
{
"recordtype": "salesorder",
"entity": {
"id": {{lastCustomer}}
},
"item": {
"items": [
{
"item": {
"id": "945"
},
"rate": 10
}
]
},
"location": {
"id": "2"
},
"department": {
"id": "3"
}
}