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

# Create a new bank transaction



## OpenAPI

````yaml api-reference/openapi.json post /api/banking/transactions
openapi: 3.0.0
info:
  title: Bigcapital
  description: Financial accounting software
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /api/banking/transactions:
    post:
      tags:
        - Banking Transactions
      summary: Create a new bank transaction
      operationId: BankingTransactionsController_createTransaction
      parameters:
        - name: Authorization
          in: header
          description: >-
            Value must be 'Bearer <token>' where <token> is an API key prefixed
            with 'bc_' or a JWT token.
          required: true
          schema:
            type: string
            example: Bearer bc_1234567890abcdef
        - name: organization-id
          in: header
          description: >-
            Required if Authorization is a JWT token. The organization ID to
            operate within.
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateBankTransactionDto'
      responses:
        '201':
          description: The bank transaction has been successfully created
        '400':
          description: Invalid input data
components:
  schemas:
    CreateBankTransactionDto:
      type: object
      properties:
        date:
          format: date-time
          type: string
          description: The date of the bank transaction
          example: '2023-01-01T00:00:00.000Z'
        transactionNumber:
          type: string
          description: Optional transaction number or reference
          example: TRX-001
        referenceNo:
          type: string
          description: Optional external reference number
          example: REF-001
        transactionType:
          type: string
          description: Type of bank transaction (e.g., deposit, withdrawal)
          example: deposit
        description:
          type: string
          description: Description of the bank transaction
          example: Monthly rent payment
        amount:
          type: number
          description: Transaction amount
          example: 1000.5
        exchangeRate:
          type: number
          description: Exchange rate for currency conversion
          default: 1
          example: 1.15
        currencyCode:
          type: string
          description: Currency code for the transaction
          example: USD
        creditAccountId:
          type: number
          description: ID of the credit account associated with this transaction
          example: 1001
        cashflowAccountId:
          type: number
          description: ID of the cashflow account associated with this transaction
          example: 2001
        publish:
          type: boolean
          description: Whether the transaction should be published
          default: true
        branchId:
          type: number
          description: ID of the branch where the transaction occurred
          example: 101
        plaidTransactionId:
          type: string
          description: Plaid transaction ID if imported from Plaid
          example: plaid_trx_12345
        plaidAccountId:
          type: string
          description: Plaid account ID if imported from Plaid
          example: plaid_acc_67890
        uncategorizedTransactionId:
          type: number
          description: >-
            ID of the uncategorized transaction if this is categorizing an
            existing transaction
          example: 5001
      required:
        - date
        - transactionType
        - description
        - amount
        - exchangeRate
        - creditAccountId
        - cashflowAccountId
        - publish

````