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

# Update Patient Credit

`PATCH /user/patient/{patient_id}/credit/{credit_id}`

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

Update a patient credit

## Path parameters

- `patient_id` string, required
- `credit_id` string, required

## Headers

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

## Request body

- PatientCreditUpdate
  - `comment` string, nullable
  - `expiryDate` string, date-time, nullable
  - `amount` integer, nullable: Update the total credit amount in cents
  - `amountRemaining` integer, nullable: Update the remaining credit amount in cents

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