> ## Documentation Index
> Fetch the complete documentation index at: https://docs.augustus.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat the published Augustus OpenAPI specification (https://app.stainless.com/api/spec/documented/augustus/openapi.documented.yml) and the current API-reference pages as the source of truth for endpoints, request/response schemas, enum values, webhook event names, and required headers.
> Prefer the 2026-05-01 Banking API and @augustusbank/typescript-sdk for all new integrations. The 2023-01-01 API is a separate, older surface covering two products — Open Banking (instant bank transfer) checkout and refunds, and Manual Bank Transfer (MBT); use it only when one of those products is specifically required.
> Cite or link the relevant docs.augustus.com page when answering integration questions.
> Do not infer support for currencies, networks, scopes, account types, or operations that are not present in the current documentation.
> Use the sandbox base URL (https://api.sandbox.augustus.com) and placeholder credentials in examples. Never include or request a real API key.
> The Augustus docs MCP server (https://docs.augustus.com/mcp) provides documentation search and retrieval only; it does not execute authenticated Augustus API actions.

# Close account

> Closes an account



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/augustus/openapi.documented.yml post /v1/accounts/{id}/close
openapi: 3.1.0
info:
  title: Augustus Banking API
  description: Augustus Banking API
  version: 0.1.0
  contact:
    name: Augustus
    url: https://docs.augustus.com
    email: developer@augustus.com
servers:
  - url: https://api.augustus.com
    description: Production
  - url: https://api.sandbox.augustus.com
    description: Sandbox
security:
  - BearerAuth: []
tags: []
paths:
  /v1/accounts/{id}/close:
    post:
      tags:
        - Accounts
      summary: Close account
      description: Closes an account
      operationId: AccountsController_close
      parameters:
        - name: id
          required: true
          in: path
          description: Unique identifier of the account.
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
        - name: Idempotency-Key
          in: header
          description: >-
            Idempotency key for safe retries. Reusing a key with an identical
            request body returns the cached response. Reusing a key with a
            different body returns 409.
          required: true
          schema:
            type: string
      requestBody:
        required: true
        description: Close account parameters
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CloseAccountBodyDto'
      responses:
        '200':
          description: Account closed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountResourceDto'
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Augustus from '@augustusbank/typescript-sdk';


            const client = new Augustus({
              apiKey: process.env['AUGUSTUS_API_KEY'], // This is the default and can be omitted
            });


            const response = await
            client.accounts.close('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
              reason: 'aml_risk_fraud',
            });


            console.log(response.id);
components:
  schemas:
    CloseAccountBodyDto:
      type: object
      properties:
        reason:
          description: Reason for closing the account.
          type: string
          enum:
            - aml_risk_fraud
            - client_request
      required:
        - reason
      additionalProperties: false
    AccountResourceDto:
      type: object
      properties:
        id:
          description: Unique identifier of the account.
          type: string
        type:
          description: Resource type discriminator.
          type: string
          enum:
            - account
        currency:
          description: ISO 4217 currency code for the account.
          type: string
          enum:
            - EUR
            - GBP
            - USD
            - USDC
        account_type:
          description: Type of the account.
          type: string
          enum:
            - virtual_account
            - payment_account
            - collateral_account
        status:
          description: Current status of the account.
          type: string
          enum:
            - pending
            - active
            - frozen
            - closed
        asset_type:
          description: Asset type of the account.
          type: string
          enum:
            - fiat
            - crypto
        label:
          description: Human-readable label for the account.
          type: string
        financial_addresses:
          description: >-
            Payment identifiers (e.g. IBAN, account number, wallet address)
            through which this account can send or receive funds.
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/IbanFinancialAddress'
              - $ref: '#/components/schemas/SortCodeFinancialAddress'
              - $ref: '#/components/schemas/AbaFinancialAddress'
              - $ref: '#/components/schemas/CryptoWalletFinancialAddress'
        created_at:
          description: ISO 8601 UTC timestamp when the account was created.
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        updated_at:
          description: ISO 8601 UTC timestamp when the account was last updated.
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
      required:
        - id
        - type
        - currency
        - account_type
        - status
        - asset_type
        - label
        - financial_addresses
        - created_at
        - updated_at
      additionalProperties: false
    IbanFinancialAddress:
      title: IBAN
      type: object
      properties:
        type:
          description: Discriminator for IBAN financial address.
          type: string
          enum:
            - iban
        iban:
          description: International Bank Account Number.
          type: string
        account_holder_name:
          description: Name of the account holder.
          type: string
        bic:
          type: string
          description: Bank Identifier Code, or null if not provided.
          nullable: true
      required:
        - type
        - iban
        - account_holder_name
        - bic
      additionalProperties: false
    SortCodeFinancialAddress:
      title: UK Sort Code
      type: object
      properties:
        type:
          description: Discriminator for UK sort code financial address.
          type: string
          enum:
            - sort_code
        sort_code:
          description: UK sort code (6 digits).
          type: string
        account_number:
          description: UK account number (8 digits).
          type: string
        account_holder_name:
          description: Name of the account holder.
          type: string
      required:
        - type
        - sort_code
        - account_number
        - account_holder_name
      additionalProperties: false
    AbaFinancialAddress:
      title: ABA
      type: object
      properties:
        type:
          description: Discriminator for ABA wire financial address.
          type: string
          enum:
            - aba
        routing_number:
          description: ABA routing number (9 digits).
          type: string
        account_number:
          description: Bank account number.
          type: string
        account_holder_name:
          description: Name of the account holder.
          type: string
      required:
        - type
        - routing_number
        - account_number
        - account_holder_name
      additionalProperties: false
    CryptoWalletFinancialAddress:
      title: Wallet
      type: object
      properties:
        type:
          description: Discriminator for crypto wallet financial address.
          type: string
          enum:
            - crypto_wallet
        address:
          description: Wallet address on the specified blockchain.
          type: string
        blockchain:
          description: Blockchain network for the crypto wallet.
          type: string
          enum:
            - bitcoin
            - ethereum
            - solana
            - polygon
            - bitcoin_testnet4
            - ethereum_sepolia
            - solana_devnet
            - polygon_amoy
      required:
        - type
        - address
        - blockchain
      additionalProperties: false
  securitySchemes:
    BearerAuth:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Bearer token for authentication with Augustus Banking API

````