> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Revalue a general ledger

> Revalue a general ledger

### Request body

`RevalueRequest`

<ParamField body="as_of_date" type="string,null">
  Effective date in `YYYY-MM-DD` format; must fall in an open period.
  Defaults to today (UTC).
</ParamField>

<ParamField body="base_currency" type="string,null">
  ISO-4217 base currency (e.g. `USD`). Defaults to the store's
  configured base currency.
</ParamField>

### Responses

<ResponseField name="200" type="RevaluationResponse" />

<ResponseField name="400" type="ErrorBody" />

<ResponseField name="422" type="ErrorBody" />

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.stateset.com/api/v1/gl/revalue' \
    --header 'Authorization: Bearer YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "as_of_date": null,
    "base_currency": null
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "as_of_date": "string",
    "base_currency": "string",
    "journal_entry": null,
    "lines": [
      {
        "account_id": "string",
        "account_name": "string",
        "account_number": "string",
        "adjustment": "string",
        "carrying_value": "string",
        "currency": "string",
        "foreign_balance": "string",
        "rate": "string",
        "revalued_value": "string",
        "unrealized_gain_loss": "string"
      }
    ],
    "total_unrealized_gain_loss": "string"
  }
  ```
</ResponseExample>
