Referência da API
- Introdução
- Autenticação
- Catálogo
- Checkout
- Configurações
- Conteúdo
- Clientes
- Leads
- Logística
- Marketing
- Pedidos
- Sistema
- Promoções
- Filas
- Usuários
- Webhooks
- Loja Virtual
Banners
Listar coleções que o banner pertence
Retorna uma lista com os dados das coleções que um banner específico pertence
GET
/
{alias}
/
marketing
/
banners
/
{id}
/
collections
curl --request GET \
--url https://api.dooki.com.br/v2/{alias}/marketing/banners/{id}/collections \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>'
{
"data": [
{
"id": 123,
"parent_id": 123,
"active": true,
"show_banners": true,
"featured": true,
"is_promotional": true,
"name": "<string>",
"visible_products": 123,
"home": true,
"expired": true,
"slug": "<string>",
"description": "<string>",
"seo_title": "<string>",
"seo_keywords": "<string>",
"seo_description": "<string>",
"path": "<string>",
"expire_in": "<string>",
"total_products": 123,
"restriced": true,
"url": "<string>",
"stopwatch": "<string>",
"stopwatch_expires_in": "<string>",
"start_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"end_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
}
}
],
"meta": {
"pagination": {
"total": "10",
"count": "30",
"per_page": "10",
"current_page": "1",
"total_pages": "3",
"links": {
"previous": "",
"next": ""
}
}
}
}
Response
200
application/json
Lista de coleções associadas ao banner
Representa uma paginação com meta
Was this page helpful?
curl --request GET \
--url https://api.dooki.com.br/v2/{alias}/marketing/banners/{id}/collections \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>'
{
"data": [
{
"id": 123,
"parent_id": 123,
"active": true,
"show_banners": true,
"featured": true,
"is_promotional": true,
"name": "<string>",
"visible_products": 123,
"home": true,
"expired": true,
"slug": "<string>",
"description": "<string>",
"seo_title": "<string>",
"seo_keywords": "<string>",
"seo_description": "<string>",
"path": "<string>",
"expire_in": "<string>",
"total_products": 123,
"restriced": true,
"url": "<string>",
"stopwatch": "<string>",
"stopwatch_expires_in": "<string>",
"start_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"end_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
}
}
],
"meta": {
"pagination": {
"total": "10",
"count": "30",
"per_page": "10",
"current_page": "1",
"total_pages": "3",
"links": {
"previous": "",
"next": ""
}
}
}
}