---
title: "Modificar DDA"
method: PATCH
path: "/direct-debit/debits"
tags: ["Débito Direto Autorizado"]
---

# Modificar DDA

`PATCH /direct-debit/debits`

## Request

- Base URL: `https://api.sandbox.empresas.btgpactual.com`
- URL: `https://api.sandbox.empresas.btgpactual.com/direct-debit/debits`
- 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
  - `items` object[]
    - `hidden` boolean: Indica se o débito está oculto
    - `id` string: ID do DDA

## Response `200`

Ok

- DebitResponse
  - `data` Debit: Débito
    - `id` string: ID do DDA
    - `amount` number: Valor
    - `dueDate` string: Data
    - `expirationDate` string: Data
    - `digitableLine` string: Linha digitável
    - `payee` Payee: Emissor
      - `document` string
      - `fantasyName` string: Nome
      - `socialName` string: Nome
      - `bankCode` string: Código bancário
      - `bankName` string: Nome
    - `hidden` boolean: Indica se o débito está oculto
    - `status` 'CREATED' | 'OVERDUE' | 'PAYMENT_PENDING_APPROVAL' | 'PAYMENT_PROCESSING' | 'PAYMENT_CONFIRMED' | 'SCHEDULED': Status do débito
  - `_links` object
    - `next` Link
      - `rel` string
      - `href` string
      - `method` string
      - `type` string
    - `previous` 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)
