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

# Create a deposit

> Create a deposit. Access is subject to the permissions, authentication, and branch requirements documented for this operation.



## OpenAPI

````yaml /openapi/tenant-staff-v1.openapi.yaml post /deposits
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:
  /deposits:
    post:
      tags:
        - Deposits
      summary: Create a deposit
      description: >-
        Create a deposit. Access is subject to the permissions, authentication,
        and branch requirements documented for this operation.
      operationId: createDeposit
      responses:
        '200':
          description: Deposit created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DepositCreateResponse'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  schemas:
    DepositCreateResponse:
      type: object
      properties:
        context:
          type: object
          properties:
            dailyLimitCents:
              type: integer
            dailyTotalCents:
              type: integer
            reason:
              type: string
              enum:
                - single_tx_limit
                - shift_total_limit_cents
            singleLimitCent:
              type: integer
        deposit:
          $ref: '#/components/schemas/Deposit'
        requiresApproval:
          type: boolean
    Deposit:
      type: object
      description: >
        Branch-owned deposit workflow. Posting and approval state changes are
        transactionally coupled to ledger posting.
      properties:
        id:
          type: string
        accountId:
          type: string
        amountCents:
          type: integer
        currency:
          type: string
        sourceAmountCents:
          type: integer
        sourceCurrency:
          type: string
        exchangeRate:
          type: number
        approvalStatus:
          type: string
          enum:
            - not_required
            - pending
            - approved
            - rejected
        requiresApproval:
          type: boolean
        method:
          type: string
          enum:
            - cash
            - internal
        channel:
          type: string
          enum:
            - branch
            - atm
            - mobile
            - partner_store
            - api
            - other
        status:
          type: string
          enum:
            - pending
            - posted
            - reversed
            - canceled
        ledgerTransactionId:
          type:
            - string
            - 'null'
        idempotencyKey:
          type: string
        postedAt:
          type:
            - string
            - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    ApiError:
      type: object
      properties:
        message:
          type: string
        errors:
          type: object
          additionalProperties: true
  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.