> ## Documentation Index
> Fetch the complete documentation index at: https://docs-loja.usecorvex.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Gift (brinde)

> Brinde de checkout ativo na vitrine.

Brinde **ativo** configurado em **Checkout → Brindes** no dashboard. Retornado pelo checkout marketing da loja.

## Disponível em

* ✅ `storefront.gifts.list()`
* ✅ `storefront.gifts.eligible()` (carrinho atual)
* ✅ `data: ['gifts']` em seções de carrinho / promoção

## Campos

| Campo | Tipo | Descrição |
| - | - | - |
| `id` | `string` | UUID |
| `name` | `string` | Nome exibido |
| `description` | `string \| null` | Texto do lojista |
| `minCartQuantity` / `maxCartQuantity` | `number \| null` | Faixa de itens no carrinho |
| `minCartTotal` / `maxCartTotal` | `number \| null` | Faixa de subtotal |
| `priority` | `number` | Ordem / prioridade |
| `startsAt` / `endsAt` | `string \| null` | Vigência |
| `targetProduct` | `unknown` | Regra de produto-alvo (quando houver) |
| `product` | `GiftProduct \| null` | Produto do brinde (imagem, preço, variantes) |

### `product`

| Campo | Tipo |
| - | - |
| `id` / `name` / `slug` | `string` |
| `image` | `string \| null` (URL) |
| `pricing.price` / `pricing.compareAtPrice` | `number` |
| `variants[]` | variantes com `id`, `title`, `price`, `image`, `stock` |

## Exemplo — listagem

```js theme={"theme":{"light":"github-light","dark":"github-dark"}}
const { nodes: gifts } = await storefront.gifts.list({
  subtotal: cart?.subtotalPrice ?? 0,
});

gifts.map((gift) => (
  <div key={gift.id}>
    <img src={gift.product?.image || ''} alt={gift.name} />
    <p>{gift.name}</p>
  </div>
));
```

Para filtrar pelo carrinho atual no cliente, use [gifts.eligible](https://docs-loja.usecorvex.com.br/data/actions/gifts-eligible.md).

Veja [gifts.list](https://docs-loja.usecorvex.com.br/data/queries/gifts-list.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.