# Update store credit entry

### PU&#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>PUT</td><td>/wp-json/wc-store-credits/v1/entries‌/{entry_id}</td></tr></tbody></table>

<table><thead><tr><th width="200">Parameters</th><th>Required</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td>amount</td><td>no</td><td>float</td><td>-</td><td>Entry amount value.</td></tr><tr><td>user_id</td><td>no</td><td>integer</td><td>-</td><td>Customer ID</td></tr><tr><td>type</td><td>no</td><td>string</td><td>-</td><td>Entry type: <code>increase</code> or <code>decrease</code></td></tr><tr><td>action</td><td>no</td><td>string</td><td>-</td><td><p>The action or source slug of the entry.</p><p><br>This requires a valid source/action that is registered by code (<a href="/pages/1TORS2V9M2jVJpXhFnsl#source-action-types">learn more</a>).</p></td></tr><tr><td>date</td><td>no</td><td>string</td><td><em>current date &#x26; time</em></td><td>Date and time the entry was created</td></tr><tr><td>date_format</td><td>no</td><td>string</td><td>Y-m-d H:i:s</td><td><p>Date format of the provided date values.</p><p>See: <a href="https://www.php.net/manual/en/datetime.format.php">https://www.php.net/manual/en/datetime.format.php</a></p></td></tr><tr><td>object_id</td><td>no</td><td>integer</td><td>0</td><td>The ID of related object of the entry. This can either be the  ID of an order, coupon, user or post.</td></tr></tbody></table>

{% endtab %}

{% tab title="Request Example" %}
Update store credit entry amount

```
PUT: http://example.com/wp-json/wc-store-credits/v1/entry/35

{
    "amount": 50
}
```

{% endtab %}

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

```
{
  "message": "Successfully updated store credit entry.",
  "data": {
    "key": "35",
    "id": 35,
    "amount_raw": 50,
    "amount": "$50.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": ""
  },
  "balance_raw": 300.25,
  "balance": "$300.25"
}
```

**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/update-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.
