Zum Inhalt
edoobox Docs
Kostenlos testen 7 Tage unverbindlich testen
Menü
Kostenlos testen 7 Tage unverbindlich testen
OpenAPI herunterladen
offerAPI-Referenz
GET/v2/offer/list/files/{fileId}/download

Datei einer Ressource herunterladen

Lädt die Bytes einer kontoeigenen, nicht gelöschten Ressourcendatei anhand der öffentlichen files-ID herunter. Der Dateiinhalt bestimmt den MIME-Typ und den Downloadnamen. Kundenspezifische Exporte sind hier absichtlich nicht abrufbar und benötigen ihren eigenen Download-Endpunkt. Fehlende, fremde oder gesperrte Dateien liefern file_not_found.

Operation-ID get_v2_offer_list_files_fileId_download

01

Vertrag & Verhalten

Dokumentationsstand
reviewed
Ändert Zustand
Nein
Als readOnly markiert
Ja
Für Automation markiert
Ja
GET-Verhalten laut Spezifikation

read

02

Authentifizierung

Eine der folgenden Alternativen muss erfüllt sein (ODER). Innerhalb jeder Alternative werden alle angegebenen Schemas gemeinsam benötigt (UND).

Alternative 1

bearerAuthhttp · bearer

Existing edoobox v2 access token. Never substitute API key/secret headers.

Format: JWT

Security-Schema als JSON
{
  "type": "http",
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "description": "Existing edoobox v2 access token. Never substitute API key/secret headers."
}
accountContextapiKey

Selected login/account context from the JWT, not a database primary key. Required even for a JWT with one account.

header: edid

Security-Schema als JSON
{
  "type": "apiKey",
  "in": "header",
  "name": "edid",
  "description": "Selected login/account context from the JWT, not a database primary key. Required even for a JWT with one account."
}

Alternative 2

sessionCookieapiKey

Existing browser login session, with the same permission checks as Bearer authentication.

cookie: _edlogin

Security-Schema als JSON
{
  "type": "apiKey",
  "in": "cookie",
  "name": "_edlogin",
  "description": "Existing browser login session, with the same permission checks as Bearer authentication."
}
accountContextapiKey

Selected login/account context from the JWT, not a database primary key. Required even for a JWT with one account.

header: edid

Security-Schema als JSON
{
  "type": "apiKey",
  "in": "header",
  "name": "edid",
  "description": "Selected login/account context from the JWT, not a database primary key. Required even for a JWT with one account."
}

Berechtigungen

Resource permission mapping from APIPermissions(), Authfunc::_getCheckJWT. Additional model/admin/plugin checks may apply; resources absent from api_permission do not acquire a fictitious scope.

03

Parameter

Pfadparameter

fileIderforderlich

Öffentliche files-ID.

string

Öffentliche v2-ID im gewählten Konto; Beispiel ist synthetisch.

pattern
"^files_[a-f0-9]{12}_-?[0-9]+$"
Schema-Beispiel
"files_012345abcdef_123456"
Vollständiges Schema als JSON
{
  "type": "string",
  "pattern": "^files_[a-f0-9]{12}_-?[0-9]+$",
  "description": "Öffentliche v2-ID im gewählten Konto; Beispiel ist synthetisch.",
  "examples": [
    "files_012345abcdef_123456"
  ]
}

Header

languageoptional

Account language code, where the resource supports setLanguage().

string
Schema-Beispiel
"de"
Vollständiges Schema als JSON
{
  "type": "string",
  "examples": [
    "de"
  ]
}
04

Request Body

Kein Request Body in der Spezifikation beschrieben.

05

Antworten

1

HTTP-Status und Antwortinhalt gemeinsam auswerten. In dieser API können auch Antworten mit HTTP 200 einen Fehler enthalten.

200application/octet-stream

Authorized resource-file download. The file determines MIME type.

application/octet-stream

string
format
"binary"
Vollständiges Schema als JSON
{
  "type": "string",
  "format": "binary"
}
06

Quelle & Metadaten

Quelle laut Spezifikationapplication/models/v2/Offer.php:1getOffer()

