CustomerGroup
CustomerGroup
List customer groups
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a specific page in a result set.
The number of items per page in a result set.
Defines which field the resource list is sorted by.
ENUM | Description |
---|---|
ASC | Sort in ascending order |
DESC | Sort in descending order |
GET /v2/tenants/{tenantUid}/customer-groups HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"items": [
{
"customerGroupUid": "text",
"name": "text",
"createdBy": "text",
"createdAt": "2025-07-30T18:10:06.447Z",
"lastModifiedBy": "text",
"lastModifiedAt": "2025-07-30T18:10:06.447Z"
}
],
"paging": {
"pageNumber": 1,
"pageSize": 1,
"totalCount": 1
}
}
Create customer group
Reference to a tenant.
^[A-Za-z0-9-_]+
^[A-Za-z0-9-_]*
POST /v2/tenants/{tenantUid}/customer-groups HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"name": "text",
"customerGroupUid": "text"
}
Example response
{
"customerGroupUid": "text",
"name": "text",
"createdBy": "text",
"createdAt": "2025-07-30T18:10:06.447Z",
"lastModifiedBy": "text",
"lastModifiedAt": "2025-07-30T18:10:06.447Z"
}
Get customer group for UID.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a customer group
GET /v2/tenants/{tenantUid}/customer-groups/{customerGroupUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"customerGroupUid": "text",
"name": "text",
"createdBy": "text",
"createdAt": "2025-07-30T18:10:06.447Z",
"lastModifiedBy": "text",
"lastModifiedAt": "2025-07-30T18:10:06.447Z"
}
Update customer group
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a customer group
PUT /v2/tenants/{tenantUid}/customer-groups/{customerGroupUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}
Example response
{
"customerGroupUid": "text",
"name": "text",
"createdBy": "text",
"createdAt": "2025-07-30T18:10:06.447Z",
"lastModifiedBy": "text",
"lastModifiedAt": "2025-07-30T18:10:06.447Z"
}
Delete customer group
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a customer group
DELETE /v2/tenants/{tenantUid}/customer-groups/{customerGroupUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No Content
No content
Get customer group with list of customers.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a customer group
Reference to a specific page in a result set.
The number of items per page in a result set.
Defines which field the resource list is sorted by.
ENUM | Description |
---|---|
ASC | Sort in ascending order |
DESC | Sort in descending order |
GET /v2/tenants/{tenantUid}/customer-groups/{customerGroupUid}/customers HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
CustomerListResponse
{
"items": [
{
"address": "text",
"city": "text",
"companyName": "text",
"countryCode": "text",
"createdAt": "2025-07-30T18:10:06.447Z",
"customerUid": "text",
"customerType": "COMPANY",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastModifiedAt": "2025-07-30T18:10:06.447Z",
"lastname": "text",
"ledgerNumber": "text",
"mobile": "text",
"postalCode": "text",
"pricelistUid": "text",
"vatNumber": "text",
"origin": "text",
"addresses": [
{
"address": "text",
"city": "text",
"companyName": "text",
"firstname": "text",
"lastname": "text",
"countryCode": "text",
"email": "text",
"phone": "text",
"postalCode": "text",
"type": "DELIVERY_ADDRESS",
"customerAddressUid": "text",
"displayName": "text"
}
],
"contacts": [
{
"firstname": "text",
"lastname": "text",
"email": "text",
"mobile": "text",
"createdAt": "2025-07-30T18:10:06.447Z",
"lastModifiedAt": "2025-07-30T18:10:06.447Z",
"customerContactUid": "text",
"extensions": [
{
"extensionCode": "TWO_INVOICE",
"organizationUid": "text"
}
],
"displayName": "text"
}
],
"extensions": [
{
"extensionCode": "TWO_INVOICE",
"organizationUid": "text"
}
],
"consents": [
{
"consentUid": "text",
"name": "text",
"status": true,
"source": "text",
"createdAt": "2025-07-30T18:10:06.447Z"
}
],
"loyaltyId": "text",
"displayName": "text",
"credit": {
"limit": 1,
"balance": 1
},
"paymentTerms": 1,
"internalNote": "text",
"accountManager": {
"tenantUserUid": "text",
"displayName": "text",
"userCode": "text"
},
"ehfEnabled": true,
"customerGroupUids": [
"text"
]
}
],
"paging": {
"pageNumber": 1,
"pageSize": 1,
"totalCount": 1
}
}
Add and/or remove customer group customers.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a customer group
PUT /v2/tenants/{tenantUid}/customer-groups/{customerGroupUid}/customers HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 58
{
"addCustomerUids": [
"text"
],
"removeCustomerUids": [
"text"
]
}
No Content
No content
Was this helpful?