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

# Bulk create transactions

> Bulk create transactions for the authenticated team.



## OpenAPI

````yaml post /transactions/bulk
openapi: 3.1.0
info:
  version: 0.0.1
  title: Abacus API
  description: Abacus is the operating system for Merchant Cash Advance businesses.
  contact:
    name: Abacus Support
    email: support@abacuslabs.co
    url: https://abacuslabs.co
  license:
    name: AGPL-3.0 license
    url: https://github.com/Suphian/abacus/blob/main/LICENSE
servers:
  - url: https://api.abacuslabs.co
    description: Production API
security:
  - oauth2: []
  - token: []
paths:
  /transactions/bulk:
    post:
      tags:
        - Transactions
      summary: Bulk create transactions
      description: Bulk create transactions for the authenticated team.
      operationId: createTransactions
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                    description: Name of the transaction.
                  amount:
                    type: number
                    description: Amount of the transaction.
                  currency:
                    type: string
                    description: Currency of the transaction.
                  date:
                    type: string
                    description: Date of the transaction (ISO 8601).
                  bankAccountId:
                    type: string
                    description: Bank account ID associated with the transaction.
                  assignedId:
                    type: string
                    description: Assigned user ID for the transaction.
                  categorySlug:
                    type: string
                    description: Category slug for the transaction.
                  note:
                    type: string
                    description: Note for the transaction.
                  internal:
                    type: boolean
                    description: Whether the transaction is internal.
                  dealCode:
                    type: string
                    description: Deal code to associate with the transaction.
                  entityId:
                    type: string
                    format: uuid
                    description: >-
                      Entity ID (merchant, broker, or syndicator) associated
                      with the transaction.
                  entityType:
                    type: string
                    enum:
                      - merchant
                      - syndicator
                      - vendor
                      - bank
                      - internal
                      - broker
                    description: Type of entity associated with the transaction.
                  method:
                    type: string
                    enum:
                      - ach
                      - wire
                      - zelle
                      - check
                      - transfer
                      - payment
                      - deposit
                      - fee
                      - manual
                      - other
                      - unknown
                      - card_purchase
                      - card_atm
                      - interest
                      - same_day_ach
                    description: Payment method for the transaction.
                  attachments:
                    type: array
                    items:
                      type: object
                      properties:
                        path:
                          type: array
                          items:
                            type: string
                          description: Path(s) of the attachment file(s).
                        name:
                          type: string
                          description: Name of the attachment file.
                        size:
                          type: number
                          description: Size of the attachment file in bytes.
                        type:
                          type: string
                          description: MIME type of the attachment file.
                      required:
                        - path
                        - name
                        - size
                        - type
                    description: Array of attachments for the transaction.
                required:
                  - name
                  - amount
                  - currency
                  - date
                  - bankAccountId
              minItems: 1
              maxItems: 100
              description: List of transactions to create.
      responses:
        '200':
          description: Transactions created
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TransactionResponse'
components:
  schemas:
    TransactionResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier of the transaction
          example: b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f
        name:
          type: string
          description: Name or description of the transaction
          example: Office Supplies Purchase
        amount:
          type: number
          description: Monetary amount of the transaction
          example: 150.75
        currency:
          type: string
          description: Currency code of the transaction in ISO 4217 format
          example: USD
        counterpartyName:
          type: string
          nullable: true
          description: Name of the counterparty
          example: Spotify AB
        date:
          type: string
          description: Date and time of the transaction in ISO 8601 format
          example: '2024-05-01T12:00:00.000Z'
        category:
          type: object
          nullable: true
          properties:
            id:
              type: string
              description: Unique identifier of the category
              example: office-supplies
            name:
              type: string
              description: Display name of the category
              example: Office Supplies
            color:
              type: string
              description: Hex color code associated with the category for UI display
              example: '#FF5733'
            slug:
              type: string
              description: URL-friendly slug of the category
              example: office-supplies
          required:
            - id
            - name
            - color
            - slug
          description: Category information assigned to the transaction for organization
          example:
            id: office-supplies
            name: Office Supplies
            color: '#FF5733'
            slug: office-supplies
        transactionType:
          type: string
          nullable: true
          enum:
            - credit
            - debit
            - null
          description: Transaction type classification
          example: credit
        status:
          type: string
          description: Current status of the transaction
          example: posted
        internal:
          type: boolean
          nullable: true
          description: Whether the transaction is internal (between own accounts)
          example: false
        recurring:
          type: boolean
          nullable: true
          description: Whether the transaction is part of a recurring series
          example: false
        manual:
          type: boolean
          nullable: true
          description: >-
            Whether the transaction was created manually (via API/form) rather
            than imported from bank connections
          example: false
        frequency:
          type: string
          nullable: true
          description: >-
            Frequency of the recurring transaction if applicable (weekly,
            monthly, annually, irregular)
          example: monthly
        parentTransactionId:
          type: string
          nullable: true
          format: uuid
          description: >-
            ID of the parent transaction if this is a child (e.g., NSF fee
            linked to original attempt)
          example: null
        isFulfilled:
          type: boolean
          description: Whether the transaction has been fulfilled or processed
          example: true
        note:
          type: string
          nullable: true
          description: Optional note or memo attached to the transaction
          example: Paid with company credit card for office renovation
        entityId:
          type: string
          nullable: true
          description: ID of the linked entity (merchant, broker, etc.)
        entityType:
          type: string
          nullable: true
          description: Type of the linked entity
        entityName:
          type: string
          nullable: true
          description: Display name of the linked entity
        entityCompanyName:
          type: string
          nullable: true
          description: Company name of the linked entity
        dealCode:
          type: string
          nullable: true
          description: Code of the matched MCA deal
        matchStatus:
          type: string
          nullable: true
          description: Status of the deal match
        matchedDealId:
          type: string
          nullable: true
          description: ID of the matched MCA deal
        dealMerchantName:
          type: string
          nullable: true
          description: Merchant name from the matched deal
        discrepancyType:
          type: string
          nullable: true
          enum:
            - nsf
            - short_pay
            - partial_payment
            - stacking_suspected
            - revenue_decline
            - contact_merchant
            - duplicate
            - overpayment
            - unrecognized
            - bank_fee
            - split_payment
            - null
          description: Flag type for review
        assigned:
          type: object
          nullable: true
          properties:
            id:
              type: string
              nullable: true
            fullName:
              type: string
              nullable: true
            avatarUrl:
              type: string
              nullable: true
          required:
            - id
            - fullName
            - avatarUrl
          description: User assigned to review this transaction
        account:
          type: object
          properties:
            id:
              type: string
              description: Unique identifier of the bank account
              example: a43dc3a5-6925-4d91-ac9c-4c1a34bdb388
            name:
              type: string
              description: Display name of the bank account
              example: Company Credit Card
            currency:
              type: string
              description: Currency of the bank account in ISO 4217 format
              example: USD
            connection:
              type: object
              properties:
                id:
                  type: string
                  description: Unique identifier of the bank connection
                  example: a43dc3a5-6925-4d91-ac9c-4c1a34bdb388
                name:
                  type: string
                  description: Name of the bank institution
                  example: Chase Bank
                logoUrl:
                  type: string
                  nullable: true
                  description: URL to the bank institution's logo image
                  example: https://logo.clearbit.com/chase.com
              required:
                - id
                - name
                - logoUrl
              description: Bank connection information associated with the account
              example:
                id: a43dc3a5-6925-4d91-ac9c-4c1a34bdb388
                name: Chase Bank
                logoUrl: https://logo.clearbit.com/chase.com
          required:
            - id
            - name
            - currency
            - connection
          description: Bank account information associated with the transaction
          example:
            id: a43dc3a5-6925-4d91-ac9c-4c1a34bdb388
            name: Company Credit Card
            currency: USD
            connection:
              id: a43dc3a5-6925-4d91-ac9c-4c1a34bdb388
              name: Chase Bank
              logoUrl: https://logo.clearbit.com/chase.com
        tags:
          type: array
          nullable: true
          items:
            type: object
            properties:
              id:
                type: string
                description: Unique identifier of the tag
                example: b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b
              name:
                type: string
                nullable: true
                description: Display name of the tag
                example: invoice
            required:
              - id
              - name
          description: >-
            Array of tags associated with the transaction for categorization and
            filtering
          example:
            - id: b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b
              name: invoice
            - id: c8e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7c
              name: travel
        attachments:
          type: array
          nullable: true
          items:
            type: object
            properties:
              id:
                type: string
                description: Unique identifier of the attachment
                example: a43dc3a5-6925-4d91-ac9c-4c1a34bdb388
              path:
                type: array
                items:
                  type: string
                description: >-
                  Array of path segments for the attachment file storage
                  location
                example:
                  - dd6a039e-d071-423a-9a4d-9ba71325d890
                  - transactions
                  - 1d2c3753-79d7-45b0-9c40-60f482bac8e8
                  - receipt.pdf
              size:
                type: number
                description: Size of the attachment file in bytes
                example: 1928716
              type:
                type: string
                description: MIME type of the attachment file
                example: application/pdf
              filename:
                type: string
                nullable: true
                description: Original filename of the attachment when uploaded
                example: receipt.pdf
            required:
              - id
              - path
              - size
              - type
              - filename
          description: >-
            Array of file attachments associated with the transaction (receipts,
            invoices, etc.)
          example:
            - id: b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b
              path:
                - e1f2d3c4-b5a6-7d8e-9f0a-1b2c3d4e5f6a
                - transactions
                - 9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
                - receipt.pdf
              size: 1928716
              type: application/pdf
              filename: receipt.pdf
      required:
        - id
        - name
        - amount
        - currency
        - counterpartyName
        - date
        - category
        - transactionType
        - status
        - internal
        - recurring
        - manual
        - frequency
        - isFulfilled
        - note
        - entityId
        - entityType
        - entityName
        - entityCompanyName
        - dealCode
        - matchStatus
        - matchedDealId
        - dealMerchantName
        - discrepancyType
        - assigned
        - account
        - tags
        - attachments
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: Default authentication mechanism
      x-speakeasy-example: ABACUS_API_KEY

````

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