Diese Angaben stammen unverändert aus der gelieferten OpenAPI-Datei. Zusätzliche Freigaben, Vorbedingungen, sensible Felder und Hinweise stehen in den Erweiterungen.

x-edoobox-mutates-state
false
x-edoobox-mutationReview
{
  "source": {
    "file": "application/models/v2/Files.php",
    "line": 245
  },
  "reason": "Existing resource file query/readfile; the legacy File URL audit-log route is separate."
}
x-edoobox-runtimeMutationGuard
false
x-edoobox-get-effect
"read"
x-edoobox-documentationReview
{
  "file": "docs/openapi/operation-contracts/03-offers-places.json",
  "notes": []
}
x-edoobox-source
{
  "file": "application/models/v2/Offer.php",
  "method": "getOffer",
  "line": 1
}
x-edoobox-documentationStatus
"reviewed"
x-edoobox-readOnly
true
x-edoobox-safeForAutomation
true
x-edoobox-permission
{
  "resource": "offer",
  "short": "offe",
  "checkedByDispatcher": true,
  "levels": [
    1,
    3,
    4
  ],
  "description": "Resource permission mapping from APIPermissions(), Authfunc::_getCheckJWT. Additional model/admin/plugin checks may apply; resources absent from api_permission do not acquire a fictitious scope."
}
Vollständige Operation als JSON
{
  "operationId": "get_v2_offer_list_files_fileId_download",
  "summary": "Datei einer Ressource herunterladen",
  "description": "Lädt die Bytes einer kontoeigenen, nicht gelöschten Ressourcendatei anhand der öffentlichen files-ID herunter. Der Dateiinhalt bestimmt den MIME-Typ und den Downloadnamen. Kundenspezifische Exporte sind hier absichtlich nicht abrufbar und benötigen ihren eigenen Download-Endpunkt. Fehlende, fremde oder gesperrte Dateien liefern file_not_found.",
  "tags": [
    "offer"
  ],
  "security": [
    {
      "bearerAuth": [],
      "accountContext": []
    },
    {
      "sessionCookie": [],
      "accountContext": []
    }
  ],
  "parameters": [
    {
      "name": "fileId",
      "in": "path",
      "required": true,
      "description": "Öffentliche files-ID.",
      "schema": {
        "type": "string",
        "pattern": "^files_[a-f0-9]{12}_-?[0-9]+$",
        "description": "Öffentliche v2-ID im gewählten Konto; Beispiel ist synthetisch.",
        "examples": [
          "files_012345abcdef_123456"
        ]
      }
    },
    {
      "name": "language",
      "in": "header",
      "required": false,
      "description": "Account language code, where the resource supports setLanguage().",
      "schema": {
        "type": "string",
        "examples": [
          "de"
        ]
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Authorized resource-file download. The file determines MIME type.",
      "content": {
        "application/octet-stream": {
          "schema": {
            "type": "string",
            "format": "binary"
          }
        }
      }
    }
  },
  "x-edoobox-mutates-state": false,
  "x-edoobox-mutationReview": {
    "source": {
      "file": "application/models/v2/Files.php",
      "line": 245
    },
    "reason": "Existing resource file query/readfile; the legacy File URL audit-log route is separate."
  },
  "x-edoobox-runtimeMutationGuard": false,
  "x-edoobox-get-effect": "read",
  "x-edoobox-documentationReview": {
    "file": "docs/openapi/operation-contracts/03-offers-places.json",
    "notes": []
  },
  "x-edoobox-source": {
    "file": "application/models/v2/Offer.php",
    "method": "getOffer",
    "line": 1
  },
  "x-edoobox-documentationStatus": "reviewed",
  "x-edoobox-readOnly": true,
  "x-edoobox-safeForAutomation": true,
  "x-edoobox-permission": {
    "resource": "offer",
    "short": "offe",
    "checkedByDispatcher": true,
    "levels": [
      1,
      3,
      4
    ],
    "description": "Resource permission mapping from APIPermissions(), Authfunc::_getCheckJWT. Additional model/admin/plugin checks may apply; resources absent from api_permission do not acquire a fictitious scope."
  }
}