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

# Post a manual ledger transaction

> Post a manual ledger transaction. Access is subject to the permissions, authentication, and branch requirements documented for this operation.



## OpenAPI

````yaml /openapi/tenant-staff-v1.openapi.yaml post /ledger/transactions
openapi: 3.1.0
info:
  title: Anbyan Staff Session API
  version: 1.0.0
  description: >
    Human staff API authenticated with short-lived staff sessions. Login uses
    email and password, followed by MFA when required.
servers:
  - url: https://{tenantDomain}/api/v1/staff
    description: Staff session API on a tenant domain
    variables:
      tenantDomain:
        default: tenant.example.com
security:
  - bearerAuth: []
tags:
  - name: Auth
  - name: Ledger
  - name: Deposits
  - name: Withdrawals
  - name: Transfers
  - name: Vaults
  - name: Direct Deposits
  - name: Bank Migrations
  - name: Accounts
  - name: Account Products
  - name: Clients
  - name: Client Compliance
  - name: Product Applications
  - name: Card Programs
  - name: Card Design Sets
  - name: Cards
  - name: Dashboard
  - name: Simulator
  - name: Compliance Program
  - name: Staff
  - name: Incidents
  - name: Branches
  - name: Jurisdictions
  - name: Locations
  - name: Notifications
  - name: Settings
  - name: FX
  - name: Passbooks
  - name: Access Control
  - name: Users
  - name: Activity Logs
paths:
  /ledger/transactions:
    post:
      tags:
        - Ledger
      summary: Post a manual ledger transaction
      description: >-
        Post a manual ledger transaction. Access is subject to the permissions,
        authentication, and branch requirements documented for this operation.
      operationId: postLedgerTransaction
      responses:
        '200':
          description: Ledger transaction posted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponse'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  schemas:
    TransactionResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Transaction'
    Transaction:
      type: object
      description: >
        Staff transaction history is read from transaction_feed_rows and
        includes ledgerTransactionId for immutable ledger actions such as
        reversal.
      properties:
        id:
          type: string
        ledgerTransactionId:
          type:
            - string
            - 'null'
        referenceCode:
          type:
            - string
            - 'null'
        accountId:
          type: string
        amountCents:
          type: integer
        description:
          type: string
        postedAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        createdByUserId:
          type: string
        reversalOfTransactionId:
          type: string
        reversedAt:
          type: string
          format: date-time
        accountContext:
          type: object
          additionalProperties: true
        referenceable:
          type: object
          additionalProperties: true
        entries:
          type: array
          items:
            $ref: '#/components/schemas/LedgerEntry'
        events:
          type: array
          items:
            $ref: '#/components/schemas/TransactionEvent'
    ApiError:
      type: object
      properties:
        message:
          type: string
        errors:
          type: object
          additionalProperties: true
    LedgerEntry:
      type: object
      properties:
        id:
          type: string
        ledgerTransactionId:
          type: string
        ledgerAccountId:
          type: string
        accountId:
          type: string
        direction:
          type: string
          enum:
            - credit
            - debit
        amountCents:
          type: integer
        currency:
          type: string
        memo:
          type: string
        createdAt:
          type: string
          format: date-time
    TransactionEvent:
      type: object
      properties:
        id:
          type: string
        transactionFeedRowId:
          type: string
        ledgerTransactionId:
          type:
            - string
            - 'null'
        eventType:
          type: string
        summary:
          type:
            - string
            - 'null'
        metadata:
          type: object
          additionalProperties: true
        occurredAt:
          type:
            - string
            - 'null'
          format: date-time
  responses:
    ValidationError:
      description: Validation error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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