> ## 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://api.augustus.com/openapi/2026-05-01.json) 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 surface covering the Pay by Bank products — Instant Bank Transfer (Open Banking) checkout and refunds, and Manual Bank Transfer (MBT); use it when one of those products is 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 an account program

> Closes an account program. All child accounts must be drained via the drain endpoint first. This endpoint is unavailable in live production.



## OpenAPI

````yaml https://api.augustus.com/openapi/2026-05-01.json post /v1/simulations/account_programs/{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/simulations/account_programs/{id}/close:
    post:
      tags:
        - Simulations
      summary: Close an account program
      description: >-
        Closes an account program. All child accounts must be drained via the
        drain endpoint first. This endpoint is unavailable in live production.
      operationId: AccountProgramSimulationsController_close
      parameters:
        - name: id
          required: true
          in: path
          description: ID of the account program whose lifecycle is being simulated.
          schema:
            type: string
            format: uuid
        - 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: Account program close parameters
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CloseAccountProgramSimulationBodyDto'
      responses:
        '200':
          description: The account program close simulation acknowledgement
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountProgramSimulationResourceDto'
components:
  schemas:
    CloseAccountProgramSimulationBodyDto:
      type: object
      properties:
        reason:
          description: Reason for closing the account program.
          type: string
          enum:
            - aml_risk_fraud
            - client_request
      required:
        - reason
      additionalProperties: false
    AccountProgramSimulationResourceDto:
      type: object
      properties:
        type:
          description: Resource type discriminator.
          type: string
          enum:
            - account_program_simulation
        account_program_id:
          description: Account program whose lifecycle is being simulated.
          type: string
          format: uuid
      required:
        - type
        - account_program_id
      additionalProperties: false
  securitySchemes:
    BearerAuth:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Bearer token for authentication with Augustus Banking API

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.