_get

Retrieve a Customers data.

Parameters

id

The ID of the Customer to retrieve.

fields (optional)

Optional JSON array (of the form ["id", "name", "notes", ...],) of fields that should be returned. As of now, the full list of valid field names is: department_id, account_number, id, name, notes, email, last_edited, industry, parent_id, street_address1, street_address2, town, county, postcode, landline, mobile, contact_name, cdate, created_by, custom_values, callback, account_manager, type, meta, callback_notes, latitude, longitude, is_active, city, state, country, last_edited_all, is_flagged, contacts

Example

FM_api('Customer_get', ['id' => '3']);

Result

On Success

{"account_number":"","id":"1","name":"The Cafe","notes":"[]","email":"thecafe@hotmail.co.uk","last_edited":"2018-10-01 10:18:38","industry":"","parent_id":"-1","street_address1":"58 Milltown street","street_address2":"","town":"","county":"Down","postcode":"BT34 3PU","landline":"02841753979","mobile":"","contact_name":"Emily","cdate":"2018-09-19 11:52:56","created_by":"82878","custom_values":"[]","callback":null,"account_manager":"0","type":"","meta":null,"callback_notes":null,"latitude":"54.1276","longitude":"-6.26376","is_active":"1","city":"Newry","state":"","country":"GBR"}

Last updated