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

# Update Price Manual API

> Set a manual token price on Breezing transactions to recompute fiat values when the market price is missing, wrong, or agreed in a deal.



## OpenAPI

````yaml POST /transactions/update-price-manual
openapi: 3.1.0
info:
  title: Breezing Public API
  version: 1.0.0
  description: >-
    Crypto accounting API for programmatic access and AI agents. Authenticate
    with an API key using the Authorization header: `Bearer brz_...`
servers:
  - url: https://api.breezing.io/v1
security:
  - BearerAuth: []
paths:
  /transactions/update-price-manual:
    post:
      tags:
        - Transactions
      summary: Set a manual token price on transactions
      description: >-
        Reprice the given transactions with one manual token price (the
        dashboard "Update Price Manual" action): `amountFiat = amount x price`
        on every row, and `feeFiat = fee x price` when the fee is paid in the
        same token (other fee tokens keep their fiat value). Writes the new fiat
        values directly and records the previous ones in the transaction
        history. Synchronous.


        Use it when the market price Breezing fetched is wrong or missing for a
        token, or when a specific valuation was agreed (an OTC deal, an audited
        year-end rate). To reprice from market data instead, call POST
        /transactions/update-price-auto. Balances, cost basis and net gain/loss
        are NOT recomputed automatically: run POST /ngl/calculate afterwards.


        Returns 404 if an id is unknown, 409 LOCKED or PROCESSING if any row
        cannot be modified, 400 WALLET_MISMATCH when walletId is set and an id
        belongs to another wallet.
      parameters:
        - schema:
            type: string
            description: >-
              Organization ID. Use GET /v1/companies to discover available
              org/company pairs.
            example: '1'
          required: true
          description: >-
            Organization ID. Use GET /v1/companies to discover available
            org/company pairs.
          name: orgId
          in: query
        - schema:
            type: string
            description: >-
              Company ID. Use GET /v1/companies to discover available companies
              and their access levels.
            example: '1'
          required: true
          description: >-
            Company ID. Use GET /v1/companies to discover available companies
            and their access levels.
          name: companyId
          in: query
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePriceManualBody'
      responses:
        '200':
          description: Prices updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: object
                    properties:
                      updated:
                        type: integer
                    required:
                      - updated
                required:
                  - success
                  - data
        '400':
          description: Invalid body or WALLET_MISMATCH
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '403':
          description: >-
            API key has no access to this company, has read-only access where
            write was required, or the company subscription is inactive
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '404':
          description: Transaction not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '409':
          description: A transaction is locked or processing
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
      security:
        - BearerAuth: []
components:
  schemas:
    UpdatePriceManualBody:
      type: object
      properties:
        ids:
          type: array
          items:
            type: integer
          minItems: 1
          maxItems: 500
          description: Transaction IDs to reprice (max 500). All must be unlocked.
        price:
          type: string
          pattern: ^[0-9]+(\.[0-9]+)?$
          description: >-
            Price of ONE token unit in the company currency, as a positive
            decimal string (e.g. "1850.25").
          example: '1850.25'
        walletId:
          type: integer
          minimum: 0
          exclusiveMinimum: true
          description: >-
            Optional wallet scope: every id must belong to this wallet (400
            WALLET_MISMATCH otherwise).
      required:
        - ids
        - price

````

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