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

# Unconfirm a document

> Send a confirmed document back to the inbox: flips both the document and its accrual JE from POSTED to DRAFT. Postings are preserved so the document can be edited and reconfirmed.



## OpenAPI

````yaml /openapi.json post /api/documents/{id}/unconfirm
openapi: 3.1.0
info:
  title: Equated API
  version: 1.0.0
  description: >-
    Agent-facing accounting API. Authenticate with a bearer token issued from
    Settings → API Tokens, or via the in-app session cookie when called from the
    web client.
servers:
  - url: https://app.equated.co
    description: API server
security: []
paths:
  /api/documents/{id}/unconfirm:
    post:
      tags:
        - Documents
      summary: Unconfirm a document
      description: >-
        Send a confirmed document back to the inbox: flips both the document and
        its accrual JE from POSTED to DRAFT. Postings are preserved so the
        document can be edited and reconfirmed.
      parameters:
        - schema:
            type: integer
            minimum: 0
            exclusiveMinimum: true
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Action execution result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionExecuteResult'
      security:
        - bearerAuth: []
components:
  schemas:
    ActionExecuteResult:
      type: object
      properties:
        actionRequestId:
          type: string
          nullable: true
        status:
          type: string
        changed:
          type: boolean
          description: >-
            False when nothing was applied: the row was already in that state,
            or the preview was stale or expired.
        result:
          $ref: '#/components/schemas/ActionMutationResult'
        error:
          type: string
      required:
        - actionRequestId
        - status
        - changed
        - result
    ActionMutationResult:
      type: object
      nullable: true
      properties:
        journalEntryIds:
          type: array
          items:
            type: integer
            minimum: 0
            exclusiveMinimum: true
        documentRelationIds:
          type: array
          items:
            type: integer
            minimum: 0
            exclusiveMinimum: true
        deletedJournalEntryIds:
          type: array
          items:
            type: integer
            minimum: 0
            exclusiveMinimum: true
        voidedJournalEntryIds:
          type: array
          items:
            type: integer
            minimum: 0
            exclusiveMinimum: true
      required:
        - journalEntryIds
        - documentRelationIds
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API token issued from the Equated app under Settings → API Tokens.

````