Get a Contract file download URL

Allowed Scopes: experimental:contract:read

Returns a short-lived pre-signed URL to download one file of a contract, as the user the token acts for: a user who may not see the contract files gets a 403. Take the file id from the files of Get a contract.

The URL stops working at expiresAt. This response is never cached (cache-control: no-store): request a new URL each time you need to download, and do not store it.

A 404 means the company is unknown to procurement, the contract is not found or not visible, or the contract has no file with that id.

A 403 means one of:

  • the token's organisation does not own companyId, or the company token is for another company;
  • procurement is not enabled for the company;
  • the user the token acts for is not provisioned in procurement;
  • procurement is restricted to procurement managers and that user is not one;
  • that user may not access the files of this contract.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Company ID.

string
required
length ≤ 512

Contract ID.

string
required
length ≤ 512

Contract file ID, from files of the contract.

Responses

Language
Credentials
OAuth2
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json