# Fetch a single store credit entry

### GE&#x54;**:** /wp-json/wc-store-credits/v1/entries‌/{entry\_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/entries‌/{entry_id}</td></tr></tbody></table>

| Query Parameters | Required | Type    | Default      | Description                                         |
| ---------------- | -------- | ------- | ------------ | --------------------------------------------------- |
| ​date\_format    | ​no      | ​string | F j, Y g:i a | Date format of virtual coupon response date values. |
| context          | no       | string  | edit         | Context of data being fetched: `view` or `edit`     |
| {% endtab %}     |          |         |              |                                                     |

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

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

Get store credit entry with id **35**, with custom date format

```
GET: http://example.com/wp-json/wc-store-credits/v1/entries/‌35?date_format=Y-m-d 
```

{% endtab %}

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

Get store credit entry with id **35**

```
{
  "key": "35",
  "id": 35,
  "amount_raw": 45,
  "amount": "$45.00",
  "type": "increase",
  "activity": "Refunded order",
  "user_id": 1,
  "date": "November 16, 2021 1:12 pm",
  "rel_link": "http://acfw.test/my-account/view-order/436/",
  "rel_label": "View Order",
  "note": ""
}
```

Get store credit entry with id 35 and with custom date format

```
{
  "key": "35",
  "id": 35,
  "amount_raw": 45,
  "amount": "$45.00",
  "type": "increase",
  "activity": "Refunded order",
  "user_id": 1,
  "date": "2021-11-16 13:12:10",
  "rel_link": "http://acfw.test/my-account/view-order/436/",
  "rel_label": "View Order",
  "note": ""
}
```

**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/entries/fetch-a-single-store-credit-entry.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.
