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

# Cancelar cobrança com split

`DELETE /charges/{charge_id}.`

Rota para cancelar uma cobrança com split, definindo a regra de split e os recebedor que irão participar da divisão dos pagamentos.

## 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.
  - `split` object — Lista de regras de split.
    - `amount` integer, required — Valor da regra de split
    - `recipient_id` string, required — Código do recebedor. Formato: `rp_XXXXXXXXXXXXXXXX`.
    - `type` string, required — Tipo do valor (amount). valores possíveis: 'flat' ou 'percentage'
    - `options` object
      - `charge_processing_fee` boolean, required — Indica se o recebedor vinculado à regra será cobrado pelas taxas da transação
      - `charge_remainder_fee` boolean, required — Indica se o recebedor vinculado à regra irá receber os centavos da divisão
      - `liable` boolean, required — Indica se o recebedor é responsável pela transação em caso de chargeback.

## Response `200`

200

- object
  - `id` string
  - `code` string
  - `gateway_id` 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
  - `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
    - `document` string
    - `type` string
    - `delinquent` boolean
    - `address` object
      - `id` string
      - `line_1` string
      - `line_2` string
      - `street` string
      - `number` string
      - `complement` string
      - `zip_code` string
      - `neighborhood` 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
      - `mobile_phone` object
        - `country_code` string
        - `number` string
        - `area_code` string
    - `metadata` object
      - `company` string
  - `last_transaction` object
    - `id` string
    - `transaction_type` string
    - `funding_source` string
    - `gateway_id` string
    - `amount` integer
    - `status` string
    - `success` boolean
    - `installments` integer
    - `statement_descriptor` string
    - `acquirer_name` string
    - `acquirer_tid` string
    - `acquirer_nsu` 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
        - `street` string
        - `number` string
        - `zip_code` string
        - `neighborhood` string
        - `city` string
        - `state` string
        - `country` string
        - `line_1` string
    - `created_at` string
    - `updated_at` string
    - `gateway_response` object
      - `code` string
      - `errors` object[]
    - `antifraud_response` object
    - `split` object[]
      - `id` string
      - `type` string
      - `gateway_id` string
      - `amount` integer
      - `recipient` object
        - `id` string
        - `name` string
        - `email` string
        - `document` string
        - `description` string
        - `type` string
        - `status` string
        - `created_at` string
        - `updated_at` string
      - `options` object
        - `liable` boolean
        - `charge_processing_fee` boolean
        - `charge_remainder_fee` boolean
    - `metadata` object

## Other responses

- `400` — 400

---

[API](https://skmtc.net/mundipagg/apis/mundipagg-api.md) · [All operations](https://skmtc.net/mundipagg/apis/mundipagg-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mundipagg/mundipagg-api/versions/1ddb9f03a82d/schema)
