> ## 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.

# Save the non-bank opening draft

> Upserts the draft lines (each a postable chart account + signed base-currency balance) and the cutover date. Nothing posts; the draft journal entry stays DRAFT. Refused once the opening is posted.



## OpenAPI

````yaml /openapi.json put /api/reconciliations/opening
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/reconciliations/opening:
    put:
      tags:
        - Reconciliation
      summary: Save the non-bank opening draft
      description: >-
        Upserts the draft lines (each a postable chart account + signed
        base-currency balance) and the cutover date. Nothing posts; the draft
        journal entry stays DRAFT. Refused once the opening is posted.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                asOfDate:
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                lines:
                  type: array
                  items:
                    type: object
                    properties:
                      ledgerAccountId:
                        type: integer
                        minimum: 0
                        exclusiveMinimum: true
                      amount:
                        type: number
                    required:
                      - ledgerAccountId
                      - amount
                  maxItems: 200
              required:
                - lines
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  opening:
                    type: object
                    nullable: true
                    properties: {}
                    additionalProperties:
                      nullable: true
                required:
                  - opening
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API token issued from the Equated app under Settings → API Tokens.

````