---
title: "Create Card"
method: POST
path: "/provider/patients/{patient_id}/cards"
tags: ["Card"]
---

# Create Card

`POST /provider/patients/{patient_id}/cards`

## Request

- Base URL: `https://api.sandbox.hint.com/api`
- URL: `https://api.sandbox.hint.com/api/provider/patients/{patient_id}/cards`
- Auth: API key in header `AUTHORIZATION`

Exactly one of `stripe_id` or `rainforest_id` must be provided. Practices on Stripe submit a
`stripe_id`; practices on Hint Payments (Rainforest) submit a `rainforest_id`.

## Path parameters

- `patient_id` string, required

## Request body

- ProviderCardsControllerCreateBody
  - `stripe_id` string: Tokenized card id from Stripe. Required if the practice uses Stripe.
  - `rainforest_id` string: Tokenized card id from Rainforest. Required if the practice uses Hint Payments.
  - `card_type` string
  - `last_four` string

## Response `201`

Successful response

- PublicCardBlueprintOne
  - `id` string
  - `card_type` string
  - `default` boolean
  - `exp_month` integer
  - `exp_year` integer
  - `last_four` string
  - `name` string
  - `type` string

## Changes

- **2026-11-03** `c9bda0d2dd87`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hint/apis/partner-endpoints/changes/provider/patients/:patient_id/cards/post.md)

---

[API](https://skmtc.dev/hint/apis/partner-endpoints.md) - [All operations](https://skmtc.dev/hint/apis/partner-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/hint/apis/partner-endpoints/revisions/c9bda0d2dd87?raw)
