{
  "resourceType": "OperationDefinition",
  "url": "https://api-erp.kamsoft.pl/ns/OperationDefinition/document-content",
  "name": "document-content",
  "title": "Tresc dokumentu ruchu majatku",
  "status": "active",
  "kind": "operation",
  "date": "2026-09-18",
  "publisher": "KAMSOFT S.A.",
  "description": "GET /v1/fixed-asset-documents/$document-content — zwraca FixedAssetDocument z jednym attachment[] (contentType, data w base64) dla dokumentu wskazanego parametrem identifier; 404, gdy dokument nie ma tresci.",
  "affectsState": false,
  "code": "document-content",
  "resource": ["FixedAssetDocument"],
  "system": false,
  "type": true,
  "instance": false,
  "parameter": [
    { "name": "identifier", "use": "in", "min": 1, "max": "1", "type": "string", "searchType": "token",
      "documentation": "system|value w przestrzeni FixedAssetDocument.Id" },
    { "name": "owner", "use": "in", "min": 0, "max": "1", "type": "string", "searchType": "token",
      "documentation": "https://gov.pl/nip|<NIP> firmy prowadzacej ewidencje" },
    { "name": "attribute", "use": "in", "min": 0, "max": "*", "type": "string", "searchType": "token",
      "documentation": "code|value, np. schema|<schemat>" },
    { "name": "format", "use": "in", "min": 0, "max": "1", "type": "code",
      "documentation": "blob preferuje tresc binarna" },
    { "name": "return", "use": "out", "min": 1, "max": "1", "type": "FixedAssetDocument",
      "documentation": "Dokument z jednym attachment[] zawierajacym contentType i data (base64)" }
  ]
}
