最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Netsuite REST API not able to create new Inventory Item - Stack Overflow

programmeradmin4浏览0评论

Netsuite REST API not able to create new Inventory Item. I am getting the following error.

Request Body

{
"refName": "Sample Inventory Item",
"itemid": "123456789",
"class": {
    "id": "29",
    "refName": "Dining : Mirrors"
},
"consumptionUnit": "Unit",
"isDropShipItem": false,
"contingentRevenueHandling": false,
"conversionRate": 1.0,
"copyDescription": true,
"cost": 110.00,
"createdDate": "2025-02-09T12:00:00Z",
"currency": {
    "id": "1",
    "refName": "USD"
},
"defaultReturnCost": 90.00,
"deferralAccount": "Deferred Revenue",
"demandModifier": 1.10,
"department": {
    "id": 1
},
"description": "Sample Inventory Item for testing purposes",
"displayName": "Sample Item",
"externalId": "ITEM-123456",
"incomeAccount": {
    "id": "54",
    "refName": "Sales"
},
"isOnline": true,
"isSerialItem": false,
"isStorePickupAllowed": true,
"itemId": "ITEM123",
"itemType": {
    "id": "InvtPart",
    "refName": "Inventory Part"
},
"lastModifiedDate": "2025-02-09T12:00:00Z",
"lastPurchasePrice": 95.00,
"autoPreferredStockLevel": true,
"leadTime": 7,
"location": {
    "id": "1"
},
"maximumquantity": 500,
"minimumquantity": 5,
"mpn": "MPN-987654",
"pricingGroup": {
    "id": 1
},
"quantityAvailable": 200.0,
"quantityOnHand": 300.0,
"quantityOnOrder": 50.0,
"upcCode": "123456789012",
"vendorName": "ALF Italia",
"isSpecialOrderItem": false,
"preferredVendor": {
    "id": 16,
    "Preferred": false
},
"purchasePrice": 95.00,
"pricesIncludeTax": false,
"taxSchedule": {
    "id": "2"
}

}

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

发布评论

评论列表(0)

  1. 暂无评论