---
title: "Cancelar saque"
method: POST
path: "/v1/cashouts/{id}/cancel"
tags: ["Saques"]
---

# Cancelar saque

`POST /v1/cashouts/{id}/cancel`

## Request

- Base URL: `https://api-payment.safefypay.com.br`
- URL: `https://api-payment.safefypay.com.br/v1/cashouts/{id}/cancel`
- Auth: HTTP bearer

Cancela um saque pendente. Apenas saques com status Pending podem ser cancelados.

## Path parameters

- `id` string, uuid, required

## Response `200`

Saque cancelado

- CancelCashoutResponse
  - `data` CancelCashoutData, nullable
    - `id` string, uuid: ID do saque cancelado
    - `status` string: Novo status
  - `message` string, nullable
  - `error` ApiErrorResponse, nullable
    - `message` string: Mensagem de erro
    - `code` string: Codigo do erro

## Other responses

- `400`: Saque nao pode ser cancelado
- `401`: Nao autorizado
- `404`: Saque nao encontrado

## Changes

- **2026-01-18** `b1ec8dd7262c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/safefy-pay/apis/safefy-pix-gateway/changes/v1/cashouts/:id/cancel/post.md)

---

[API](https://skmtc.dev/safefy-pay/apis/safefy-pix-gateway.md) - [All operations](https://skmtc.dev/safefy-pay/apis/safefy-pix-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/safefy-pay/apis/safefy-pix-gateway/revisions/57157be53ccc?raw)
