v1

latestOpenAPI 3.0.2EULA2026-07-143221521.2 MB
Credit history

Get credit transaction 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, POST /credits/actions/deposit (enterprise interface only), POST /credits/actions/reduce (enterprise interface only)

get/credit-history

Query parameters

countinteger

The number of records to return in API response.

⚠️ We recommended adjust the batch size based on processing time. Depending on the response time of the request. Default value of 100 records is used if count parameter is not set.

offsetinteger

The number of records from a collection to skip. Default value of 0 is used when parameter offset is not set.

sort_fieldstring

Name of the sorting parameter. You can sort by any of the first level parameters from the resource response. Response is sorted by the specified field.

sort_direction'ASC' | 'DESC'

Direction of sorting the response list.

customer_idstring required

The unique ID of the customer. GET /customers

store_idstring

The unique ID of the store in CareCloud. GET /stores

partner_idstring

Unique ID of the partner from the resource GET /partners.

time_fromstring

Start of the time interval for filtering. Accepts the format YYYY-MM-DD HH:MM:SS or ISO-8601 format (YYYY-MM-DDTHH:MM:SS). All times are in the local timezone.

time_tostring

End of the time interval for filtering. Accepts the format YYYY-MM-DD HH:MM:SS or ISO-8601 format (YYYY-MM-DDTHH:MM:SS). All times are in the local timezone.

credit_operation_typestring

Search record by the operation type name or a part of the operation type name.

credit_operation_notestring

Search record by the operation note or a part of the operation note.

Headers

Accept-Languagestring

The unique ID of the language code by ISO 639-1.

Response

OK

Example response

{
  "data": {
    "credit_history": [
      {
        "customer_id": "8ea2591121e636086a4a9c0992",
        "amount": 1000,
        "credit_operation_type": "Manually added credits",
        "credit_operation_note": "Addition",
        "partner_id": "86e05affc7a7abefcd513ab400",
        "currency_id": "86e05affc7a7abefcd513ab400",
        "store_id": "81eaeea13b8984a169c490a325",
        "credit_history_record_time": "2023-03-07 09:53:55"
      }
    ],
    "total_items": 1
  }
}