---
title: "Lock customer"
method: PUT
path: "/customers/{customer_id}/lock"
tags: ["Customers"]
---

# Lock customer

`PUT /customers/{customer_id}/lock`

Locks a customer and its data, returning the customer object.

All customer related data including connections, accounts, transactions, attempts will not be available for reading, updating or deleting even by Salt Edge.
This route is available only for web applications.

## Path parameters

- `customer_id` integer, required — the `id` of the customer

## Response `200`

OK

- LockedCustomerResponse
  - `data` object
    - `locked` boolean
    - `id` integer

## Other responses

- `400` — We have received some other request format instead of JSON, or the body could not be parsed
- `404` — A customer with such `customer_id` could not be found

---

[API](https://skmtc.net/saltedge/apis/salt-edge-account-information-api.md) · [All operations](https://skmtc.net/saltedge/apis/salt-edge-account-information-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/saltedge/salt-edge-account-information-api/versions/f18f4f36d0b3/schema)
