Payment Methods

Update a payment method

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.

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

Path parameters

idstring required

Payment method ID

Request body

Example request

{
  "data": {
    "attributes": {
      "details": {
        "cvc": "123"
      }
    }
  }
}

Response

OK

Example response

{
  "data": {
    "id": "pm_abc123",
    "type": "payment_method"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.