GET
/
{alias}
/
marketing
/
banners
/
{id}
/
promotions
Listar promoções que o banner pertence
curl --request GET \
  --url https://api.dooki.com.br/v2/{alias}/marketing/banners/{id}/promotions \
  --header 'User-Secret-Key: <api-key>' \
  --header 'User-Token: <api-key>'
{
  "data": [
    {
      "id": 123,
      "active": true,
      "all_products": true,
      "utm_only": true,
      "highlight_on_menu": true,
      "accumulate": true,
      "price_attribute": "<string>",
      "name": "Promoção relâmpago",
      "expired": true,
      "url": "https://www.domain.com/promocoes/test",
      "slug": "<string>",
      "value": 123,
      "utm_source": "google",
      "utm_campaign": "adwords",
      "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": ""
      }
    }
  }
}

Authorizations

User-Token
string
header
required
User-Secret-Key
string
header
required

Path Parameters

alias
string
required

Alias da loja

id
integer
required

ID do banner

Response

Lista de promoções associadas ao banner

Representa uma paginação com meta

data
Promoção · object[]
meta
object