# Close the books through a date

`POST /accounting/periods/close` · Rivier · accounting

Close the books through a date.

- Scope: accounting:write
- Sdk: accounting.period.close
- Cli: accounting period close

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "periodEnd": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "note": {
      "type": "string",
      "maxLength": 300,
      "default": ""
    }
  },
  "required": [
    "periodEnd"
  ],
  "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/periods/close' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "periodEnd": "string"
}'
```
