Document

Download A Document

HTTP Request

GET /api/v1/document/{documentId}/download

📋 Description: Streams the document binary to the client. The Content-Disposition and Content-Type headers are set based on the stored file metadata.

Parameters

Name

In

Type

Required

Description

documentId

path

integer(int64)

true

Document ID

Responses

Status

Meaning

Description

Schema

200

OK

Document binary stream

None

404

Not Found

Document not found

None

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Response Schema

Delete A Document

HTTP Request

DELETE /api/v1/document/{documentId}

📋 Description: Permanently removes the document record and its stored binary. This action cannot be undone.

Parameters

Name

In

Type

Required

Description

documentId

path

integer(int64)

true

Document ID

Responses

Status

Meaning

Description

Schema

204

No Content

Document deleted successfully

None

404

Not Found

Document not found

None

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto