---
title: "Cancelar cobrança"
method: DELETE
path: "/charges/{charge_id}"
---

# Cancelar cobrança

`DELETE /charges/{charge_id}`

## Request

- Base URL: `https://api.pagar.me/core/v5`
- URL: `https://api.pagar.me/core/v5/charges/{charge_id}`
- Auth: HTTP basic

## Path parameters

- `charge_id` string, required

## Request body

- object
  - `amount` integer: Valor a ser cancelado. Caso não seja informado, será considerado o valor total da cobrança.
  - `reason` string: Código do motivo do cancelamento. Consulte a tabela de códigos de cancelamento para os valores disponíveis.

## Response `200`

200

- union
  - object
    - `id` string
    - `code` string
    - `amount` integer
    - `paid_amount` integer
    - `canceled_amount` integer
    - `status` string
    - `currency` string
    - `payment_method` string
    - `paid_at` string
    - `canceled_at` string
    - `created_at` string
    - `updated_at` string
    - `customer` object
      - `id` string
      - `name` string
      - `email` string
      - `delinquent` boolean
      - `created_at` string
      - `updated_at` string
      - `phones` object
    - `last_transaction` object
      - `id` string
      - `transaction_type` string
      - `funding_source` string
      - `amount` integer
      - `status` string
      - `success` boolean
      - `installments` integer
      - `statement_descriptor` string
      - `acquirer_tid` string
      - `acquirer_nsu` string
      - `acquirer_auth_code` string
      - `acquirer_message` string
      - `acquirer_return_code` string
      - `operation_type` string
      - `card` object
        - `id` string
        - `first_six_digits` string
        - `last_four_digits` string
        - `brand` string
        - `holder_name` string
        - `exp_month` integer
        - `exp_year` integer
        - `status` string
        - `type` string
        - `created_at` string
        - `updated_at` string
        - `billing_address` object
          - `zip_code` string
          - `city` string
          - `state` string
          - `country` string
          - `line_1` string
      - `created_at` string
      - `updated_at` string
      - `gateway_response` object
        - `code` string
        - `errors` object[]
    - `metadata` object
      - `code` string
  - object
    - `id` string
    - `code` string
    - `gateway_id` string
    - `amount` integer
    - `paid_amount` integer
    - `status` string
    - `currency` string
    - `payment_method` string
    - `paid_at` string
    - `created_at` string
    - `updated_at` string
    - `order` object
      - `id` string
      - `code` string
      - `amount` integer
      - `closed` boolean
      - `created_at` string
      - `updated_at` string
      - `closed_at` string
      - `currency` string
      - `status` string
      - `customer_id` string
    - `customer` object
      - `id` string
      - `name` string
      - `email` string
      - `code` string
      - `document` string
      - `type` string
      - `delinquent` boolean
      - `address` object
        - `id` string
        - `line_1` string
        - `line_2` string
        - `zip_code` string
        - `city` string
        - `state` string
        - `country` string
        - `status` string
        - `created_at` string
        - `updated_at` string
      - `created_at` string
      - `updated_at` string
      - `phones` object
        - `home_phone` object
          - `country_code` string
          - `number` string
          - `area_code` string
    - `last_transaction` object
      - `id` string
      - `transaction_type` string
      - `gateway_id` string
      - `amount` integer
      - `status` string
      - `success` boolean
      - `paid_amount` integer
      - `paid_at` string
      - `url` string
      - `pdf` string
      - `line` string
      - `barcode` string
      - `qr_code` string
      - `nosso_numero` string
      - `type` string
      - `bank` string
      - `document_number` string
      - `instructions` string
      - `due_at` string
      - `created_at` string
      - `updated_at` string
      - `gateway_response` object
        - `errors` object[]
      - `antifraud_response` object
      - `metadata` object

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `ef323290c0ff`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pagar/apis/pagarme-api/changes/charges/:charge_id/delete.md)

---

[API](https://skmtc.dev/pagar/apis/pagarme-api.md) - [All operations](https://skmtc.dev/pagar/apis/pagarme-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pagar/apis/pagarme-api/revisions/ef323290c0ff?raw)
