---
title: "Take a connection back"
method: DELETE
path: "/api/v1/banking/ponto/connections/{id}"
tags: ["Money"]
---

# Take a connection back

`DELETE /api/v1/banking/ponto/connections/{id}`

## Request

- Base URL: `http://localhost:5180`
- URL: `http://localhost:5180/api/v1/banking/ponto/connections/{id}`
- Auth: API key in cookie `better-auth.session_token`

Ends the integration at Ponto first, which is also what stops Ponto billing for it, then drops the tokens and marks the connection revoked. The row stays and the accounts keep their movements, and their feeds go back to statements by upload. `atPonto` says whether Ponto confirmed it, and a 404 there counts as ended; one it did not confirm is listed as `ending`, and taking it back again asks once more. Taking back one already taken back asks Ponto again by organization and writes nothing twice. Owners only.

## Path parameters

- `id` string, required

## Response `200`

Revoked.

- object
  - `ok` unknown, required
  - `data` object, required
    - `revoked` boolean, required
    - `atPonto` boolean, required: Whether Ponto confirmed the integration ended.
  - `meta` object, required
    - `requestId` string, required: Echoed in the x-request-id header. Quote it in a bug report.

## Other responses

- `403`: Only an owner of the team may do this, and support may not do it for a customer. A member is refused with `details.reason` `owner_only`.
- `404`: No such connection on this team.

---

[API](https://skmtc.dev/dardaris/apis/dardaris-api.md) · [All operations](https://skmtc.dev/dardaris/apis/dardaris-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dardaris/apis/dardaris-api/revisions/4aff33835c73?raw)
