---
title: "Incluir cobrança no pedido"
method: POST
path: "/charges"
---

# Incluir cobrança no pedido

`POST /charges`

Enquanto um pedido estiver **aberto**, é possível adicionar novas cobranças utilizando o `order_id` na criação de uma cobrança.

## Request body

- object
  - `order_id` string, required — Código do pedido
  - `amount` integer, required — Valor da cobrança em centavos
  - `payment` object, required — Dados sobre pagamento. [Saiba mais sobre pagamentos](https://docs.mundipagg.com/v1/reference#pagamento-overview)
  - `due_at` string, date — Data de vencimento da cobrança.
  - `customer_id` string — Código do cliente.
  - `customer` object — Dados do cliente. Se nem o **customer_id** nem o **customer** forem informados, será considerado o mesmo cliente do pedido. [Saiba mais sobre clientes](https://docs.mundipagg.com/v1/reference#clientes)
  - `metadata` string — Objeto chave/valor utilizado para armazenar informações adicionais sobre a cobrança. [Saiba mais sobre metadata](https://docs.mundipagg.com/v1/reference#metadata).

## Response `200`

200

- object
  - `id` string
  - `code` string
  - `gateway_id` string
  - `amount` integer
  - `status` string
  - `currency` string
  - `payment_method` string
  - `due_at` string
  - `paid_at` string
  - `created_at` string
  - `updated_at` string
  - `order` object
    - `id` string
    - `code` string
    - `amount` integer
    - `currency` string
    - `closed` boolean
    - `status` string
    - `created_at` string
    - `updated_at` string
  - `customer` object
    - `id` string
    - `name` string
    - `email` string
    - `delinquent` boolean
    - `created_at` string
    - `updated_at` 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_affiliation_code` string
    - `acquirer_tid` string
    - `acquirer_nsu` string
    - `acquirer_auth_code` string
    - `acquirer_message` string
    - `acquirer_return_code` string
    - `operation_type` string
    - `credit_card` object
      - `id` string
      - `last_four_digits` string
      - `brand` string
      - `holder_name` string
      - `exp_month` integer
      - `exp_year` integer
      - `status` 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

## 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)
