---
title: "Create Patient Credit"
method: POST
path: "/user/patient/{patient_id}/credit"
tags: ["provider", "user"]
---

# Create Patient Credit

`POST /user/patient/{patient_id}/credit`

## 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/user/patient/{patient_id}/credit`
- Auth: none declared. Required headers: `TENANT`, `API-KEY`
- TypeScript: <https://skmtc.dev/decodahealth/apis/decoda-api/docs/user/patient/:patient_id/credit/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new credit for a patient

## Path parameters

- `patient_id` string, required

## Headers

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

## Request body

- PatientCreditCreate
  - `patientId` string, nullable
  - `amount` integer, required: Credit amount in cents
  - `amountRemaining` integer, nullable: Amount remaining in cents, defaults to amount
  - `comment` string, nullable
  - `expiryDate` string, date-time, nullable
  - `memberId` string, nullable
  - `creatorId` string, nullable

## Response `200`

Successful Response

- PatientCreditSummary
  - `id` string, required
  - `patientId` string, required
  - `amount` integer, required
  - `amountRemaining` integer, required
  - `comment` string, nullable
  - `expiryDate` string, date-time, nullable
  - `memberId` string, nullable
  - `createdDate` string, date-time, required
  - `updatedDate` string, date-time, nullable
  - `creator` UserTiny
    - `id` string, required: The unique identifier for the user.
    - `firstName` string, nullable: The user's first name.
    - `lastName` string, nullable: The user's last name.
    - `phoneNumber` string, nullable: The user's phone number.
    - `email` string, nullable: The user's email address.
    - `type` 'PROVIDER' | 'PATIENT' | 'ASSISTANT', required
    - `locationId` string, nullable: The location of the user.

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