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

# Criar oferta do produto

> Obrigatório para definir preços e métodos de pagamento antes de realizar uma venda.

**Rota:** `POST /api/v1/products/{product_hash}/offers` · **Headers:** `X-Api-Client-Token`, `Authorization: Bearer <user_token>`

<Info>
  `product_hash` é o campo `hash` retornado em [Criar produto](/guia/criar-produto).
</Info>

## Parâmetros obrigatórios (body)

<ParamField body="name" type="string" required>
  Nome da oferta.
</ParamField>

<ParamField body="price" type="integer" required>
  Preço em centavos.
</ParamField>

<ParamField body="type_of_charge" type="string" required>
  `one-time` ou `recurring`.
</ParamField>

<ParamField body="allow_pix" type="boolean" required>
  Permite pagamento via Pix.
</ParamField>

<ParamField body="allow_bank_slip" type="boolean" required>
  Permite pagamento via boleto.
</ParamField>

<ParamField body="allow_credit_card" type="boolean" required>
  Permite pagamento via cartão de crédito.
</ParamField>

<ParamField body="installments" type="integer[]">
  Opções de parcelamento. Alternativa: `credit_card_installments_options` (array de inteiros).
</ParamField>

## Exemplo

```bash cURL theme={null}
curl -X POST https://nexus-sandbox.ticto.dev/api/v1/products/{product_hash}/offers \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "X-Api-Client-Token: <seu_client_auth_token>" \
  -H "Authorization: Bearer <seu_user_public_token>" \
  -d '{
    "name": "Oferta principal",
    "price": 50000,
    "type_of_charge": "one-time",
    "allow_pix": true,
    "allow_bank_slip": true,
    "allow_credit_card": true,
    "installments": [1, 2, 3, 6, 12]
  }'
```


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