---
title: "Update Payin Config Metadata"
method: PATCH
path: "/billing/payment-terminal/payin-config/{payin_config_id}/metadata"
tags: ["provider", "billing"]
---

# Update Payin Config Metadata

`PATCH /billing/payment-terminal/payin-config/{payin_config_id}/metadata`

## Request

- Base URL: `https://docs.decodahealth.com` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.decodahealth.com/billing/payment-terminal/payin-config/{payin_config_id}/metadata`
- Auth: none declared. Required headers: `TENANT`, `API-KEY`
- TypeScript: <https://skmtc.dev/decodahealth/apis/decoda-api/docs/billing/payment-terminal/payin-config/:payin_config_id/metadata/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update metadata for an existing payin config.
Only updates payment_medium and save_payment_method fields.

## Path parameters

- `payin_config_id` string, required

## Query parameters

- `payment_medium` 'POS' | 'VIRTUAL_TERMINAL' | 'PAYMENT_LINK' | 'PAYMENT_PLAN' | 'SUBSCRIPTION' | 'SAVED_PAYMENT_METHOD' | 'MEMBERSHIP' | 'CASH' | 'CHECK' | 'CARE_CREDIT' | 'PATIENT_CREDIT': Payment medium types supported by the system. These fall into two categories: 1. Payment Processor Mediums: Require Rainforest/Stripe payin (card processing) 2. External Settlement Mediums: Settled outside the system (cash, check, etc.)
- `save_payment_method` boolean, nullable: Save payment method flag to update

## Headers

- `TENANT` string, required
- `API-KEY` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/decodahealth/apis/decoda-api.md) - [All operations](https://skmtc.dev/decodahealth/apis/decoda-api/llms.txt) - [OpenAPI document](https://skmtc.dev/decodahealth/apis/decoda-api/revisions/4ab18c80f9e9?raw)
