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

# Create a new accounting entry



## OpenAPI

````yaml post /accounting
openapi: 3.0.0
info:
  title: Tripedge Backend API
  version: 1.0.0
servers:
  - url: /api
    description: API server
security:
  - ApiKeyAuth: []
paths:
  /accounting:
    post:
      summary: Create a new accounting entry
      operationId: createAccountingEntry
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                debit:
                  type: number
                  minimum: 0
                credit:
                  type: number
                  minimum: 0
                name:
                  type: string
                  minLength: 1
                clientId:
                  type: integer
                bookingId:
                  type: integer
                ccPaymentId:
                  type: string
                userId:
                  type: integer
                bankPaymentId:
                  type: integer
              required:
                - debit
                - credit
                - name
                - clientId
      responses:
        '201':
          description: Accounting entry created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates if the request was successful
                  message:
                    type: string
                    nullable: true
                    description: Response message
                  data:
                    type: object
                    properties:
                      id:
                        type: number
                      debit:
                        type: number
                      credit:
                        type: number
                      name:
                        type: string
                      clientId:
                        type: number
                      bookingId:
                        type: number
                      ccPaymentId:
                        type: string
                      userId:
                        type: number
                      bankPaymentId:
                        type: number
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
                      deletedAt:
                        type: string
                        format: date-time
                    required:
                      - id
                      - debit
                      - credit
                      - name
                      - clientId
                      - bookingId
                      - ccPaymentId
                      - userId
                      - bankPaymentId
                      - createdAt
                      - updatedAt
                      - deletedAt
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API key for authentication

````