Search references for the specific document version

post

/oitt/api/v1/documents/{documentKey}/versions/{documentVersion}/references/index/_search

The operation returns documents referenced by the document specified by document key and document version.

Permissions

This operation is only available to users who have the DOCUMENT_TRACE permission. Users can access references of the document only if it is allowed to see the document itself. Users can see only references associated with trading partners that are implicit or explicit viewers. Founder users can see all the references.

Operations

This endpoint works like the OpenSearch proxy. Queryable index mapping is the same as in method Search all documents.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Back to Top

Response

200 Response

See the response in OpenSearch documentation. In the case of the default search (with empty request JSON), the _source field contains an array of the following documents:
Body ()
Root Schema : Document
Type: object
Show Source
Nested Schema : attachments
Type: array
List of attachments related to the document.
Show Source
Nested Schema : documentType
Type: object
Details about a type of the document.
Show Source
Nested Schema : documentVersion
Type: object
Document version details.
Show Source
Nested Schema : flow
Type: object
Business flow into which the document was submitted.
Show Source
Nested Schema : receiver
Type: object
Trading partner receiver.
Show Source
Nested Schema : referenceKeys
Type: array
A list of keys that can be used to reference this document.
Show Source
Nested Schema : references
Type: array
List of reference or document keys referenced by the document.
Show Source
Nested Schema : step
Type: object
Business flow step into which the document was submitted.
Show Source
Nested Schema : submitter
Type: object
Trading partner submitter details.
Show Source
Nested Schema : transactionValue
Type: object
Transaction value details.
Show Source
Nested Schema : viewers
Type: object
List of trading partners allowed to view the document.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : businessIdentifiers
Type: array
Show Source
Nested Schema : location
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Match One Schema
Show Source
Nested Schema : items-oneOf[0]
Type: object
Show Source
Nested Schema : items-oneOf[1]
Type: object
Show Source
Nested Schema : businessIdentifiers
Type: array
Show Source
Nested Schema : location
Type: object
Show Source
Nested Schema : items
Type: object
Show Source

403 Response

The user doesn't have permission to view the document.

404 Response

The document doesn't exist.
Back to Top