---
title: "closeSettlementWindow"
method: POST
path: "/settlementWindows/{id}"
tags: ["sampled", "closeSettlementWindow"]
---

# closeSettlementWindow

`POST /settlementWindows/{id}`

Closes requested window and opens a new one.

## Path parameters

- `id` integer, required

## Request body

- SettlementWindowClosurePayload
  - `state` 'CLOSED', required
  - `reason` string, required

## Response `200`

Settlement window closed and new window opened.

- SettlementWindow
  - `id` integer, required
  - `reason` string
  - `state` string, required
  - `createdDate` string, required
  - `changedDate` string
  - `content` SettlementWindowContent[]
    - `id` integer, required
    - `state` string, required
    - `ledgerAccountType` string, required
    - `currencyId` string, required
    - `createdDate` string, required
    - `changedDate` string
    - `settlementId` integer

## Other responses

- `400` — Bad request.
- `401` — Authorisation information is missing or invalid.
- `404` — No data found.
- `415` — Unsupported Media Type.
- `default` — Unexpected error

---

[API](https://skmtc.net/mojaloop/apis/mojaloop-central-settlements.md) · [All operations](https://skmtc.net/mojaloop/apis/mojaloop-central-settlements/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mojaloop/mojaloop-central-settlements/versions/09d34527e74f/schema)
