---
title: "Deactivate payment method"
method: POST
path: "/v1/payment_methods/{payment_method_id}/deactivate"
tags: ["Payment Methods"]
---

# Deactivate payment method

`POST /v1/payment_methods/{payment_method_id}/deactivate`

## Request

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

Deactivate payment method. Deactivated payment methods cannot be used to process payins. The payment method status must be `ACTIVE` to be deactivated.

## Path parameters

- `payment_method_id` string, required

## Parameters

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

## 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)
- `409` (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)
