---
title: "Editar cartão da assinatura"
method: PATCH
path: "/subscriptions/{subscription_id}/card"
---

# Editar cartão da assinatura

`PATCH /subscriptions/{subscription_id}/card`

## Request

- Base URL: `https://api.pagar.me/core/v5`
- URL: `https://api.pagar.me/core/v5/subscriptions/{subscription_id}/card`
- Auth: HTTP basic

Com o verbo _HTTP PATCH_, através do identificador da assinatura (`subscription_id`) é possível atualizar o cartão utilizado para pagamento da assinatura.

## Path parameters

- `subscription_id` string, required

## Request body

- object
  - `card_id` string: Código do cartão.<br>Formato: `card_XXXXXXXXXXXXXXXX`.
  - `card` string: Dados do novo cartão.[Saiba mais sobre cartões](https://docs.pagar.me/reference/cart%C3%B5es-1)

## Response `200`

200

- object
  - `id` string
  - `code` string
  - `start_at` string
  - `interval` string
  - `interval_count` integer
  - `billing_type` string
  - `boleto_due_days` integer
  - `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
      - `zip_code` string
      - `city` string
      - `state` string
      - `country` string
      - `line_1` string
      - `line_2` 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

## Changes

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

[Operation history](https://skmtc.dev/pagar/apis/pagarme-api/changes/subscriptions/:subscription_id/card/patch.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)
