Skip to main content

Sync Customers

Get a list of newly added or updated customers from a specified time to the present

HTTP Request

[GET] /api/v6/accounts/sync

Query Parameters

Fields

FieldsTypeDescription
idintegerIdentifier
account_codestringCustomer code
account_namestringCustomer name
descriptionstringDescription
billing_address_streetstringAddress
phone_officenumericCustomer phone number
emailstringCustomer email
mgr_emailstringManager email
mgr_display_namestringManager name
websitestringWebsite
logostringCustomer photo
birthdaytimestampBirthday
sic_codestringTax code
created_attimestampCreation date
account_typestringCustomer type
account_sourcestringCompleter
relation_idintegerRelationship identifier
relation_namestringRelationship name
genderstringGender
total_revenuefloatTotal revenue
contactsarrayContacts
detail_custom_fieldsobjectDefined fields

Filtering

FieldsSupportTypeDescription
last_synceqtimestampUsed to filter customers created or modified from this timestamp to the present

Sort

Sort (field)Direction
idasc,desc

Limit & Offset

TypeDescription
LimitintegerNumber of records to retrieve
OffsetintegerNumber of records to skip

Example

HTTP Request

GET api/v6/accounts/sync?filtering[last_sync]=1699554513 HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json

Status

200 OK

Response

[
{
"account_id": "1",
"account_code": "BID00001",
"account_name": "Company A",
"description": "Company A",
"email": "",
"billing_address_street": "2132 Van Co - Viet Tri City",
"phone_office": "09443443337",
"logo": "https://xxxx.getflycrm.com/assets/images/noavatar.png",
"website": null,
"relation_id": "23",
"birthday": null,
"account_type": "1,2,3,4",
"account_source": null,
"sic_code": null,
"country_id": "0",
"province_id": "0",
"district_id": "0",
"contacts": [
{
"contact_id": "1",
"first_name": "Ta Quang Chung",
"last_name": null,
"phone_mobile": null,
"email": "[email protected]",
"description": "",
"title": "Manager"
}
],
"custom_fields": {
"brand": "VN",
"university": "",
"company_name": "",
"customer_email": "",
"order_date": ""
}
}
]