# Get User’s Credit Balance

<mark style="color:blue;">`POST`</mark> `/users/{user_id}/credits`

### **Overview**

Retrieves the **current credit balance for a specific user.**

This endpoint provides the most up-to-date view of how many credits a user has available.

**Typical use cases**

* Checking the user’s available credit balance before a payment or service request
* Displaying real-time credit balance in credit-based services

### **Header**

| Name                               | Value              |
| ---------------------------------- | ------------------ |
| Content-Type                       | `application/json` |
| Authorization <sup>(API Key)</sup> | `Bearer <API Key>` |

### **Path**

| Name      | Description                                                                                                                                                                                                 |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `user_id` | <p>User identifier (user\_id). <br>Optional on create — if not provided, a system-generated ID will be used<br><br><a href="../user/user_id-and-klaim_id" class="button secondary">More description</a></p> |

### **Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "message": "fetch resource successfully",
    "credit_balance": 100
}
```

{% endtab %}

{% tab title="404" %}
This HTTP status is returned when **no user profile entity is found** for the given userId.

```json
{
    "message": "Can not find user with the given user_id."
}
```

{% endtab %}
{% endtabs %}
