_edit

Edit a customer

Required Parameters

  • name - name of the customer

  • landline - the contact number for the customer

  • id - customer ID

Example using required fields

FM_api(
	'Customer_edit',
	array(
		'id'=>'1',
		'landline'=>'012345678', // required if "requires contact number" is set in account settings
		'name'=>'A Test Customer'
	)
)

Result

{"ok":1}

Example with all optional fields

Result

Last updated