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

# update manual Treasury movement

> Use native currency cents. USD outflows use carrying value. The path ID is treasury_adjustments.id or treasury_movement_id from lists, not the unified row id. Payments and transfers require their own tools. Registers are excluded.



## OpenAPI

````yaml /api-reference/openapi.json put /api/v1/treasury/movements/{treasury_movement_id}
openapi: 3.1.0
info:
  title: La Pyme API
  description: >-
    Resources and workflows for purchases, sales, inventory, contacts, products,
    reports, and settings.
  version: 1.0.0
  contact:
    name: La Pyme Support
    email: hola@lapyme.com.ar
  license:
    name: Proprietary
    url: https://lapyme.com.ar/terminos
servers:
  - url: https://api.lapyme.com.ar
    description: Servidor de producción
security:
  - bearerAuth: []
tags:
  - name: API
    description: Public API operations for La Pyme integrations.
paths:
  /api/v1/treasury/movements/{treasury_movement_id}:
    put:
      tags:
        - API
      summary: update manual Treasury movement
      description: >-
        Use native currency cents. USD outflows use carrying value. The path ID
        is treasury_adjustments.id or treasury_movement_id from lists, not the
        unified row id. Payments and transfers require their own tools.
        Registers are excluded.
      operationId: updateApiTreasuryMovement
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
        - name: treasury_movement_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiUpdateTreasuryMovementRequest'
      responses:
        '200':
          description: Movement saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiManualTreasuryMovementResponse'
        '400':
          description: Invalid request
        '401':
          description: Authentication required
        '403':
          description: Forbidden
        '404':
          description: Not found
        '409':
          description: Not manual, changed version, or idempotency conflict
        '422':
          description: Business requirement unmet
        '500':
          description: Internal error
