_setArea
Sets the Area of a Customer.
Parameters
id
The ID of the Customer.
area_id
The ID of the Area to be set to the Customer.
Example
FM_api('Customer_setArea',[
'id' => '712687',
'area_id' => '90099'
]);
Result
On Success
{"ok":"1"}
If the Customer is already set to the requested Area's ID:
['ok":"1", "msg":"no change needed"}
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 "id" parameter value does not match an existing Customer ID:
{"error":"customer does not exist"}
Last updated