Skip to main content

Add New

Add a new customer

HTTP Request

[POST] /api/v6/accounts

Body

ParameterTypeNullableRequireDescription
account_codestringCustomer code
account_namestringCustomer name
emailstringCustomer email
billing_address_streetstringAddress
phone_officestringPhone number
last_contact_namestringMain contact name
last_contact_phonestringMain contact phone
last_contact_emailstringMain contact email
last_contact_titlestringMain contact title
last_contact_birthdatetimestampMain contact birthday
account_managerintegeryesCustomer manager
account_typeinteger[]Customer group
account_sourceinteger[]Customer source
websitestringWebsite
birthdaytimestampBirthday
industryinteger[]Business industry
relation_idintegeryesRelationship
phone_faxstringFax number
country_idintegeryesCountry
province_idintegeryesProvince/City
district_idintegeryesDistrict
genderintegeryesGender
descriptionstringDescription
sic_codestringTax code
publisher_codestringReferral code
is_privateboolPrivate customer
is_create_careboolOption to create care schedule
related_user_idsinteger[]Related users
referrer_typestringReferral type
referrer_refintegeryesReferrer
contactsarrayCustomer contacts
contacts.idintegeryesContact identifier
contacts.first_namestringContact name
contacts.titlestringContact title
contacts.phone_homenumericContact phone number
contacts.birthdatetimestampContact birthday
contacts.emailstringContact email
contacts.gender_idintegerContact gender
contacts.descriptionstringContact description
contacts.email_unsubcribeboolUnsubscribe from email
contacts.is_primaryboolPrimary contact
custom_fieldsobjectCustom fields

custom_fields can be retrieved from API custom fields list

Example

HTTP Request

POST api/v6/accounts HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json
{
"account_name": "TEST ACCOUNT API",
"custom_fields": {
"field_1": 111 // field_1 is the field_name in the custom field list
},
"contacts": [
{
"first_name": "TEST CONTACT API"
}
]
}

Status

200 OK

Response

{
"message": "Successfully added",
"id": 4
}