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

# Update payment method

`PATCH /v1/payment_methods/{payment_method_id}`

## Request

- Base URL: `https://api.sandbox.rainforestpay.com`
- URL: `https://api.sandbox.rainforestpay.com/v1/payment_methods/{payment_method_id}`
- Auth: HTTP bearer

Update supported fields on a payment method. Only fields included in the payload will be updated. Omitted fields will not be updated.

## Parameters

- `#/paths/~1v1~1payins/get/parameters/0` (unresolved $ref)
- `#/paths/~1v1~1payment_methods~1{payment_method_id}/get/parameters/1` (unresolved $ref)

## Request body

- object: The fields that can be updated on a payment method.
  - `billable_merchant_id` BillableMerchantId (unresolved $ref)
  - `billing_contact` object, nullable: Billing contact details. To remove a field, set the value to `null`.
    - `name` string, nullable: First and last name.
    - `address_line_1` AddressLine1 (unresolved $ref)
    - `address_line_2` AddressLine2 (unresolved $ref)
    - `city` City (unresolved $ref)
    - `state` State (unresolved $ref)
    - `postal_code` PostalCode (unresolved $ref)
    - `country` Country (unresolved $ref)
    - `email` string, nullable: Email address.
    - `phone` string, nullable: Phone number, including extension.

## Response `200`

OK

- object
  - `status` Status (unresolved $ref)
  - `data` Data (unresolved $ref)
  - `errors` Errors (unresolved $ref)

## Other responses

- `400` (unresolved $ref)
- `401` (unresolved $ref)
- `403` (unresolved $ref)
- `404` (unresolved $ref)
- `5XX` (unresolved $ref)

---

[API](https://skmtc.dev/rainforestpay/apis/payments.md) - [All operations](https://skmtc.dev/rainforestpay/apis/payments/llms.txt) - [OpenAPI document](https://skmtc.dev/rainforestpay/apis/payments/revisions/9d7d0b1553a8?raw)
