# Get single customer statistics and sources

### GE&#x54;**:** /wp-json/wc-store-credits/v1/customers/{user\_id} <a href="#post-wp-json-loyalty-program-v-1-customers-points-user_id" id="post-wp-json-loyalty-program-v-1-customers-points-user_id"></a>

{% tabs %}
{% tab title="Request" %}
**Requirements:**

* Logged-in user
* user role with `manage_woocommerce` user capability

<table data-header-hidden><thead><tr><th width="150">Method</th><th>Endpoint</th></tr></thead><tbody><tr><td>Method</td><td>Endpoint</td></tr><tr><td>GET</td><td>/wp-json/wc-store-credits/v1/customers/{user_id}</td></tr></tbody></table>

{% endtab %}

{% tab title="Request Example" %}
Get store credit entry with id **1**

```
GET: http://example.com/wp-json/wc-store-credits/v1/entries/‌1
```

{% endtab %}

{% tab title="Response Example" %}
**Status: 200 OK**

Get store credit entry with id **1**

```
{
  "status": [
    {
      "label": "Total Credits",
      "key": "total",
      "amount": "$553.00"
    },
    {
      "label": "Unclaimed Credits",
      "key": "unclaimed",
      "amount": "$553.00"
    },
    {
      "label": "Claimed Credits",
      "key": "claimed",
      "amount": "$0.00"
    },
    {
      "label": "Expired Credits",
      "key": "expired",
      "amount": "$0.00"
    },
    {
      "label": "Deducted Credits",
      "key": "deducted",
      "amount": "$0.00"
    }
  ],
  "sources": [
    {
      "label": "Purchased gift cards",
      "key": "gift_card",
      "amount": "$0.00"
    },
    {
      "label": "Refunded order",
      "key": "refund",
      "amount": "$0.00"
    },
    {
      "label": "Admin adjustment (increase)",
      "key": "admin_increase",
      "amount": "$0.00"
    }
  ],
  "customer": "Test Test"
}
```

**Status: 403 Forbidden**

```
{
    "code": "rest_forbidden_context",
    "message": "Sorry, you are not allowed access to this endpoint.",
    "data": {
        "status": 401
    }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rymera.gitbook.io/advanced-coupons-api/wc-store-credits-v1/customers/get-single-customer-statistics-and-sources.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
