---
title: "Editar meio de pagamento da assinatura"
method: PATCH
path: "/subscriptions/{subscription_id}/payment-method"
---

# Editar meio de pagamento da assinatura

`PATCH /subscriptions/{subscription_id}/payment-method`

Com o verbo HTTP PATCH, através do identificador da assinatura (`subscription_id`) é possível atualizar o meio de pagamento da assinatura.

## Path parameters

- `subscription_id` string, required

## Request body

- object
  - `payment_method` string, required — Meio de pagamento.<br>Valores possíveis: **credit_card**, **boleto**, **cash** ou **debit_card** .
  - `card_id` string, required — Código do novo cartão.<br>**Obrigatório** , caso o `payment_method` escolhido seja `credit_card` e o objeto `card` e o `card_token` não sejam informados.
  - `card` object, required — Dados do novo cartão..<br>**Obrigatório** , caso o `payment_method` escolhido seja `credit_card` e o `card_id` e o `card_token` não sejam informados.<br>[Saiba mais sobre cartões](https://docs.mundipagg.com/v1/reference#meio-de-pagamento-cart%C3%A3o-de-cr%C3%A9dito)
  - `card_token` string — Token do novo cartão. <br>**Obrigatório** , caso o `payment_method` escolhido seja `credit_card` e o `card_id` e o `card` não sejam informados.<br>[Saiba mais token de cartão](https://docs.mundipagg.com/v1/reference#criar-token-cartao)

## Response `200`

200

- object
  - `id` string
  - `code` string
  - `start_at` string
  - `interval` string
  - `interval_count` integer
  - `billing_type` string
  - `current_cycle` object
    - `id` string
    - `start_at` string
    - `end_at` string
    - `billing_at` string
  - `setup` object
    - `id` string
    - `description` string
    - `amount` integer
    - `status` string
  - `next_billing_at` string
  - `payment_method` string
  - `currency` string
  - `statement_descriptor` string
  - `installments` integer
  - `status` 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
  - `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
    - `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
    - `type` string
  - `plan` object
    - `id` string
    - `name` string
    - `description` string
    - `url` string
    - `statement_descriptor` string
    - `interval` string
    - `interval_count` integer
    - `billing_type` string
    - `payment_methods` string[]
    - `installments` integer[]
    - `status` string
    - `currency` string
    - `created_at` string
    - `updated_at` string
  - `items` object[]
    - `id` string
    - `name` string
    - `description` string
    - `quantity` integer
    - `status` string
    - `created_at` string
    - `updated_at` string
    - `pricing_scheme` object
      - `price` integer
      - `scheme_type` string

## Other responses

- `404` — 404
- `422` — 422

---

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