---
title: "NfseDistribuicao enableOptin"
method: PUT
path: "/api/v1/nfse/recebidas/captura-automatica"
tags: ["nfse"]
---

# NfseDistribuicao enableOptin

`PUT /api/v1/nfse/recebidas/captura-automatica`

## Request

- Base URL: `https://www.foxnfe.com.br`
- URL: `https://www.foxnfe.com.br/api/v1/nfse/recebidas/captura-automatica`
- Auth: HTTP bearer

## Request body

- PutApiV1NfseRecebidasCapturaAutomaticaRequest
  - `certificate_id` integer, required
  - `ambiente` 1 | 2, required

## Response `200`

Resposta implementada pelo controlador.

- object
  - `data` unknown
  - `message` string

## Other responses

- `422`: Resposta implementada pelo controlador.

---

[API](https://skmtc.dev/foxnfe/apis/fox-nf-e-api.md) · [All operations](https://skmtc.dev/foxnfe/apis/fox-nf-e-api/llms.txt) · [OpenAPI document](https://skmtc.dev/foxnfe/apis/fox-nf-e-api/revisions/8820a6e016b0?raw)
