get
https://{Host}/v2/product/brands
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Use this API to retrieve product brand details from your organisation. You can fetch brands in bulk, search brands by name, or retrieve specific brands using brand codes or brand IDs. The API supports pagination, sorting, and filtering, and can optionally return brand hierarchies such as parent and child brands.
You can use this API to:
- Fetch all brands in the organisation.
- Search brands by brand name prefix (first few words of the brand).
- Retrieve specific brands using brand codes or IDs.
- Fetch only root-level brands.
- Retrieve parent–child brand relationships for a single brand.
- Filter brands by organisation unit (OU) when OU support is enabled.
The response includes brand metadata, hierarchy details (when requested), attribution information, and pagination details.
Example request
curl --location 'https://eu.api.capillarytech.com/v2/product/brands' \
--header 'Authorization: Basic ' \
--header 'Cookie: _cfuvid=9DWRtidwXo50cunVeT_TzRLfzWUtuDnZ4BhU0CU8nL4-1762419809122-0.0.1.1-604800000'curl --location 'https://nightly.api.capillarytech.com/v2/product/brands?entityCodes=brandou%2C%20cycleBrand' \
--header 'Authorization: Basic bmVl==' \
--header 'Cookie: _cfuvid=adIdLElC8oafEHIbx7hw7GbX277Vu_kA.mTpq2xD18k-1762750332464-0.0.1.1-604800000'curl --location 'https://nightly.api.capillarytech.com/v2/product/brands?q=cycle' \
--header 'Authorization: Basic bmVlcmFqa3JpTM2ODI2NmMxOQ==' \
--header 'Cookie: _cfuvid=adIdLElC8oafEHIbx7hw7GbX277Vu_kA.mTpq2xD18k-1762750332464-0.0.1.1-604800000'Prerequisites
- Basic/OAuth authentication
Resource information
| Pagination support | Yes |
| Batch support | Yes |
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
q | string | Optional | Search brands by brand code. The brand code is the name of the product brand and appears as the name on the UI.This returns brands whose names start with the specified query string. This field is case-insensitive and supports UTF-8 characters. The maximum number of characters supported is 30. |
entityCodes | string | Optional | Single or comma-separated brand codes (brand name). The maximum number of entity codes supported is 30, and the maximum length allowed for a single entity code is 50. Example - Levis, Adidas.Used when q is not provided |
entityIds | string | Optional | Single or comma-separated list of brand IDs to retrieve. The maximum number of entity IDs supported is 30. Example - 1000, 1999.Used when q and entityCodes are not provided |
root | boolean | Optional | If set to true, it retrieves only root-level brands (brands with no parent). Cannot be used with entityCodes or entityIds filters. Default: false. |
includeChildren | boolean | Optional | Includes parent and children brands in the response. Only works when retrieving a single brand using entityCodes or entityIds. When multiple brands are returned, hierarchy is not included, and a warning is returned. Default: false |
childrenLimit | integer | Optional | Maximum number of child brands to include when includeChildren=true. Default: 10, Max: 20 |
childrenOffset | integer | Optional | Number of child brands to skip when includeChildren=true. Use for paginating through child brands. Default: 0. For example, if you set the value to 10, it skips the first 10 child entities and return the next set. |
limit | integer | Optional | Maximum number of brands to retrieve. The default value is 10, and the maximum allowed value is 100. |
offset | integer | Optional | Number of brands to skip from the beginning of the result set. Use for pagination. |
sortBy | string | Optional | Field to sort by. Supported values: id, code. Default: id |
sortOrder | string | Optional | Sort direction. Supported values: ASC, DESC. Default: ASC |
ouCode | string | Optional | Organization unit code. Use to filter brands by organizational unit when OU support is enabled. |
fetchType | string | Scope of brands to fetch. Values: ALL (master org and OU), ORG (master org only), SCOPE (OU only). |
Example response
{
"data": [
{
"id": 194757,
"orgId": 50583,
"ouId": -1,
"code": "brand",
"name": "brand",
"attribution": {
"createdBy": 15000449,
"createdDate": "2022-08-31T00:00:00+05:30",
"modifiedDate": "2022-08-31T00:00:00+05:30"
}
},
{
"id": 194758,
"orgId": 50583,
"ouId": 50025951,
"code": "brandou",
"name": "brandou",
"attribution": {
"createdBy": 15000449,
"createdDate": "2022-08-31T00:00:00+05:30",
"modifiedDate": "2022-08-31T00:00:00+05:30"
}
},
{
"id": 197785,
"orgId": 50583,
"ouId": -1,
"code": "cycleBrand",
"name": "cycleBrand",
"parent": {
"id": 194757,
"code": "brand",
"name": "brand"
},
"attribution": {
"createdBy": 15000449,
"createdDate": "2022-12-28T00:00:00+05:30",
"modifiedDate": "2022-12-28T00:00:00+05:30"
}
},
{
"id": 1205401,
"orgId": 50583,
"ouId": -1,
"code": "brand_code",
"name": "brand_name13",
"parent": {
"id": 194757,
"code": "brand",
"name": "brand"
},
"attribution": {
"createdBy": 50685381,
"createdDate": "2024-07-03T00:00:00+05:30",
"modifiedDate": "2024-07-03T00:00:00+05:30"
}
},
{
"id": 1205459,
"orgId": 50583,
"ouId": -1,
"code": "ARROW NEWYORK",
"name": "ARROW NEWYORK",
"attribution": {
"createdBy": 50685381,
"createdDate": "2024-07-10T00:00:00+05:30",
"modifiedDate": "2024-07-10T00:00:00+05:30"
}
},
{
"id": 1205460,
"orgId": 50583,
"ouId": -1,
"code": "ARROW FORMALS",
"name": "ARROW FORMALS",
"attribution": {
"createdBy": 50685381,
"createdDate": "2024-07-10T00:00:00+05:30",
"modifiedDate": "2024-07-10T00:00:00+05:30"
}
},
{
"id": 1242083,
"orgId": 50583,
"ouId": -1,
"code": "Rolex",
"name": "Rolex Watches",
"attribution": {
"createdBy": 50019411,
"createdDate": "2025-09-19T00:00:00+05:30",
"modifiedDate": "2025-09-19T00:00:00+05:30"
}
},
{
"id": 1242084,
"orgId": 50583,
"ouId": -1,
"code": "Arrow_Sport",
"name": "Arrow Sport",
"parent": {
"id": 1205460,
"code": "ARROW FORMALS",
"name": "ARROW FORMALS"
},
"attribution": {
"createdBy": 50019411,
"createdDate": "2025-09-19T00:00:00+05:30",
"modifiedDate": "2025-09-19T00:00:00+05:30"
}
},
{
"id": 1242085,
"orgId": 50583,
"ouId": -1,
"code": "Rolex_123",
"name": "Rolex Watches 123",
"attribution": {
"createdBy": 50019411,
"createdDate": "2025-09-19T00:00:00+05:30",
"modifiedDate": "2025-09-19T00:00:00+05:30"
}
},
{
"id": 1242086,
"orgId": 50583,
"ouId": -1,
"code": "Rolex_234",
"name": "Rolex Watches 234",
"parent": {
"id": 1242085,
"code": "Rolex_123",
"name": "Rolex Watches 123"
},
"attribution": {
"createdBy": 50019411,
"createdDate": "2025-09-19T00:00:00+05:30",
"modifiedDate": "2025-09-19T00:00:00+05:30"
}
}
],
"pagination": {
"limit": 10,
"offset": 0,
"total": 16
}
}{
"data": [
{
"id": 194757,
"orgId": 50583,
"ouId": -1,
"code": "brand",
"name": "brand",
"children": {
"data": [
{
"id": 197785,
"code": "cycleBrand",
"name": "cycleBrand"
},
{
"id": 1205401,
"code": "brand_code",
"name": "brand_name13"
}
],
"pagination": {
"limit": 10,
"offset": 0,
"total": 2
}
},
"attribution": {
"createdBy": 15000449,
"createdDate": "2022-08-31T00:00:00+05:30",
"modifiedDate": "2022-08-31T00:00:00+05:30"
}
}
],
"pagination": {
"limit": 10,
"offset": 0,
"total": 1
}
}Response parameters
| Field | Type | Description |
|---|---|---|
data | array | Array of brand objects matching the query. |
.id | long | Unique identifier of the brand. |
.code | string | Brand code. |
.name | string | Brand name. |
.description | string | Brand description. |
.ouId | long | Organization unit ID. -1 indicates the brand belongs to the master organization. |
.parent | object | Parent brand information (only when includeChildren=true). |
.parent.id | long | Parent brand ID. |
.parent.code | string | Parent brand code. |
.parent.name | string | Parent brand name. |
.children | array | Array of child brands (only when includeChildren=true). |
..id | long | Child brand ID. |
..code | string | Child brand code. |
..name | string | Child brand name. |
.attribution | object | Information about who created and last updated the brand. |
..createdBy | long | User ID who created the brand. |
..createdOn | string | Timestamp when the brand was created. Returned in ISO 8601 format with the organisation’s configured timezone offset. |
..updatedBy | long | User ID who last updated the brand. |
..updatedOn | string | Timestamp when the brand was last updated. Returned in ISO 8601 format with the organisation’s configured timezone offset. |
pagination | object | Pagination information. |
.limit | integer | Number of results per page. |
.offset | integer | Number of results skipped. |
.total | integer | Total number of brands matching the query. |
warnings | array | Array of warning messages (if any). |
Error & warning codes
| Code | Type | Description |
|---|---|---|
| 10007 | Error | You can pass a maximum of 30 entityCodes. The request included more than 30 values. |
| 10008 | Error | You can pass a maximum of 30 entityIds. The request included more than 30 values. |
| 10004 | Error | The limit value cannot be more than 100. |
| 10005 | Error | The limit value must be greater than 0. |
| 10006 | Error | The offset value cannot be negative. |
| 10002 | Error | OU-level product filtering is disabled for your organisation, but an ouCode was provided. Remove the ouCode parameter or contact your administrator. |
| 10001 | Error | The provided ouCode does not exist or is invalid. Check the code and try again. |
| 10009 | Warning | The q parameter was used. The entityCodes and entityIds filters were ignored. |
| 10010 | Warning | The entityCodes filter was used. The entityIds filter was ignored. |
| 10014 | Warning | The sortBy parameter is invalid. Results are sorted by id by default. |
| 10016 | Warning | The includeChildren parameter works only for a single entity. It was ignored for this request. |
| 10017 | Warning | The root parameter cannot be used with entityCodes or entityIds. It was ignored for this request. |
| 10011 | Warning | One or more blank values were found in entityCodes or entityIds. These values were ignored. |
| 10012 | Warning | Some entityIds contain non-numeric values. These values were ignored. |
| 10013 | Warning | All provided entityIds were invalid. The API returned all available entities instead. |
200Successful response
