Method: GET
Path: /api/transaction/{transactionId}/file/{fileId}
Retrieves a specific file from a transaction. The file is returned as a PDF document. The user must be the creator of the transaction to access the file.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| transactionId | path | string | Yes | The unique identifier of the transaction containing the file |
| fileId | path | string | Yes | The unique identifier of the file within the transaction |
File retrieved successfully
Content-Type: application/pdf
Type: string
Unauthorized - user not creator of transaction
Content-Type: application/json
Schema: ErrorResponse
| Name | Type | Description |
|---|---|---|
| Message | String | Required. Human-readable error message |
Forbidden - user is not the creator of the transaction
Content-Type: application/json
| Name | Type | Description |
|---|---|---|
| Message | String |
File not found or not yet processed
Content-Type: application/json
Schema: ErrorResponse
| Name | Type | Description |
|---|---|---|
| Message | String | Required. Human-readable error message |
Example:
Gone - the document is no longer available (archived or deleted)
Content-Type: application/json
Schema: ErrorResponse
| Name | Type | Description |
|---|---|---|
| Message | String | Required. Human-readable error message |
Example:
Internal server error
Content-Type: application/json
Schema: ErrorResponse
| Name | Type | Description |
|---|---|---|
| Message | String | Required. Human-readable error message |