Skip to main content

Customer Groups

Get a list of customer groups in the system

HTTP Request

[GET] /api/v6/accounts/types

Query Parameters

Fields

FieldsTypeDescription
idintegerIdentifier
levelintegerCustomer type level
account_type_namestringCustomer type name
account_type_codestringCustomer type code
descriptionstringDescription
invalidboolValid or not
parent_idintegerParent customer type
created_attimestampCreation date
updated_attimestampCreation date
deleted_attimestampDeletion date
deleted_byintegerDeleter

Filtering

FieldsSupportTypeDescription
ideq,inintegerCustomer identifier
validis,inintegerValid or not

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/types HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json

Status

200 OK

Response

[
{
"account_type_id": "1",
"account_type_name": "Contracted Customer",
"description": "",
"invalid": "0",
"created_at": "2015-09-11 15:34:18",
"updated_at": "2016-01-08 12:13:02",
"parent_id": "125",
"level": "2",
"title": "|-- Contracted Customer"
}
]