Skip to content

Public Tenders Get File

Request

Download the tender's export file in the given format.

The same file the app's Export menu, a FILE webhook and the SFTP outbox produce for that format, rendered on request. Poll the completion feed (GET /tenders?completed_since=…) and fetch each completed tender's file here. An unknown, foreign or deleted id is a 404; a format this tender cannot be rendered in is a 422.

Path
tender_idstring(Tender Id)required
Query
formatstring, [ 1 .. 100 ] characters(Format)required

Export format key, as offered in the app's Export menu: x83, x84, x94, p94, csv, excel or pdf for tenders; order-csv, csv or excel for orders; custom:<id> for one of the organisation's custom exporters (both types).

Headers
authorizationstring or null(Authorization)

Bearer <mrc_live_…> API key

curl -i -X GET \
  'https://docs.mercura.ai/_mock/openapi/tenders/{tender_id}/file?format=string' \
  -H 'authorization: string'

Responses

The export file. Content-Type and the Content-Disposition filename follow the format.

Bodyapplication/octet-stream
string, (binary)
Response
string