Search Favorite Lists
POST/v2/favoritelists/search
Search Favorite Lists
Request
- application/json
Body
required
Search orderlists. Use either an id or a source
Possible values: <= 64 characters
Favorite List name
Default Favorite List
Favorite List company ID
companySource
object
Source ID
Name of the source
Favorite List contact ID
contactSource
object
Source ID
Name of the source
Favorite List customer ID
customerSource
object
Source ID
Name of the source
Favorite List product IDs list
List of product sources
Favorite List cluster IDs list
List of cluster sources
Responses
- 200
- 400
- 403
- 500
Paginated list of FavoriteLists
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
items
object[]
required
List of items of type FavoriteListDto
Possible values: <= 64 characters
Favorite List name
Favorite List company ID
Favorite List contact ID
Favorite List customer ID
Favorite List product IDs list
Favorite List cluster IDs list
Default Favorite List
Favorite List slug
Favorite List date created
Favorite List date modified
Favorite List identifier
Total number of items found
Possible values: >= 1
Default value: 12
The amount of items to show per page
Possible values: >= 1
Default value: 1
The current page
Possible values: >= 1
Total amount of pages
Possible values: >= 1
Start position of the current page
Possible values: >= 1
End position of the current page
{
"items": [
{
"name": "MyFavoriteList",
"companyId": 1111,
"contactId": 1111,
"customerId": 1111,
"productIds": [
1111,
2222,
3333
],
"clusterIds": [
1111,
2222,
3333
],
"isDefault": true,
"slug": "my-favorite-list-slug",
"createdAt": "2022-01-01T00:00:00.000Z",
"updatedAt": "2022-01-01T00:00:00.000Z",
"id": "64e896addf2137b255101f49"
}
],
"itemsFound": 12,
"offset": 12,
"page": 4,
"pages": 1,
"start": 1,
"end": 12
}
Bad request
Forbidden.
Unknown search FavoriteList error