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

# Close an offer as lost

> (Beta, unstable, may change) Records that the deal is lost, with the reason. Allowed while the offer is open or in signing; the offer then has the end state `lost` and no longer counts in the pipeline.

Required permission: `offer:write`.



## OpenAPI

````yaml assets/openapi-v2-finance.json post /api/offers/{id}/lose
openapi: 3.0.3
info:
  title: Fynn Finanzberichte API
  version: 2026-09
  description: >-
    The finance reporting API returns the same figures as the finance pages of
    the app: MRR and its movements, Accounted MRR, cash, receivables, revenue,
    the customer base, month-end snapshots with their restatements, the investor
    update and the Excel books. Every amount is an exact decimal string in one
    currency, never converted and never a float. Months are `YYYY-MM` in the
    time zone of the organisation.


    Authenticate every request with an API token of your organisation
    (`Authorization: Bearer api_...`). Reading needs `analytics:read`, taking a
    snapshot and changing the settings `analytics:write`, closing an offer
    `offer:write`. Every `/api/analytics/` route also needs the finance reports
    to be enabled for the organisation (feature flag `analytics.advanced`);
    otherwise it answers 403 `feature-not-available`. The recurring revenue,
    customer base and liquidity data, the snapshots and the investor update also
    need the Advanced Insights function.
servers:
  - url: https://coreapi.io
    description: Production
  - url: https://preview.coreapi.io
    description: Sandbox
security:
  - ApiToken: []
tags:
  - name: Datensätze
    description: Page datasets and the MRR table.
  - name: Drill-downs und Hinweise
    description: Lines behind a cell and data-quality findings.
  - name: Snapshots und Investor-Update
    description: Month-end snapshots and the investor pack.
  - name: Excel-Exporte
    description: Excel books of the finance pages.
  - name: Definitionen
    description: The versioned definitions catalogue with its changelog.
  - name: Einstellungen
    description: Organisation-wide settings of the finance figures.
  - name: Gutschriften verrechnen
    description: Preview and settle a credit note or cancellation.
  - name: Angebote schließen
    description: Seller-side end states of an offer. Beta.
paths:
  /api/offers/{id}/lose:
    post:
      tags:
        - Angebote schließen
      summary: Close an offer as lost
      description: >-
        (Beta, unstable, may change) Records that the deal is lost, with the
        reason. Allowed while the offer is open or in signing; the offer then
        has the end state `lost` and no longer counts in the pipeline.


        Required permission: `offer:write`.
      operationId: loseOffer
      parameters:
        - name: id
          in: path
          description: Offer ID (ULID)
          required: true
          schema:
            type: string
            format: ulid
            pattern: '[0-9A-HJKMNP-TV-Z]{26}|[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoseOfferInput'
      responses:
        '200':
          description: The closed offer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OfferClosedView'
        '400':
          description: Malformed JSON body.
        '401':
          description: Missing or invalid authentication.
        '403':
          description: >-
            Missing permission `offer:write` or the offers function is not
            booked
        '404':
          description: Offer not found or belongs to another organisation
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: >-
            The offer is no longer open (`OFFER__NOT_CLOSABLE`, current status
            in `offerStatus`, the attempted end state in `targetStatus`)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '422':
          description: >-
            Missing reason. The body lists it in `violations` (`propertyPath`
            `reason`).
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ValidationProblem'
      security:
        - ApiToken: []
components:
  schemas:
    LoseOfferInput:
      required:
        - reason
      properties:
        reason:
          description: Why the deal was lost, at most 2000 characters. Required.
          type: string
          maxLength: 2000
          example: Preis zu hoch
      type: object
    OfferClosedView:
      description: The end state of an offer closed by the seller.
      properties:
        id:
          description: Offer ID (ULID).
          type: string
        status:
          description: 'The end state: `lost` or `withdrawn`.'
          type: string
          enum:
            - lost
            - withdrawn
        closedAt:
          description: When the offer was closed (ISO 8601, UTC).
          type: string
          format: date-time
          nullable: true
        lostReason:
          description: Why the deal was lost; null for a withdrawn offer.
          type: string
          nullable: true
      type: object
    Problem:
      type: object
      description: >-
        Error body (problem+json). `type` is the error key, e.g.
        `OFFER__NOT_CLOSABLE`; further keys carry the parameters of the error.
      properties:
        status:
          type: integer
          example: 409
        type:
          type: string
          example: ANALYTICS_FINANCE__PACK_WITHOUT_SNAPSHOT
        title:
          type: string
          example: An error occurred
        detail:
          type: string
          description: German sentence that can be shown to the user.
      required:
        - status
        - type
        - title
        - detail
      additionalProperties: true
    ValidationProblem:
      type: object
      description: '422 body: one entry per rejected field in `violations`.'
      properties:
        status:
          type: integer
          example: 422
        type:
          type: string
          example: https://tools.ietf.org/html/rfc2616#section-10
        title:
          type: string
          example: Validation Failed
        detail:
          type: string
        violations:
          type: array
          items:
            $ref: '#/components/schemas/Violation'
      required:
        - status
        - type
        - violations
      additionalProperties: true
    Violation:
      type: object
      properties:
        propertyPath:
          type: string
          example: to
        message:
          type: string
          example: Der Zeitraum darf höchstens 36 Monate umfassen.
        code:
          type: string
          example: analytics.mrr_financials.range_too_long
      required:
        - propertyPath
        - message
        - code
  securitySchemes:
    ApiToken:
      type: http
      scheme: bearer
      description: >-
        API token of the organisation. Send it as Authorization: Bearer api_...
        The token is bound to exactly one organisation.

````