> ## Documentation Index
> Fetch the complete documentation index at: https://yn-c9bb3266.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Close Account

> Close a BaaS bank account

## Path parameters

<ParamField path="account_id" type="string" required>
  The BaaS account identifier to close.
</ParamField>

## Response

<ResponseExample>
  ```json 200 OK theme={"theme":{"light":"github-dark","dark":"github-dark"}}
  {
    "id": "acc_770e8400-e29b-41d4-a716-446655440000",
    "entity_id": "ent_660e8400-e29b-41d4-a716-446655440000",
    "currency": "USD",
    "country": "US",
    "status": "CLOSED",
    "created_at": "2026-02-01T15:00:00Z",
    "updated_at": "2026-02-03T10:00:00Z"
  }
  ```

  ```json 400 Bad Request theme={"theme":{"light":"github-dark","dark":"github-dark"}}
  {
    "code": "ACCOUNT_HAS_BALANCE",
    "messages": ["Cannot close account with remaining balance"],
    "http_code": 400
  }
  ```
</ResponseExample>
