---
title: "Create payin from stored payment method"
method: POST
path: "/v1/payment_methods/{payment_method_id}/payin"
tags: ["Payment Methods"]
---

# Create payin from stored payment method

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

Create and process a payin using a payin configuration and a stored payment method. The merchant status must be `ACTIVE` to create a payin.

## Parameters

- `#/paths/~1v1~1payins/get/parameters/0` — unresolved $ref
- `#/paths/~1v1~1payment_methods~1%7Bpayment_method_id%7D/get/parameters/1` — unresolved $ref

## Request body

- object
  - `payin_config_id` string, required — The unique payin config identifier. A payin must be configured prior to this request. See "Create a Payin Config" if a payin configuration has not been created yet. Prefix is "cfg" in production and "sbx_cfg" in sandbox.

## 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/authentication.md) · [All operations](https://skmtc.dev/rainforestpay/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rainforestpay/authentication/revisions/529a0dab0f90/schema)
