Download OpenAPI specification:
See Webhooks for more information.
If you have any questions, comments or feedback regarding our APIs, please contact developer@ovipro.fi.
Create a subscription for a webhook.
| Request-ID required | string <uuid> Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9 A unique id which identifies the HTTP request. The value of this header must be created by the client. |
Describes a subscription
required | object Defines the subscriber. Usually this is the current user. Associated events are resolved through user permissions. |
| subscriptionStatus required | string Enum: "ENABLED" "DISABLED" The overall status of the subscription. When disabled, no events will be sent regardless of individual event type delivery status. This status will be automatically set to DISABLED if webhook endpoint fails to respond with 2xx status code after attempts. |
required | Array of objects [ 1 .. 1000 ] items List of event types that the subscription is interested in. |
required | object |
{- "subscriber": {
- "userId": "12345678-1234-1234-1234-123456789012"
}, - "subscriptionStatus": "ENABLED",
- "eventTypes": [
- {
- "eventType": "fi.ovipro.digital_trade.completed",
- "deliveryStatus": "ENABLED"
}
], - "eventDestination": {
- "destinationType": "WEBHOOK",
- "contactEmail": "contact@example.com",
- "webhookDestination": {
- "httpAuthentication": {
- "scheme": "BEARER_TOKEN",
- "tokenType": "GENERATED"
}
}
}
}{- "subscriptionId": "67720b5f-0265-4a01-a585-b3c8bd572f7f",
- "secretSigningKey": "abcd1234efgh5678ijkl9012mnop3456qrst7890uvwx1234yzab5678cdef9012",
- "httpAuthentication": {
- "authenticationToken": "abcd1234efgh5678ijkl9012mnop3456qrst7890uvwx1234yzab5678cdef9012"
}
}Fetch subscriptions
| userId required | string <uuid> Example: userId=9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9 |
| Request-ID required | string <uuid> Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9 A unique id which identifies the HTTP request. The value of this header must be created by the client. |
{- "subscriptions": [
- {
- "subscriptionId": "12345678-1234-1234-1234-123456789012",
- "subscriber": {
- "userId": "12345678-1234-1234-1234-123456789012"
}, - "subscriptionStatus": "ENABLED",
- "eventTypes": [
- {
- "eventType": "fi.ovipro.digital_trade.signing_can_be_started",
- "deliveryStatus": "ENABLED"
}, - {
- "eventType": "fi.ovipro.digital_trade.completed",
- "deliveryStatus": "ENABLED"
}
], - "eventDestination": {
- "destinationType": "WEBHOOK",
- "contactEmail": "contact@example.com",
- "webhookDestination": {
- "httpAuthentication": {
- "scheme": "BEARER_TOKEN",
- "tokenType": "GENERATED"
}
}
}, - "creationTime": "2021-01-01T00:00:00Z",
- "modificationTime": "2021-01-01T00:00:00Z"
}
]
}Fetch subscription by id
| subscriptionId required | string <uuid> Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9 Subscription id |
| Request-ID required | string <uuid> Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9 A unique id which identifies the HTTP request. The value of this header must be created by the client. |
{- "subscriptionId": "12345678-1234-1234-1234-123456789012",
- "subscriber": {
- "userId": "12345678-1234-1234-1234-123456789012"
}, - "subscriptionStatus": "ENABLED",
- "eventTypes": [
- {
- "eventType": "fi.ovipro.digital_trade.completed",
- "deliveryStatus": "ENABLED"
}, - {
- "eventType": "fi.ovipro.digital_trade.signing_can_be_started",
- "deliveryStatus": "ENABLED"
}
], - "eventDestination": {
- "destinationType": "WEBHOOK",
- "contactEmail": "contact@example.com",
- "webhookDestination": {
- "httpAuthentication": {
- "scheme": "BEARER_TOKEN",
- "tokenType": "GENERATED"
}
}
}, - "creationTime": "2021-01-01T00:00:00Z",
- "modificationTime": "2021-01-01T00:00:00Z"
}Update an existing subscription. This endpoint allows updating subscription details such as contact email, webhook URL, event delivery status, and overall subscription status. Only the fields that are provided in the request will be updated.
| subscriptionId required | string <uuid> Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9 Subscription id |
| Request-ID required | string <uuid> Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9 A unique id which identifies the HTTP request. The value of this header must be created by the client. |
Subscription update details
| subscriptionStatus | string Enum: "ENABLED" "DISABLED" The overall status of the subscription. When disabled, no events will be sent regardless of individual event type delivery status. |
Array of objects [ 1 .. 1000 ] items List of event types that the subscription is interested in. | |
object |
{- "subscriptionStatus": "ENABLED",
- "eventTypes": [
- {
- "eventType": "fi.ovipro.digital_trade.completed",
- "deliveryStatus": "ENABLED"
}, - {
- "eventType": "fi.ovipro.digital_trade.signing_can_be_started",
- "deliveryStatus": "DISABLED"
}
], - "eventDestination": {
- "contactEmail": "updated-contact@example.com",
- "destinationType": "WEBHOOK",
- "webhookDestination": {
- "httpAuthentication": {
- "scheme": "BEARER_TOKEN",
- "tokenType": "GENERATED"
}
}
}
}{- "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
- "subscriptionStatus": "ENABLED",
- "subscriber": {
- "userId": "123e4567-e89b-12d3-a456-426614174000"
}, - "eventTypes": [
- {
- "eventType": "fi.ovipro.assignment.assignment_activated",
- "deliveryStatus": "ENABLED"
}
], - "eventDestination": {
- "destinationType": "WEBHOOK",
- "contactEmail": "user@example.com",
- "webhookDestination": {
- "url": "string",
- "httpAuthentication": {
- "scheme": "BEARER_TOKEN",
- "tokenType": "GENERATED"
}
}
}, - "modificationTime": "2019-08-24T14:15:22Z",
- "creationTime": "2019-08-24T14:15:22Z"
}Fetch subscription by id
| subscriptionId required | string <uuid> Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9 Subscription id |
| Request-ID required | string <uuid> Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9 A unique id which identifies the HTTP request. The value of this header must be created by the client. |
{- "errorCode": "NOT_FOUND",
- "message": "The requested resource wasn't found."
}Schedule an event by specifying the event type. This is used for testing purposes.
| Request-ID required | string <uuid> Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9 A unique id which identifies the HTTP request. The value of this header must be created by the client. |
Describes the event to be scheduled
| eventType required | string (EventType) [ 1 .. 100 ] characters Enum: "fi.ovipro.assignment.assignment_activated" "fi.ovipro.digital_trade.completed" "fi.ovipro.digital_trade.signing_can_be_started" "fi.ovipro.purchase_offer.offer_accepted" The event type identifier. |
| subscriptionId required | string <uuid> The id of the subscription to be used for the event |
| userId required | string <uuid> The id of the user to be used for the event |
| deliveryType | string Default: "IMMEDIATELY" Value: "IMMEDIATELY" Defines when the event is triggered |
{- "eventType": "fi.ovipro.assignment.assignment_activated",
- "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "deliveryType": "IMMEDIATELY"
}{- "eventSchedulerId": "45221bb8-2deb-47c4-b5e4-155a8f1770dd"
}Fetch events. See a more detailed definition in the Webhook API documentation.
| subscriptionId required | string <uuid> Example: subscriptionId=9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9 |
| Request-ID required | string <uuid> Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9 A unique id which identifies the HTTP request. The value of this header must be created by the client. |
{- "events": [
- {
- "event": {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "source": "/webhook-api-v1.html",
- "specversion": "1.0",
- "type": "fi.ovipro.assignment.offer_accepted",
- "recordedtime": "2023-10-01T12:00:00Z",
- "data": {
- "entityId": "123e4567-e89b-12d3-a456-426614174000",
- "entityType": "ASSIGNMENT",
- "subscriptionId": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "deliveryStatus": "FAILED"
}, - {
- "event": {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "source": "/webhook-api-v1.html",
- "specversion": "1.0",
- "type": "fi.ovipro.assignment.offer_accepted",
- "recordedtime": "2023-10-02T15:30:00Z",
- "data": {
- "entityId": "123e4567-e89b-12d3-a456-426614174000",
- "entityType": "ASSIGNMENT",
- "subscriptionId": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "deliveryStatus": "SUCCESS"
}, - {
- "event": {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "source": "/webhook-api-v1.html",
- "specversion": "1.0",
- "type": "fi.ovipro.assignment.offer_accepted",
- "recordedtime": "2023-10-03T10:15:00Z",
- "data": {
- "entityId": "123e4567-e89b-12d3-a456-426614174000",
- "entityType": "ASSIGNMENT",
- "subscriptionId": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "deliveryStatus": "PENDING"
}
]
}