---
title: "Get credit transaction history"
method: GET
path: "/credit-history"
tags: ["Credit history"]
---

# Get credit transaction history

`GET /credit-history`

Get a list of credit transactions of the customer.

Credit history is a chronological audit log of all credit operations on a customer account. Each record captures the operation type (deposit, reduction, or transfer), the amount, timestamp, store, partner, and an optional note.

The `customer_id` parameter is required. Filter by operation type using `credit_operation_type`, or search within notes using `credit_operation_note`. Use `time_from` and `time_to` to scope results to a date range.

Related: [GET /credits](https://carecloud.readme.io/reference/getcredits), [POST /credits/actions/deposit](https://carecloud.readme.io/reference/postcreditdeposit) (enterprise interface only), [POST /credits/actions/reduce](https://carecloud.readme.io/reference/postcreditreduction) (enterprise interface only)

## Query parameters

- `count` integer
- `offset` integer
- `sort_field` string
- `sort_direction` 'ASC' | 'DESC'
- `customer_id` string, required
- `store_id` string
- `partner_id` string
- `time_from` string
- `time_to` string
- `credit_operation_type` string
- `credit_operation_note` string

## Headers

- `Accept-Language` string

## Response `200`

OK

- object
  - `data` object
    - `credit_history` CreditHistoryRecord[] — List of the credit history records.
      - `customer_id` string — The unique ID of the customer. [GET /customers](https://carecloud.readme.io/reference/getcustomers)
      - `amount` number, float — The number of credits used in the credit operation record.
      - `credit_operation_type` string — Type of the credit operation record.
      - `credit_operation_note` string — Note of the credit operation record.
      - `partner_id` string — The unique ID of the partner company. [GET /partners](https://carecloud.readme.io/reference/getpartners)
      - `currency_id` string — The unique ID of the currency. [GET /currencies](https://carecloud.readme.io/reference/getcurrencies)
      - `store_id` string — The unique ID of the store. [GET /stores](https://carecloud.readme.io/reference/getstores)
      - `credit_history_record_time` string — Timestamp of the credit record in the credit history. Format: `YYYY-MM-DD HH:MM:SS`. All times are in the local timezone.
    - `total_items` integer — The number of all found credit history records.

## Other responses

- `400` — Bad input parameter. The response body's `error.error_data.invalid_params[]` array lists the parameters that caused the failure, each carrying a `reason` code. See the `BadRequestErrorBody` schema for the generic reason taxonomy. Operations with domain-specific business rules document additional reasons at the operation level.
- `401` — The client has invalid credentials or auth token.
- `403` — The client does not exist or the client tried to access an unauthorized property or resource.
- `404` — The resource was not found.
- `405` — The resource does not support the specified HTTP method.
- `429` — Too many requests - more than the resource limit.
- `500` — Server is not working as expected.
- `503` — Temporary state when the service is temporarily unavailable, overloaded or there is a maintenance window.

---

[API](https://skmtc.net/crmcarecloud/apis/rest-api-reference.md) · [All operations](https://skmtc.net/crmcarecloud/apis/rest-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crmcarecloud/rest-api-reference/revisions/329c06dbf8d9/schema)
