curl --request GET \
--url https://api.dooki.com.br/v2/{alias}/catalog/flags \
--header 'Content-Type: application/json' \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>' \
--data '{
"active": true,
"is_visible": true,
"name": "Coleção 2017",
"slug": "colecao-2017",
"text_color": "#ffffff",
"background_color": "#000000",
"image_url": "https://image.com/selo.gif"
}'
{
"data": [
{
"id": 123,
"active": true,
"is_visible": true,
"name": "Coleção 2017",
"slug": "colecao-2017",
"total_products": 123,
"text_color": "#ffffff",
"background_color": "#000000",
"image_url": "https://image.com/selo.gif",
"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"
}
}
]
}
Lista de selos com base nos parâmetros fornecidos
curl --request GET \
--url https://api.dooki.com.br/v2/{alias}/catalog/flags \
--header 'Content-Type: application/json' \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>' \
--data '{
"active": true,
"is_visible": true,
"name": "Coleção 2017",
"slug": "colecao-2017",
"text_color": "#ffffff",
"background_color": "#000000",
"image_url": "https://image.com/selo.gif"
}'
{
"data": [
{
"id": 123,
"active": true,
"is_visible": true,
"name": "Coleção 2017",
"slug": "colecao-2017",
"total_products": 123,
"text_color": "#ffffff",
"background_color": "#000000",
"image_url": "https://image.com/selo.gif",
"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"
}
}
]
}
Alias da loja
Lista de selos retornada com sucesso
The response is of type object
.
Was this page helpful?