> ## Documentation Index
> Fetch the complete documentation index at: https://v1-learn.neoartd.my.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Transaksi



## OpenAPI

````yaml api/transaksi.json post /transaksi
openapi: 3.0.1
info:
  title: Transaksi API
  description: An API for Transaksi documentation management and resource access.
  version: 1.0.0
servers:
  - url: https://blessed-toad-definitely.ngrok-free.app/api
security: []
paths:
  /transaksi:
    post:
      summary: Create Transaksi
      operationId: createTransaksi
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TransaksiInput'
      responses:
        '201':
          description: Transaksi created successfully
components:
  schemas:
    TransaksiInput:
      type: object
      properties:
        pelanggan:
          type: object
          properties:
            id:
              type: integer
              description: Unique identifier for the pelanggan
        kantor:
          type: object
          properties:
            id:
              type: integer
              description: Unique identifier for the branch
              readOnly: true
        voucher:
          type: object
          properties:
            id:
              type: integer
              description: Unique identifier for the voucher
              readOnly: true
        berat:
          type: number
          description: Weight of the laundry
          example: 5
        nominal:
          type: number
          description: Nominal of the laundry
          example: 50000
        totalNominal:
          type: number
          description: Total nominal of the laundry
          example: 45000
        statusCucian:
          type: string
          enum:
            - Pending
            - Process
            - Done
          description: Status of the laundry
        dibayar:
          type: boolean
          description: Payment status of the laundry (auto generate)
          example: true
        sisaNominal:
          type: number
          description: Remaining nominal of the laundry (auto generate)
          example: 5000
        metodePembayaran:
          type: string
          description: Payment method of the laundry
          example: Cash
          enum:
            - Cash
            - Bank Transfer
        statusPembayaran:
          type: string
          description: Payment status of the laundry
          example: Paid
          enum:
            - Pending
            - Paid
        kodePembayaran:
          type: string
          description: Payment code of the laundry (auto generate)
          example: '123456'
        tanggal:
          type: string
          format: date-time
          description: Date of the laundry
          example: '2022-01-01T10:00:00Z'
      required:
        - pelanggan
        - kantor
        - berat
        - nominal
        - totalNominal
        - statusCucian
        - dibayar
        - sisaNominal
        - metodePembayaran
        - statusPembayaran
        - kodePembayaran
        - tanggal

````