---
title: "Close an account"
method: POST
path: "/v1/accounts/{accountId}/close"
tags: ["Accounts and money"]
---

# Close an account

`POST /v1/accounts/{accountId}/close`

## Request

- Base URL: `https://hyperscale0.ai`
- URL: `https://hyperscale0.ai/v1/accounts/{accountId}/close`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Moves an open or frozen account to closed status only after the ledger reports zero posted balance and no pending debit or credit holds. Closing over a system-plane freeze is refused the same way tenant unfreeze is.

## Path parameters

- `accountId` string, required: Hyperscale account ID

## Headers

- `X-Hyperscale-Environment` 'sandbox' | 'live'
- `Idempotency-Key` string, required

## Request body

- object
  - `reason` string, required

## Response `200`

Success

- AccountCloseOutput
  - `tenantId` string, required: Organization tenant ID
  - `accountId` string, required: Hyperscale account ID
  - `productId` string: Hyperscale product ID
  - `updatedAt` string, date-time, required
  - `reason` string, required
  - `previousStatus` 'open' | 'frozen', required
  - `status` 'closed', required

## Other responses

- `default`: ErrorResponse. See x-error-codes and x-errors for codes, HTTP statuses and retry guidance.

---

[API](https://skmtc.dev/hyperscale0/apis/hyperscale-product-api.md) · [All operations](https://skmtc.dev/hyperscale0/apis/hyperscale-product-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hyperscale0/apis/hyperscale-product-api/revisions/e9e8faa044d5?raw)
