Sets the credit terms for a Customer with a given ID
The ID of the Customer.
A string which will be the credit term set to the Customer.
FM_api('Customer_setCreditTerms',[ 'id'=>'683042', 'value'=>'Test Credit Term' ] );
{"ok":1"}
If the "value" parameter is the exact same as the current credit terms for the Customer:
If no "id" parameter is provided or it has a value less than 1:
If the "value" parameter has a length higher than 255 characters:
If the "id" parameter does not match the ID of an existing Customer:
Last updated 2 years ago
{"ok":1,"msg":"no change needed"}
{"error":"missing or invalid parameter: id"}
{"error":"max length of value is 255"}
{"error":"customer does not exist"}