---
title: "Create Rainforest Payin Config"
method: POST
path: "/billing/insurance-payment/create-rainforest-payin-config"
tags: ["provider", "billing"]
---

# Create Rainforest Payin Config

`POST /billing/insurance-payment/create-rainforest-payin-config`

## 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/insurance-payment/create-rainforest-payin-config`
- Auth: none declared. Required headers: `TENANT`, `API-KEY`
- TypeScript: <https://skmtc.dev/decodahealth/apis/decoda-api/docs/billing/insurance-payment/create-rainforest-payin-config/post.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

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

## Request body

- InsurancePaymentCreate
  - `id` string, required: Unique identifier for the insurance payment.
  - `insurer` string, required: Name of the insurer.
  - `comment` string, nullable: Optional comment about the payment.
  - `amount` integer, required: Amount of the payment.
  - `currency` string: Currency of the payment.
  - `locationId` string, nullable: Location of the payment.
  - `creatorId` string, nullable: ID of the provider who created this payment.

## Response `200`

Successful Response

- PayinComponentSetupResponse
  - `sessionKey` string, required
  - `payinConfigId` string, required
  - `paymentMethods` PaymentMethodSummary[]
    - `id` string, required
    - `patientId` string, nullable, required
    - `rainforestPaymentMethodId` string, required
    - `brand` string, nullable, required
    - `last4` string, nullable, required
    - `expMonth` integer, nullable, required
    - `expYear` integer, nullable, required
    - `accountHolderType` string, nullable, required
    - `accountNumberLast4` integer, nullable, required
    - `bankName` string, nullable, required
    - `routingNumber` integer, nullable, required
    - `description` string, nullable, required
    - `type` 'CARD' | 'ACH' | 'APPLE_PAY', required
    - `isDefault` boolean
    - `isArchived` boolean
  - `sandbox` boolean, required

## 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)
