# Cadastro de Voucher

## CadastrarVouchersPremios

<mark style="color:green;">`POST`</mark> `https://api.fidelimax.com.br/api/Integracao/CadastrarVoucherPremios`

Os vouchers cadastrados são cupons de desconto/frete grátis que são criados nas lojas online. \
Esses vouchers não são exibidos no resgate de vouchers dentro da plataforma e nem nos demais endpoints da API, os vouchers dos endpoints de "Consultar Vouchers" e "Resgatar Vouchers" são os criados automaticamente pela plataforma.

Exemplo no POSTMAN - <https://www.postman.com/fidelimax/workspace/fidelimax-api-1-0/request/18773698-88af45ad-1f0b-430d-b8dc-deefc7455e3a>

#### Headers

| Name                                           | Type   | Description                                                                                                    |
| ---------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------- |
| AuthToken<mark style="color:red;">\*</mark>    | string | Token de integração que está na sua plataforma de controle em Integrações > API da Fidelimax > Quero Integrar. |
| Content-Type<mark style="color:red;">\*</mark> | String | application/json                                                                                               |

#### Request Body

| Name                                              | Type   | Description                                                                                                                                                                                             |
| ------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| codigo\_externo<mark style="color:red;">\*</mark> | string | Identificador único vinculado ao prêmio, ele é utilizado quando é necessário resgatar um prêmio via API e ao incluir vouchers na API                                                                    |
| voucher<mark style="color:red;">\*</mark>         | string | Identificador único vinculado que será enviado ao cliente quando ele resgatar o prêmio, ele será um voucher/cupom que é gerado na sua loja online que pode dar descontos/frete grátis ao seus clientes. |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
{  
  "CodigoResposta": 100,
  "MensagemErro": null
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fidelimax.com.br/voucher/cadastro-de-voucher.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
