---
title: "Block or Unblock an Account"
method: PUT
path: "/v2/accounts/{accountid}/blocked"
tags: ["Accounts | Admin"]
---

# Block or Unblock an Account

`PUT /v2/accounts/{accountid}/blocked`

## Request

- Base URL: `https://ws.lemonway.fr/mb/env-name/prod/directkitrest`
- URL: `https://ws.lemonway.fr/mb/env-name/prod/directkitrest/v2/accounts/{accountid}/blocked`
- Auth: none declared. Required headers: `Authorization`, `PSU-IP-Address`

## Path parameters

- `accountid` string, required

## Headers

- `Authorization` string, required
- `PSU-Accept-Language` string
- `PSU-IP-Address` string, required
- `PSU-User-Agent` string

## Request body

- AccountBlockedInput
  - `isBlocked` boolean, required
  - `comment` string

## Response `200`

OK

- AccountBlockedOutput
  - `account` AccountBlock
    - `id` string: Updated payment account ID
    - `isBlocked` boolean: Status of the payment account 1: is bocked true 0: is blocked false
  - `error` Error
    - `code` integer
    - `message` string
    - `psp` PSP
      - `message` string: Get the Error Message from PSP

## Other responses

- `401`: Unauthorized
- `500`: InternalServerError

---

[API](https://skmtc.dev/lemonway/apis/lemonway-directkit-api-2-0.md) - [All operations](https://skmtc.dev/lemonway/apis/lemonway-directkit-api-2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/lemonway/apis/lemonway-directkit-api-2-0/revisions/82551a0a77b8?raw)
