Discussions

Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Get ready to take on exciting new challenges and become the next SuiteMaster of the Month!
AI capabilities embedded across the suite help boost productivity and give leaders an edge by helping them analyze data faster and generate unique insights that drive better decision-making. Watch these on-demand webinars to see how our AI capabilities can help you.

Streamline Invoice Processing with AI-Powered Automation

Use AI-Driven Insights for Faster, Better Planning and Forecasting

REST API POSTing a nonInventorySaleItem- Tax Schedule Required

edited Jul 30, 2024 7:40PM in Ask A Guru 3 comments

I'm still stuck on the pricing issue with saving a nonInventorySaleItem via Restlet, so I'm trying to create it via the REST API but getting an error. The data I'm sending is below, but I'm getting this error.

400 Bad Request
"Error while accessing a resource. Please enter value(s) for: Tax Schedule."

{
    "costEstimateType": {
        "id": "ITEMDEFINED"
    },     
    "includeChildren": false,
    "incomeAccount": {
        "id": "262"
    },
    "expenseAccount": {
        "id": "706"
    },
    "isFulfillable": true,
    "isInactive": false,
    "itemId": "AC-TEST-ITEM-1",
    "taxSchedule": {"id": "1"},
    "itemType": {
        "id": "NonInvtPart"
    },
    "price": {
        "items": [{
			"price": 130.99,
			"priceLevel": {                
                "id": "1"                
                },
            "priceLevelName": "Base Price",
            "quantity": {
                "value": "0"
            }			
		}]
    },
    "salesDescription": "Test description for this new product"    
}

I found this link that I'm hoping isn't true, because it would really stink if the API requires a field that the API won't allow to be set.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 3 (Jul-Sep 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders