Customer Groups
Get a list of customer groups in the system
HTTP Request
[GET] /api/v6/accounts/types
Query Parameters
Fields
Fields | Type | Description |
---|---|---|
id | integer | Identifier |
level | integer | Customer type level |
account_type_name | string | Customer type name |
account_type_code | string | Customer type code |
description | string | Description |
invalid | bool | Valid or not |
parent_id | integer | Parent customer type |
created_at | timestamp | Creation date |
updated_at | timestamp | Creation date |
deleted_at | timestamp | Deletion date |
deleted_by | integer | Deleter |
Filtering
Fields | Support | Type | Description |
---|---|---|---|
id | eq,in | integer | Customer identifier |
valid | is,in | integer | Valid or not |
Sort
Sort (field) | Direction |
---|---|
id | 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/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"
}
]