Skip to main content

Customer Sources

Get a list of customer sources

HTTP Request

[GET] /api/v6/accounts/sources

Query Parameters

Fields

FieldsTypeDescription
idintegerIdentifier
source_namestringSource name
source_codestringSource code
created_atstringCreation date
updated_attimestampModification date
validboolValid or not

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/"https://v6/accounts/sources" HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json

Status

200 OK

Response

{
"data": [
{
"id": 5,
"source_name": "Voucher - Partner 2",
"source_code": "voucher_partner_2",
"created_at": 1710899739,
"updated_at": null,
"valid": 1
},
{
"id": 4,
"source_name": "Voucher - partner3",
"source_code": "voucher_partner3",
"created_at": 1710899365,
"updated_at": null,
"valid": 1
},
{
"id": 2,
"source_name": "source from c3s",
"source_code": "source_from_c3s",
"created_at": 1710729654,
"updated_at": null,
"valid": 1
},
{
"id": 1,
"source_name": "Zalo-Getfly CRM",
"source_code": "zalo_getfly_crm",
"created_at": 1708657762,
"updated_at": null,
"valid": 1
}
],
"offset": 0,
"limited": false,
"sorted": {
"id": "DESC"
}
}