[英]Netsuite REST API for cross-subsidiary item fulfillment
當我調用 item fulfillment Netsuite rest api 時出現以下錯誤。
Error while accessing a resource. You must have at least one valid line item for this transaction.
銷售訂單需要使用另一子公司中可用的物料來完成。 這可以在 UI 中完成,但我無法按照以下幫助站點所述使用 rest 調用來實現: https://docs.oracle.com/en/cloud/saas.netsuite/ns-online-help /section_161425629582.html
下面是我用的JSON:
{
"item": {
"items": [
{
"orderLine": 1,
"quantity": 1,
"itemReceive": true,
"location": {
"id": "239"
},
"inventoryDetail": {
"inventoryassignment": {
"items": [
{
"issueInventoryNumber": {
"refName": "1D3B62A4000070"
},
"quantity": 1.0
}
]
},
"quantity": 1.0,
"totalResults": 1
},
"shipGroup" : 1,
"subsidiary": {
"id": "1"
}
}
]
},
"subsidiary": {
"id": "1"
},
"location": {
"id": "239"
}
}
位置 239 屬於子公司 1,而訂單位於子公司 3。
是否可以使用 Netsuite rest api 來履行來自另一家子公司的訂單(跨子公司履行)? 如果是,我錯過了什么?
我跟進了 Netsuite 支持,他們確認目前不支持通過 Netsuite REST web 服務進行跨子公司履行。 解決方法是構建一個 restlet,然后可以調用它來執行跨子實現。
如果可以通過 UI 完成相同的操作,是否是由於角色許可? 您的 API 需要使用管理員角色或有權訪問多個子公司(至少是您測試的子公司)的自定義角色來執行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.