---
title: "List discharges"
method: GET
path: "/statements-v2/v1/accounts/{accountId}/discharges-tracking"
tags: ["Discharge tracking"]
---

# List discharges

`GET /statements-v2/v1/accounts/{accountId}/discharges-tracking`

## Request

- Base URL: `https://sandbox.pismolabs.io`
- URL: `https://sandbox.pismolabs.io/statements-v2/v1/accounts/{accountId}/discharges-tracking`
- Auth: HTTP bearer

Track discharges for an account. A discharge occurs when a credit transaction is used to reduce the balance of a debit transaction.
This endpoint returns a list of credit transactions along with the debit transactions that they were used to discharge.
You can filter the list by `creditTransactionId`, `CreditTransactionBeginDate`, and `CreditTransactionEndDate`.

If an invalid value is entered for `creditTransactionBeginDate` or `creditTransactionEndDate`, the endpoint returns `400 - Bad Request`. An example of an invalid value would be if `creditTransactionEndDate` is an earlier date than `creditTransactionBeginDate` or if `creditTransactionBeginDate` is more than 184 days in the past.

## Path parameters

- `accountId` integer, required

## Query parameters

- `creditTransactionId` integer
- `creditTransactionBeginDate` string, date
- `creditTransactionEndDate` string, date
- `page` integer
- `perPage` integer

## Headers

- `Authorization` string, required

## Response `200`

Ok

- DischargeTrackingListResponse
  - `current_page` integer: Current page
  - `is_last_page` boolean: Is this the last page?
  - `items` object[]
    - `discharge_order` integer, required: Discharge order
    - `payment_hierarchy_id` string: Identifies the payment hierarchy used to process the discharge. - Returns `default` when the discharge is processed by the new discharge architecture using the platform's default hierarchy. - Returns the payment hierarchy UUID if a custom hierarchy is configured. - The field is omitted when the discharge is processed by the legacy architecture. For more information, refer to the [Discharging transactions](doc:discharging-transactions) guide.
    - `transaction_id` integer: Transaction ID
    - `statement_id` integer: Statement ID
    - `transaction_amount` number, float: Transaction amount
    - `transaction_type_id` integer: Transaction type ID
    - `customer_id` integer: Customer ID
    - `account_id` integer: Account ID
    - `program_id` integer: Program ID
    - `program_type_id` integer: Program type ID
    - `event_datetime` string, date-time: Event datetime. Format = yyyy-mm-dd:hr:mm:ss.
    - `payment_datetime` string, date-time: Date/time of the down payment. Format = YYYY-MM-DDThr:mm:ss. This field may represent the payment date for the down payment. When provided, this date is used as the transaction event date for credit and installments.
    - `target` object[]
      - `transaction_id` integer: Transaction ID
      - `statement_id` integer: Statement ID
      - `transaction_type_id` integer: Transaction type ID
      - `customer_id` integer: Customer ID
      - `account_id` integer: Account ID
      - `event_datetime` string, date-time: Event datetime. Format = yyyy-mm-dd:hr:mm:ss.
      - `discharge_datetime` string, date-time: Discharge datetime. Format is yyyy-mm-dd:hr:mm:ss.
      - `transaction_amount` number, float: Transaction amount
      - `discharge_amount` number, float: Discharged amount
      - `previous_balance` number, float: Amount you owed on the account when the previous statement closed.
      - `final_balance` number, float: Final balance. The final balance is the remaining balance of a debit transaction after it is discharged.
  - `items_on_page` integer: Number of items on this page
  - `pages` integer: Number of pages
  - `per_page` integer: Items per page
  - `total_items` integer: Number of items found

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/pismo/apis/revolving-credit-statements.md) - [All operations](https://skmtc.dev/pismo/apis/revolving-credit-statements/llms.txt) - [OpenAPI document](https://skmtc.dev/pismo/apis/revolving-credit-statements/revisions/09f552b0f850?raw)
