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

# Crea una imputación



## OpenAPI

````yaml post /imputations/
openapi: 3.0.3
info:
  title: Esolbay API
  version: 1.0.0
  description: API Esolbay.
servers:
  - url: http://localhost:3000/api/v1
    description: Ruta base local
  - url: https://api.esolbay.com/api/v1
    description: Producción
  - url: https://staging.esolbay.com/api/v1
    description: Staging
security:
  - apiKeyAuth: []
  - bearerAuth: []
paths:
  /imputations/:
    post:
      tags:
        - Imputations
      summary: Crea una imputación
      operationId: createImputation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImputationCreate'
      responses:
        '201':
          description: Creada
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  reference:
                    type: string
                  contractId:
                    type: string
                  orderId:
                    type: string
                  account:
                    type: string
                  amount:
                    type: number
                  currency:
                    type: string
                  notes:
                    type: string
                  createdAt:
                    nullable: true
                  updatedAt:
                    nullable: true
                required:
                  - id
                  - reference
                  - account
                  - amount
                example:
                  id: imp_01
                  reference: ORD-2025-0001
                  orderId: ord_01
                  account: 6001-Gastos Operativos
                  amount: 1500
                  currency: USD
components:
  schemas:
    ImputationCreate:
      type: object
      properties:
        reference:
          type: string
        contractId:
          type: string
        orderId:
          type: string
        account:
          type: string
        amount:
          type: number
        currency:
          type: string
        notes:
          type: string
        createdAt:
          nullable: true
        updatedAt:
          nullable: true
      required:
        - reference
        - account
        - amount
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````