Skip to main content

List

Get customer information in the system

HTTP Request

[GET] /api/v6/accounts

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_sourcestringCustomer source
relation_idintegerRelationship identifier
relation_namestringRelationship name
genderstringGender
total_revenuefloatTotal revenue
contactsarrayContacts
account_managerintegerCustomer manager
accessible_user_idsarrayRelated users
custom_fieldsobjectDefined fields

Filtering

FieldsSupportTypeDescription
ideq,in,not_inintegerCustomer identifier
account_codeeq,containsstringCustomer code
account_nameeqstringCustomer name
relation_ideq,in,not_inintegerRelationship
phone_faxeq,containsnumericFax number
contact_phoneeq,containsnumericCustomer contact phone number
account_typeeq,in,not_instringCustomer type
account_sourceeq,instringCustomer source
industryeqstringRating
billing_address_streeteq,containsstringAddress
phone_officeeq,containsnumericPhone number
birthdayeq,gte,ltetimestampBirthday
birthday_dayeq,gte,lteintegerBirthday day
birthday_montheqintegerBirthday month
birthday_yeareqintegerBirthday year
websiteeq,containsstringWebsite
sic_codeeq,containsstringTax code
validis,inboolValid or not
emaileq,containsstringEmail
descriptioneq,containsstringDescription
country_ideqintegerCountry
province_ideqintegerProvince/City
district_ideqintegerDistrict
account_managereq,in,not_inintegerManager
source_typeeqstringSource type
created_ateq,gte,lte,betweentimestampCreation date
updated_ateq,gte,lte,betweentimestampModification date
gendereqintegerGender
creator_ideqintegerCreator
email_unsubcribeeqboolUnsubscribe from email
referrer_ideqintegerReferrer identifier
contact_ideqintegerContact identifier
contact_nameeq,containsstringContact name
contact_phoneeq,containsnumericContact number
contact_emaileq,containsstringContact email
has_sale_orderisboolHas sales order
sale_order_statuseq,inintegerSales order status
sale_order_dateeq,gte,lte,gt,lt,between,not_betweentimestampSales order date
has_purchase_orderisboolHas purchase order
purchase_order_dateeq,gte,lte,gt,lt,between,not_betweentimestampPurchase order date
campaign_ideqintegerCampaign
opportunity_status_ideq,inintegerOpportunity status
opportunity_created_ateq,gt,gte,lt,ltetimestampOpportunity creation date

Sort

| Sort (field) | Direction |
|:-------------|-----------|
| id | asc,desc |
| account_name | asc,desc |
| account_code | asc,desc |
| email | asc,desc |\

Limit & Offset

| | Type | Description |
|:-------|---------|--------------------------|
| Limit | integer | Number of records to retrieve |
| Offset | integer | Number of records to skip |\

Example

HTTP Request

GET api/v6/accounts?fields=account_name,custom_fields&filtering[id]=4&limit=1&offset=1 HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json

Status

200 OK

Response

{
"data": [
{
"id": 4,
"account_name": "TEST ACCOUNT API",
"account_manager": 123,
"accessible_user_ids": [1,2,3,4],
"custom_fields": {
"field_1": 111
}
}
],
"has_more": false,
"offset": 0,
"limited": 1
}