Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Unable to Set creditlimit to 0 via REST API (Works in UI)
I’m facing an issue when trying to set the creditlimit field for a customer via the NetSuite REST API. When I attempt to set it to 0.0, I receive the following error:
"Error while accessing a resource. Value 0.0 outside of valid min/max range for field creditlimit."
However, I can set creditlimit to 0 without any issues using the NetSuite UI. This makes me wonder if the API has stricter validation rules compared to the UI.
A few questions:
- Why does the REST API prevent setting
creditlimitto0.0, while the UI allows it? - Is there a known workaround? (e.g., SuiteScript RESTlets, SuiteTalk SOAP API, or another method)
Tagged:
0