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

# Patch statements



## OpenAPI

````yaml /openapi/finances.json patch /v1/finances/statements/{id}/
openapi: 3.0.3
info:
  title: Yume API — Транзакции
  version: 1.0.0
  description: Финансовые транзакции и обработка платежей.
servers:
  - url: https://api.yume.cloud
    description: Production
  - url: https://api.stage.yume.cloud
    description: Stage
security: []
paths:
  /v1/finances/statements/{id}/:
    patch:
      tags:
        - statements
      summary: Patch statements
      operationId: statements_partial_update
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
        - $ref: '#/components/parameters/TenantId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedTransactionStatementCreate'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedTransactionStatementCreate'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedTransactionStatementCreate'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionStatementCreate'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    PatchedTransactionStatementCreate:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        inventory:
          type: integer
          nullable: true
          title: Инвентарь
        counterparty:
          type: integer
          nullable: true
          title: Контрагент
        date:
          type: string
          format: date-time
          nullable: true
          title: Дата
        amount:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
          writeOnly: true
        method:
          writeOnly: true
          nullable: true
          default: 1
          oneOf:
            - $ref: '#/components/schemas/MethodD33Enum'
            - $ref: '#/components/schemas/NullEnum'
        type:
          type: integer
          writeOnly: true
          nullable: true
        account:
          type: integer
          writeOnly: true
          nullable: true
        category:
          type: integer
          writeOnly: true
          nullable: true
        sale:
          type: integer
          writeOnly: true
          nullable: true
        request:
          type: integer
          writeOnly: true
          nullable: true
        maintenance:
          type: integer
          writeOnly: true
          nullable: true
        workshop:
          type: integer
          writeOnly: true
          nullable: true
        created_at:
          type: string
          format: date-time
          writeOnly: true
        tags:
          type: array
          items:
            type: integer
    TransactionStatementCreate:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        inventory:
          type: integer
          nullable: true
          title: Инвентарь
        counterparty:
          type: integer
          nullable: true
          title: Контрагент
        date:
          type: string
          format: date-time
          nullable: true
          title: Дата
        amount:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
          writeOnly: true
        method:
          writeOnly: true
          nullable: true
          default: 1
          oneOf:
            - $ref: '#/components/schemas/MethodD33Enum'
            - $ref: '#/components/schemas/NullEnum'
        type:
          type: integer
          writeOnly: true
          nullable: true
        account:
          type: integer
          writeOnly: true
          nullable: true
        category:
          type: integer
          writeOnly: true
          nullable: true
        sale:
          type: integer
          writeOnly: true
          nullable: true
        request:
          type: integer
          writeOnly: true
          nullable: true
        maintenance:
          type: integer
          writeOnly: true
          nullable: true
        workshop:
          type: integer
          writeOnly: true
          nullable: true
        created_at:
          type: string
          format: date-time
          writeOnly: true
        tags:
          type: array
          items:
            type: integer
      required:
        - amount
        - id
    MethodD33Enum:
      enum:
        - 0
        - 1
      type: integer
      description: |-
        * `0` - Приход
        * `1` - Расход
    NullEnum:
      enum:
        - null
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````