# debit-history

Displays a detailed history of debit transactions for a specific project, including deductions, charges, and related payments. This command helps users monitor spending activities, review transaction logs, and ensure transparency in project billing.

## Usage

```
cldkctl billing debit-history [project id] [flags]
```

## Steps

Follow the steps below to run and view the result of this command:

1. Run the following command in your terminal:

```
./cldkctl billing debit-history
```

or, to filter by a specific date range:

```
./cldkctl billing debit-history --start --end .
```

2. The command will display a table showing the transaction history for the specified project.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2F9qno2BVlJPeRN7p8bwUb%2Funknown.png?alt=media&#x26;token=88d17b7b-11dd-4027-9d61-d0aea0fb2e3d" alt=""><figcaption></figcaption></figure>

| Column       | Description                                                                                                            |
| ------------ | ---------------------------------------------------------------------------------------------------------------------- |
| Project Name | Name of the project associated with the transaction records.                                                           |
| Date         | The date of each debit transaction.                                                                                    |
| Status       | Indicates the transaction status (e.g., Success, Failed, Pending).                                                     |
| Amount       | The deducted amount per transaction (in IDR).                                                                          |
| Total        | The cumulative total of all debited transactions on the listed date.                                                   |
| Running Date | The date when the transaction was processed by the system.                                                             |
| Running By   | The system or process responsible for executing the transaction.                                                       |
| Description  | Details or notes describing the transaction purpose or type (e.g., service charge, refund adjustment, resource usage). |

## Flags

| Flag           | Description                                                        |
| -------------- | ------------------------------------------------------------------ |
| --start string | Specify the start date for the debit history (format: YYYY-MM-DD). |
| --end string   | Specify the end date for the debit history (format: YYYY-MM-DD).   |
| -h, --help     | Help for the debit-history command.                                |

{% hint style="info" %}
This command supports global flags. Refer to the Global Flags section for details
{% endhint %}
