---
title: "Get Available Credit"
method: GET
path: "/user/patient/{patient_id}/credit/available"
tags: ["provider", "user"]
---

# Get Available Credit

`GET /user/patient/{patient_id}/credit/available`

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

Get total available (non-expired, not fully used) credit for a patient.

This endpoint matches the logic used in BillingService.take_patient_credit_payment
to ensure consistency between what's displayed and what can actually be used.

## Path parameters

- `patient_id` string, required

## Headers

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

## Response `200`

Successful Response

- AvailableCreditResponse: Response for available credit endpoint
  - `totalAvailable` integer, required
  - `credits` AvailableCredit[], required
    - `creditId` string, required
    - `remainingAmount` integer, required
    - `totalAmount` integer, required
    - `comment` string, nullable
    - `expiryDate` string, date-time, nullable
    - `createdDate` string, date-time, required
  - `count` integer, 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)
