> ## 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.

# Withdraw an offer

> (Beta, unstable, may change) Takes the offer back. The offer then has the end state `withdrawn` and no longer counts in the pipeline. Allowed while the offer is open or in signing, and also after the customer signed (status `awaiting_invoice_details` or `signed`). For a signed offer the request first ends what the signature created: an open order of the offer is cancelled; a subscription of the offer that has not started (`draft`, `offer`, `awaiting_payment_method`) is voided and its draft invoices are closed only when no step of it was executed and nothing of it was billed; otherwise it is cancelled with today as its end and stays in the statistics; an `active` or `paused` subscription is cancelled with immediate effect, without a credit and without an e-mail to the customer. Invoices written before stay as they are: an issued invoice can be corrected with `POST /api/invoices/{id}/correct`, an invoice still awaiting approval stays in the approval queue. A subscription that is already cancelled, terminated or voided is left as it is. An offer that changed an existing subscription never ends that subscription: its order is cancelled while nothing of it has been applied, afterwards the request is refused. Withdrawing a signed offer additionally requires `subscription:write`. The steps do not run in one transaction: when the request fails after the subscription was cancelled, the subscription stays cancelled and the offer keeps its status, and sending the request again finishes the withdrawal.

Required permission: `offer:write`.



## OpenAPI

````yaml assets/openapi-v2-finance.json post /api/offers/{id}/withdraw
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}/withdraw:
    post:
      tags:
        - Angebote schließen
      summary: Withdraw an offer
      description: >-
        (Beta, unstable, may change) Takes the offer back. The offer then has
        the end state `withdrawn` and no longer counts in the pipeline. Allowed
        while the offer is open or in signing, and also after the customer
        signed (status `awaiting_invoice_details` or `signed`). For a signed
        offer the request first ends what the signature created: an open order
        of the offer is cancelled; a subscription of the offer that has not
        started (`draft`, `offer`, `awaiting_payment_method`) is voided and its
        draft invoices are closed only when no step of it was executed and
        nothing of it was billed; otherwise it is cancelled with today as its
        end and stays in the statistics; an `active` or `paused` subscription is
        cancelled with immediate effect, without a credit and without an e-mail
        to the customer. Invoices written before stay as they are: an issued
        invoice can be corrected with `POST /api/invoices/{id}/correct`, an
        invoice still awaiting approval stays in the approval queue. A
        subscription that is already cancelled, terminated or voided is left as
        it is. An offer that changed an existing subscription never ends that
        subscription: its order is cancelled while nothing of it has been
        applied, afterwards the request is refused. Withdrawing a signed offer
        additionally requires `subscription:write`. The steps do not run in one
        transaction: when the request fails after the subscription was
        cancelled, the subscription stays cancelled and the offer keeps its
        status, and sending the request again finishes the withdrawal.


        Required permission: `offer:write`.
      operationId: withdrawOffer
      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}'
      responses:
        '200':
          description: The closed offer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OfferClosedView'
        '401':
          description: Missing or invalid authentication.
        '403':
          description: >-
            Missing permission `offer:write` (for a signed offer also
            `subscription: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 can no longer be withdrawn: it is already withdrawn, lost,
            rejected or archived (`OFFER__NOT_CLOSABLE`, current status in
            `offerStatus`, the attempted end state in `targetStatus`). Or the
            contract of a signed offer cannot be ended
            (`OFFER__WITHDRAW_CONTRACT_NOT_ENDABLE`, the case in `reason`:
            `change_applied` the offer changed an existing subscription and the
            change is applied; `subscription_not_cancellable` the immediate
            cancellation was refused, its error key in `cause`, the subscription
            in `subscriptionId` and `subscriptionStatus`; `contract_changed` the
            order or subscription changed during the request, repeat it). The
            offer keeps its status.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
              examples:
                notClosable:
                  summary: The offer is already closed
                  value:
                    status: 409
                    type: OFFER__NOT_CLOSABLE
                    title: An error occurred
                    detail: >-
                      Das Angebot ist nicht mehr offen und kann nicht mehr
                      geschlossen werden.
                    targetStatus: withdrawn
                    offerStatus: withdrawn
                changeApplied:
                  summary: >-
                    The offer changed an existing subscription and the change is
                    applied
                  value:
                    status: 409
                    type: OFFER__WITHDRAW_CONTRACT_NOT_ENDABLE
                    title: An error occurred
                    detail: >-
                      Das Angebot hat einen bestehenden Vertrag geändert. Die
                      Änderung ist schon wirksam und kann nicht durch
                      Zurückziehen rückgängig gemacht werden.
                    reason: change_applied
                    orderId: 01K9B7H2M4N6P8Q0R2S4T6V8W0
                    subscriptionId: 01K9B7H2M4N6P8Q0R2S4T6V8W1
                contractChanged:
                  summary: The order or subscription changed during the request
                  value:
                    status: 409
                    type: OFFER__WITHDRAW_CONTRACT_NOT_ENDABLE
                    title: An error occurred
                    detail: >-
                      Der Vertrag des Angebots hat sich während des
                      Zurückziehens geändert. Bitte versuche es erneut.
                    reason: contract_changed
      security:
        - ApiToken: []
components:
  schemas:
    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
  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.

````