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
creditlimit to 0.0, while the UI allows it? - Is there a known workaround? (e.g., SuiteScript RESTlets, SuiteTalk SOAP API, or another method)
- What are the actual min/max allowed values for
creditlimit in the REST API? Can this be modified through configuration?
Would appreciate any insights or suggestions. Thanks!