Acesso Comercial / Docs / Storefront / API
Ctrl K
OBJECT

Funnel

Funil de upsell e cross-sell com ofertas sequenciais pós-checkout.

Usado em: clientfunnels

Campos

CampoTipoDescrição
idID!ID global Relay do funil.
offers[Offer!]!Lista de ofertas do funil em ordem sequencial.

Offer

CampoTipoDescrição
idID!ID global Relay da oferta.
typeString!Tipo da oferta (ex: "upsell", "downsell").
discountFloat!Percentual de desconto da oferta.
productProductProduto oferecido.

Query

GraphQL
query GetFunnels($hostname: String!) {
  client(hostname: $hostname) {
    funnels {
      id
      offers {
        id
        type
        discount
        product {
          id
          title
          price
          images { url }
        }
      }
    }
  }
}

Resposta

JSON
{
  "data": {
    "client": {
      "funnels": [
        {
          "id": "RnVubmVsOmFiYzE=",
          "offers": [
            {
              "id": "T2ZmZXI6YWJjMQ==",
              "type": "upsell",
              "discount": 15.0,
              "product": {
                "id": "UHJvZHVjdDpkZWYy",
                "title": "Kit Camisetas (3 unidades)",
                "price": 14990,
                "images": [{ "url": "https://..." }]
              }
            }
          ]
        }
      ]
    }
  }
}