---
title: "Ativar DDA para o usuário"
method: POST
path: "/direct-debit"
tags: ["Débito Direto Autorizado"]
---

# Ativar DDA para o usuário

`POST /direct-debit`

## Request

- Base URL: `https://api.sandbox.empresas.btgpactual.com`
- URL: `https://api.sandbox.empresas.btgpactual.com/direct-debit`
- Auth: OAuth 2
  - Authorization code: `https://id.btgpactual.com/oauth2/authorize`
  - Token URL: `https://id.btgpactual.com/oauth2/token` scopes: `brn:btg:empresas:banking:direct-debit`

## Request body

- object
  - `tags` Tag[]
    - `key` string: Chave da tag
    - `value` string: Valor da tag

## Response `200`

Ok

- DirectDebitResponse
  - `data` DirectDebit
    - `id` string: ID do DDA
    - `owner` object
      - `document` string
      - `name` string: Nome
    - `status` 'ENABLED' | 'DISABLED' | 'PENDING_ENABLED' | 'PENDING_DISABLED': Status do DDA
    - `tags` Tag[]
      - `key` string: Chave da tag
      - `value` string: Valor da tag
  - `_links` object
    - `enable` Link
      - `rel` string
      - `href` string
      - `method` string
      - `type` string
    - `disable` Link
      - `rel` string
      - `href` string
      - `method` string
      - `type` string

## Other responses

- `400`: Bad Request
- `403`: Forbidden

---

[API](https://skmtc.dev/btgpactual/apis/folha-de-pagamentos.md) - [All operations](https://skmtc.dev/btgpactual/apis/folha-de-pagamentos/llms.txt) - [OpenAPI document](https://skmtc.dev/btgpactual/apis/folha-de-pagamentos/revisions/2a24d3da114c?raw)
