---
title: "Update a payment method"
method: PATCH
path: "/v1/payment_methods/{id}"
tags: ["Payment Methods"]
---

# Update a payment method

`PATCH /v1/payment_methods/{id}`

## Request

- Base URL: `https://orders-api.paymongo.com`
- URL: `https://orders-api.paymongo.com/v1/payment_methods/{id}`
- Auth: HTTP basic

Updates a saved card's `details.cvc`, the one attribute core-api updates; any other attribute is ignored, as core-api ignores it. Served by the service that decides the method (`processed_by`). A delegated (`Account-ID`) update is served by core-api. `PUT` is accepted and behaves the same.

## Path parameters

- `id` string, required

## Request body

- UpdatePaymentMethodRequest
  - `data` object
    - `attributes` object
      - `details` object: Only a saved card's cvc is updated.
        - `cvc` string

## Response `200`

OK

- PaymentMethodResponse
  - `data` object
    - `attributes` PaymentMethodAttributes
      - `billing` Billing
        - `address` BillingAddress
          - `city` string
          - `country` string
          - `line1` string
          - `line2` string
          - `postal_code` string
          - `state` string
        - `email` string
        - `name` string
        - `phone` string
      - `created_at` integer
      - `details` object: Relayed from the method service, like NextAction.
      - `expiry_seconds` integer: The one field legacy itself guards on presence.
      - `livemode` boolean
      - `metadata` object
      - `type` string
      - `updated_at` integer
    - `id` string
    - `type` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `default`

---

[API](https://skmtc.dev/paymongo/apis/orders.md) - [All operations](https://skmtc.dev/paymongo/apis/orders/llms.txt) - [OpenAPI document](https://skmtc.dev/paymongo/apis/orders/revisions/7962c4ea82b5?raw)
