> For the complete documentation index, see [llms.txt](https://docs.nebulablock.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nebulablock.com/overview/platform_api/get_credit_balance/get_payment_history.md).

# Get Payment History

Retrieve your credit payment history for different products.

## HTTP Request

`GET` `{API_URL}/users/credits/history?limit={limit}&offset={offset}`

* `limit`: Specifies the number of records to display per page.
* `offset`: Specifies the starting point for record retrieval (i.e., how many records to skip before starting to display).

## Response Attributes

#### data `dict`

* **credit\_balance**: User available credit amount.
* **credit\_history**: List of credits hourly transaction history.
* **total\_credit\_histories**: Total history count.

#### status `string`

Indicates the result of the request. **success** signifies success, while **failed** indicates an error.

#### message `string`

A description of the status of the request.

## Example

#### Request

```bash
curl -X GET '{API_URL}/users/credits/history?limit=2&offset=0'
-H 'Authorization: Bearer {TOKEN/KEY}'
```

#### Response

```json
{
    "data": {
        "credit_balance": 9.8682,
        "credit_history": [
            {
                "user_id": 266,
                "computing_amount": 2.004,
                "serverless_amount": 0.0,
                "create_time": "EST 2024-10-10 06:54:58",
                "update_time": "EST 2024-10-10 07:54:58",
                "total": 2.004
            },
            {
                "user_id": 266,
                "computing_amount": 2.004,
                "serverless_amount": 0.0,
                "create_time": "EST 2024-10-10 05:54:58",
                "update_time": "EST 2024-10-10 06:54:58",
                "total": 2.004
            }
        ],
        "total_credit_histories": 2
    },
    "message": "User credit history successfully retrieved",
    "status": "success"
}
```
