_setCallbackNotes
Sets the Notes of a Callback for a Customer.
Parameters
id
The ID of the Customer.
val
The Notes to be included in the Callback as a text format, respects carriage returns (also TAB spaces).
Example
FM_api('Customer_setCallbackNotes',[
'id'=>'683158',
'val'=>'testline1
line2
!LINE3!'
]
);
Result
On Success
{"ok":"1"}
If the "val" parameter value is already set to the Customer:
['ok":"1", "msg":"value already set"}
On Failure
If the "id" parameter is not given a value or has a value less than 1:
{"error:":missing or invalid parameter: id"}
If the "val" parameter is not given a value:
{"error:":missing or invalid parameter: val"}
If the "id" parameter value does not match an existing Customer ID:
{"error":"customer does not exist"}
Last updated