get
https://public-api.spendesk.com/v2/companies//procurement/contracts//files//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
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…