Download the invoice document (tenant:trade:inbound:read)
GET /api/trade/v1/inbound-invoices/{id}/document
Module: Trade · operationId: getInboundInvoiceDocument · Tag: Inbound invoices · Auth: access token (Authorization: Bearer <accessToken>)
Streams the DMS file of the invoice with its Content-Type, Content-Disposition and ETag.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Responses
- 200 The file (
application/octet-stream) - 401 No valid session or bearer token (no body).
- 404 Not found in the tenant. (
application/json) - 502 A dependent service (DMS, masterdata, a distributor) failed or is unreachable. (
application/json)
Example request
curl -X GET 'https://api.mbcom.cloud/api/trade/v1/inbound-invoices/3f2b8c1e-7d4a-4e9b-9c2a-5b1d6e8f0a12/document' \
-H "Authorization: Bearer $ACCESS_TOKEN"