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

# Replace the signed document of an accepted offer

> **Beta. This endpoint is unstable and may still change without notice.** Pin against the dated version and watch the changelog.

Makes the uploaded PDF the signed document of an offer in status `awaiting_invoice_details` or `signed`. Use it when the customer signed on your own system and you accepted the offer with POST /api/offers/{id}/accept without a file: until then the offer carries the PDF Fynn rendered at acceptance as its signed document. Send the PDF as a multipart form with the field `file`, as on POST /api/offers/{id}/accept.

The status, the acceptance time and the audit log stay as they are. The previous document is kept as an earlier version. Sending the same file again changes nothing; a different file replaces the document again.



## OpenAPI

````yaml assets/openapi-v2-offers.json post /api/offers/{id}/documents/signed
openapi: 3.1.0
info:
  title: Fynn Angebote API (Beta)
  version: 2026-06
  description: >-
    **Beta / Unstable.** The Fynn Angebote (offers) API lets you read, update,
    publish, approve and accept offers programmatically. It is the actively
    maintained surface that replaces the older offer endpoints (still available
    but deprecated, removed on 2026-08-01).


    These endpoints are new and may still change without notice while the
    surface settles. Pin against the dated version and watch the changelog
    before relying on them in production.


    Authenticate every request with an API token of your organisation
    (`Authorization: Bearer api_...`). Documents are returned as media
    references; see the note on each media `id` for how to download the file.
servers:
  - url: https://coreapi.io
    description: Production
  - url: https://preview.coreapi.io
    description: Sandbox
security:
  - ApiToken: []
tags:
  - name: Offers
    description: Read, update, publish and accept offers. Beta.
  - name: Offer approval
    description: Internal approval flow for offers. Beta.
paths:
  /api/offers/{id}/documents/signed:
    post:
      tags:
        - Offers
      summary: Replace the signed document of an accepted offer
      description: >-
        **Beta. This endpoint is unstable and may still change without notice.**
        Pin against the dated version and watch the changelog.


        Makes the uploaded PDF the signed document of an offer in status
        `awaiting_invoice_details` or `signed`. Use it when the customer signed
        on your own system and you accepted the offer with POST
        /api/offers/{id}/accept without a file: until then the offer carries the
        PDF Fynn rendered at acceptance as its signed document. Send the PDF as
        a multipart form with the field `file`, as on POST
        /api/offers/{id}/accept.


        The status, the acceptance time and the audit log stay as they are. The
        previous document is kept as an earlier version. Sending the same file
        again changes nothing; a different file replaces the document again.
      operationId: replaceSignedOfferDocument
      parameters:
        - name: id
          in: path
          required: true
          description: Offer ID (ULID).
          schema:
            type: string
            format: ulid
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: The signed PDF (max 20 MB).
              required:
                - file
      responses:
        '200':
          description: The documents of the offer. `signed` is the uploaded PDF.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OfferDocumentsView'
        '400':
          description: >-
            `OFFER__UPLOAD_FILE_MISSING`: no file arrived. The body lists the
            field `file` in `violations`.
        '403':
          description: Access denied.
        '404':
          description: Offer not found or in another organisation.
        '409':
          description: >-
            `OFFER__NOT_ACCEPTED_YET`: the offer is not in status
            `awaiting_invoice_details` or `signed`.
        '413':
          description: The file is larger than 20 MB.
        '422':
          description: >-
            The file is not a complete, unencrypted PDF with at least one page.
            The body lists the field `file` in `violations`, e.g. with the code
            `upload.not_pdf`.
      security:
        - ApiToken: []
components:
  schemas:
    OfferDocumentsView:
      type: object
      description: Grouped offer documents. Each slot is null until the document exists.
      properties:
        signed:
          allOf:
            - $ref: '#/components/schemas/MediaRef'
          description: Signed PDF. Null until the offer is signed.
        auditLog:
          allOf:
            - $ref: '#/components/schemas/MediaRef'
          description: Acceptance / audit-trail document. Null until acceptance.
        purchaseOrder:
          allOf:
            - $ref: '#/components/schemas/MediaRef'
          description: Uploaded purchase order. Null if none was uploaded.
    MediaRef:
      type: object
      description: Reference to an offer-related document.
      properties:
        id:
          type: string
          description: >-
            Media ID. The binary is not inlined. To download it, either call
            `GET /media/{id}/download` with your API token, or mint a shareable
            link with `POST /media/{id}/download-token` and then `GET
            /media/{id}/download/{token}` (no authentication needed for the
            token holder).
        url:
          type:
            - string
            - 'null'
          description: >-
            Pre-resolved download URL. Currently always null; resolve the file
            via the media download endpoints described under `id`.
        filename:
          type: string
      required:
        - id
        - filename
  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.

````