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/v3/accounts/sync

Query Parameters

last_sync The last sync time in unix time format

Response

{
"data": [
{
"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": "Biosky",
"university": "",
"company_name": "",
"customer_email": "",
"order_date": "",
}
},
{
"account_id": "1",
"account_code": "KH0001",
"account_name": "GetFly Vietnam Technology Company A",
"description": "ss",
"email": "[email protected]",
"billing_address_street": "Linh Dam - Hoang Mai - Hanoi",
"phone_office": "09443443344",
"logo": "https://xxxx.getflycrm.com/uploads/crm/account/logo/1/",
"website": null,
"relation_id": "8",
"birthday": "2017-11-23",
"account_type": "10",
"account_source": "4",
"sic_code": "111222333",
"country_id": "1",
"province_id": "0",
"district_id": "0",
"contacts": [
{
"contact_id": "2",
"first_name": "Nguyen Dinh Dat",
"last_name": null,
"phone_mobile": "0462627662",
"email": "[email protected]",
"description": "",
"title": "Gang Leader"
},
{
"contact_id": "3",
"first_name": "Ta Quang Chung",
"last_name": null,
"phone_mobile": null,
"email": "[email protected]",
"description": "",
"title": "Top"
}
],
"custom_fields": {
"brand": "",
"university": "",
"company_name": "",
"customer_email": "",
"order_date": "",
}
}
],
"meta": {
"limit": 20,
"offset": 0,
"total_record": "2"
}
}