Get a Contract

Allowed Scopes: experimental:contract:read

Returns one procurement contract of the given company, or shared by every company of the organisation, as the user the token acts for sees it in Spendesk: amount, fxRate and files are hidden from users who may not see them. It returns the same fields as List contracts.

Contracts are read-only through the API: responses may be cached for up to 1 minute, so a change made in Spendesk can take that long to appear.

A 404 means the company is unknown to procurement, or companyId has no visible contract with that id: it does not exist, was deleted, or belongs to another company.

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.
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.

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