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

# Lock customer

`PUT /customers/{customer_id}/lock`

## Request

- Base URL: `https://www.saltedge.com/api/v5`
- URL: `https://www.saltedge.com/api/v5/customers/{customer_id}/lock`
- Auth: API key in header `App-id` and API key in header `Secret`
- TypeScript: <https://skmtc.dev/saltedge/apis/salt-edge-account-information-api/docs/customers/:customer_id/lock/put.ts> (a function with typed inputs; its response is checked against the schema)

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

## Changes

> 17 revisions in range; 1 not diffed.

- **2021-07-29** `9eda9646ec8c`: 6 breaking, 8 info
  - the `request` response's property type changed from `string` to `object` for status `400`
  - the `request` response's property type changed from `string` to `object` for status `404`
  - removed the required property `error_class` from the response with the `400` status
  - removed the required property `error_class` from the response with the `404` status
  - …10 more

[Operation history](https://skmtc.dev/saltedge/apis/salt-edge-account-information-api/changes/customers/:customer_id/lock/put.md)

---

[API](https://skmtc.dev/saltedge/apis/salt-edge-account-information-api.md) - [All operations](https://skmtc.dev/saltedge/apis/salt-edge-account-information-api/llms.txt) - [OpenAPI document](https://skmtc.dev/saltedge/apis/salt-edge-account-information-api/revisions/acda2850de69?raw)
