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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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