# Restate open foreign-currency items at a date's rate

`POST /accounting/revalue` · Rivier · accounting

Restate open foreign-currency items at a date's rate.

- Scope: accounting:write
- Sdk: accounting.revalue.run
- Cli: accounting revalue run

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "asOf": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    }
  },
  "required": [
    "asOf"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/accounting/revalue' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "asOf": "string"
}'
```