components:
  schemas:
    ApiUpdateTreasuryMovementRequest:
      type: object
      properties:
        balance:
          $ref: '#/components/schemas/ApiSharedObject1bdf8f7029'
        direction:
          $ref: '#/components/schemas/ApiSharedEnumba3dc7ee2b'
        amount:
          type: integer
          exclusiveMinimum: 0
        occurred_on:
          type: string
          format: date
        account_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
        contact_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
        lines:
          minItems: 1
          maxItems: 32
          type: array
          items:
            $ref: '#/components/schemas/ApiSharedObject39414c953b'
        exchange_rate:
          type: number
          exclusiveMinimum: 0
          maximum: 1000000000
        statement_line:
          $ref: '#/components/schemas/ApiSharedObjectfd7f591c89'
        description:
          anyOf:
            - type: string
              maxLength: 500
            - type: 'null'
        reference:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
        note:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
        cost_center1_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
        cost_center2_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
        cost_center3_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
        distributions:
          minItems: 2
          maxItems: 32
          type: array
          items:
            $ref: '#/components/schemas/ApiSharedObject95caea9bee'
        updated_at:
          type: string
          format: date-time
      required:
        - balance
        - direction
        - amount
        - occurred_on
        - updated_at
      additionalProperties: false
    ApiManualTreasuryMovementResponse:
      type: object
      properties:
        request_id:
          type: string
        data:
          type: object
          properties:
            object:
              type: string
              const: treasury_movement
            id:
              type: string
              format: uuid
            balance:
              $ref: '#/components/schemas/ApiSharedObject16a22cc706'
            direction:
              $ref: '#/components/schemas/ApiSharedEnumba3dc7ee2b'
            currency:
              $ref: '#/components/schemas/ApiSharedEnumffb4886f2b'
            native_amount:
              type: integer
            functional_amount:
              type: integer
            functional_currency:
              type: string
              const: ARS
            occurred_on:
              type: string
              format: date
            source_type:
              type: string
            account_id:
              anyOf:
                - type: string
                  format: uuid
                - type: 'null'
            contact_id:
              anyOf:
                - type: string
                  format: uuid
                - type: 'null'
            description:
              type:
                - string
                - 'null'
            reference:
              type:
                - string
                - 'null'
            note:
              type:
                - string
                - 'null'
            cost_center1_id:
              anyOf:
                - type: string
                  format: uuid
                - type: 'null'
            cost_center2_id:
              anyOf:
                - type: string
                  format: uuid
                - type: 'null'
            cost_center3_id:
              anyOf:
                - type: string
                  format: uuid
                - type: 'null'
            distributions:
              type: array
              items:
                type: object
                properties:
                  cost_center1_id:
                    type: string
                    format: uuid
                  amount_cents:
                    type: integer
                required:
                  - cost_center1_id
                  - amount_cents
                additionalProperties: false
            statement_line:
              anyOf:
                - type: object
                  properties:
                    source:
                      type: string
                    key:
                      type: string
                  required:
                    - source
                    - key
                  additionalProperties: false
                - type: 'null'
            lines:
              type: array
              items:
                type: object
                properties:
                  account_id:
                    type: string
                    format: uuid
                  amount:
                    type: integer
                  cost_center1_id:
                    anyOf:
                      - type: string
                        format: uuid
                      - type: 'null'
                  cost_center2_id:
                    anyOf:
                      - type: string
                        format: uuid
                      - type: 'null'
                  cost_center3_id:
                    anyOf:
                      - type: string
                        format: uuid
                      - type: 'null'
                  description:
                    type:
                      - string
                      - 'null'
                required:
                  - account_id
                  - amount
                  - cost_center1_id
                  - cost_center2_id
                  - cost_center3_id
                  - description
                additionalProperties: false
            rate:
              anyOf:
                - $ref: '#/components/schemas/ApiSharedObject45b71eae86'
                - type: 'null'
            created_at:
              type: string
              format: date-time
            updated_at:
              type: string
              format: date-time
          required:
            - object
            - id
            - balance
            - direction
            - currency
            - native_amount
            - functional_amount
            - functional_currency
            - occurred_on
            - source_type
            - account_id
            - contact_id
            - description
            - reference
            - note
            - cost_center1_id
            - cost_center2_id
            - cost_center3_id
            - distributions
            - statement_line
            - lines
            - rate
            - created_at
            - updated_at
          additionalProperties: false
      required:
        - request_id
        - data
      additionalProperties: false
    ApiSharedObject1bdf8f7029:
      type: object
      properties:
        balance_type:
          $ref: '#/components/schemas/ApiSharedEnum624a50a35d'
        balance_id:
          type: string
          format: uuid
      required:
        - balance_type
        - balance_id
      additionalProperties: false
    ApiSharedEnumba3dc7ee2b:
      type: string
      enum:
        - inflow
        - outflow
    ApiSharedObject39414c953b:
      type: object
      properties:
        account_id:
          type: string
          format: uuid
        amount:
          type: integer
          exclusiveMinimum: 0
        description:
          anyOf:
            - type: string
              maxLength: 500
            - type: 'null'
        cost_center1_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
        cost_center2_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
        cost_center3_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
      required:
        - account_id
        - amount
      additionalProperties: false
    ApiSharedObjectfd7f591c89:
      type: object
      properties:
        source:
          type: string
          minLength: 1
          maxLength: 100
        key:
          type: string
          minLength: 1
          maxLength: 255
      required:
        - source
        - key
      additionalProperties: false
    ApiSharedObject95caea9bee:
      type: object
      properties:
        cost_center1_id:
          type: string
          format: uuid
        amount_cents:
          type: integer
          exclusiveMinimum: 0
      required:
        - cost_center1_id
        - amount_cents
      additionalProperties: false
    ApiSharedObject16a22cc706:
      type: object
      properties:
        balance_type:
          $ref: '#/components/schemas/ApiSharedEnum53162db3eb'
        balance_id:
          type: string
          format: uuid
      required:
        - balance_type
        - balance_id
      additionalProperties: false
    ApiSharedEnumffb4886f2b:
      type: string
      enum:
        - ARS
        - USD
    ApiSharedObject45b71eae86:
      type: object
      properties:
        value:
          type: string
        rate_date:
          type: string
          format: date
        source:
          $ref: '#/components/schemas/ApiSharedEnum3e321043c1'
      required:
        - value
        - rate_date
        - source
      additionalProperties: false
    ApiSharedEnum624a50a35d:
      type: string
      enum:
        - bank_account
        - safe
    ApiSharedEnum53162db3eb:
      type: string
      enum:
        - bank_account
        - register
        - safe
    ApiSharedEnum3e321043c1:
      type: string
      enum:
        - bcra
        - actual
        - manual
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Incluí tu API key en el header Authorization con el prefijo Bearer.

````

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