---
title: "Create Setup Intent"
method: POST
path: "/provider/patients/{patient_id}/payment_methods/setup"
tags: ["PaymentMethod"]
---

# Create Setup Intent

`POST /provider/patients/{patient_id}/payment_methods/setup`

The response shape depends on the practice's payment processor (`payment_processor` in the response):
- When `rainforest`: `payment_method_config_id`, `session_key`, and `allowed_methods` are returned.
- When `stripe`: `stripe_client_secret` is returned instead.
The example below shows the `rainforest` variant.

## Path parameters

- `patient_id` string, required

## Request body

- ProviderPatientsPaymentMethodsSetupControllerCreateBody
  - `user_is_owner` boolean, required
  - `accepts_bank` boolean, required

## Response `201`

Successful response

---

[API](https://skmtc.net/hint/apis/partner-endpoints.md) · [All operations](https://skmtc.net/hint/apis/partner-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hint/partner-endpoints/revisions/a92ae2a6fa90/schema)
