v50

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-306170167.5 KB
Contract Revisions

Get Contract Revision

Retrieves a specific contract revision by its ID. Accessible by the consumer or provider that owns the associated datarequest.

get/api/agreement/v1/contract-revisions/{id}

Path parameters

idstring uuid required

Query parameters

actingRole'CONSUMER' | 'PROVIDER' | 'ADMIN'

Selects the role in which the authenticated user acts for this request. Optional: if the authenticated user holds exactly one of the allowed roles, the value is auto-resolved. Returns 400 if the value is unknown, not allowed for this endpoint, or omitted while the user holds multiple matching roles. Returns 403 if the user does not hold the role specified in the parameter.

Response

OK

idstring uuid required
dataRequestIdstring uuid required
dataConsumerNamestring required

LegalName of the data consumer taken from the uid register

dataConsumerCitystring required

City of the data consumer

dataProviderNamestring required

Name of the data provider

dataProviderCitystring required

City of the data provider

consumerSignatureType'INDIVIDUAL_SIGNATURE' | 'COLLECTIVE_SIGNATURE'
providerSignatureType'INDIVIDUAL_SIGNATURE' | 'COLLECTIVE_SIGNATURE'
sealState'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'

Example response

{
  "dataConsumerName": "Bio Suisse, Vereinigung Schweizer Biolandbau-Organisationen",
  "dataConsumerCity": "Basel",
  "dataProviderName": "BLW",
  "dataProviderCity": "Bern",
  "dataRequestContext": {
    "dataConsumerLogoBase64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
  },
  "consumerSignatures": [
    {
      "name": "John Doe",
      "timestamp": "2022-03-10T12:15:50"
    }
  ],
  "providerSignatures": [
    {
      "name": "John Doe",
      "timestamp": "2022-03-10T12:15:50"
    }
  ]
}