Clearing API (v1)

Download OpenAPI specification:

Introduction

Clearing API allows the agent to manage the clearing of a realty trade and a realty rental.

Contact

If you have any questions, comments or feedback regarding our APIs, please contact developer@ovipro.fi.

Trade Settlement

Trade Settlement API allows you to initiate and complete a trade settlement for a set of assets.

Create a trade settlement

Create a new trade settlement.

Authorizations:
bearerAuth
header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required

Contains the details for the trade settlement.

required
object (TradeSettlement)

Details for the trade settlement.

sourceSystemCreationTime
string <date-time> (SourceSystemCreationTime)

Timestamp as defined by ISO 8601 with time offset. Creation time of the party in the source system. Intended to be used in data migration scenarios.

Responses

Request samples

Content type
application/json
{
  • "tradeSettlement": {
    }
}

Response samples

Content type
application/json
{
  • "tradeSettlementId": "4a30bb37-96a7-47cc-9dec-f369c5651db4"
}

Fetch a trade settlement

Fetch details for the specified trade settlement.

Authorizations:
bearerAuth
path Parameters
tradeSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: 6d9d4946-d170-4730-b818-37901edb961b

Unique trade settlement identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "tradeSettlementId": "4a30bb37-96a7-47cc-9dec-f369c5651db4",
  • "statusCode": "COMPLETED",
  • "tradeSettlement": {
    },
  • "creationTime": "2022-12-30T17:32:28Z",
  • "modificationTime": "2022-12-30T17:32:28Z",
  • "relatedDocuments": [
    ]
}

Update a trade settlement

Update details for the specified trade settlement. The trade settlement contents can be updated only if it is in a IN_PROGRESS state.

Authorizations:
bearerAuth
path Parameters
tradeSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: 6d9d4946-d170-4730-b818-37901edb961b

Unique trade settlement identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required

Contains the details for the trade settlement.

tradeSettlementId
string <uuid> (TradeSettlementId) ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...

A unique id which identifies the trade settlement.

statusCode
string (TradeSettlementStatusCode)
Enum: "IN_PROGRESS" "COMPLETED" "DISMANTLED"

Trade settlement status. The status defines what actions can be performed for trade settlement. Possible values are:

  • IN_PROGRESS. The trade settlement has been initiated and can be modified.
  • COMPLETED. The trade settlement has been completed. A completed trade settlement cannot be modified. If a change is required, the trade settlement must be dismantled.
  • DISMANTLED. The trade settlement has been dismantled.
required
object (TradeSettlement)

Details for the trade settlement.

Responses

Request samples

Content type
application/json
{
  • "tradeSettlementId": "4a30bb37-96a7-47cc-9dec-f369c5651db4",
  • "statusCode": "COMPLETED",
  • "tradeSettlement": {
    }
}

Response samples

Content type
application/json
{ }

Create a trade settlement correction

This endpoint allows to amend trade settlements which have been completed in the past.

Authorizations:
bearerAuth
path Parameters
tradeSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: 6d9d4946-d170-4730-b818-37901edb961b

Unique trade settlement identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required

Contains the details for the trade settlement correction.

tradeDate
required
string <date> (tradeDate)

The date when the sale deed or other contract is signed.

required
Array of objects non-empty

Specifies corrections for the assets of the trade settlement. All assets of the trade settlement must be included in the array.

Responses

Request samples

Content type
application/json
{
  • "tradeDate": "2019-08-24",
  • "assets": [
    ]
}

Response samples

Content type
application/json
{ }

Add a related document to trade settlement

Associates a document with the specified trade settlement. The document must already exist in the Document API. If the document is already associated with this trade settlement, a 400 error is returned.

Authorizations:
bearerAuth
path Parameters
tradeSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: 6d9d4946-d170-4730-b818-37901edb961b

Unique trade settlement identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required

Contains the document identifier to associate with the trade settlement.

documentId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...

Unique identifier of the document to associate with the trade settlement.

Responses

Request samples

Content type
application/json
{
  • "documentId": "9fd9124c-e6c1-4368-9f17-6938f0e2f524"
}

Response samples

Content type
application/json
{ }

Transfer Terms

Transfer Terms API allows you to create transfer terms document for trade settlement.

Fetch trade settlement's transfer terms contents

Fetch contents of the transfer terms for given trade settlement.

Authorizations:
bearerAuth
path Parameters
tradeSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: 6d9d4946-d170-4730-b818-37901edb961b

Unique trade settlement identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "tradeSettlementId": "2bad0571-1d9e-49b6-af7a-61ab73f330b6",
  • "transferTermsContent": "# **KAUPAN EHDOT**\r\n\r\n\r\n\r\n# KAUPAN OSAPUOLET\r\n\r\n\r\n\r\n**Myyjä:** Etunimi Sukunimi\r\n\r\n**Henkilötunnus:**...",
  • "transferTermsDocumentId": "20a61558-71a7-4672-9533-8b3b8a5812dc",
  • "transferTermsContentModificationTime": "2024-08-24T14:59:22Z",
  • "transferTermsDocumentCreationTime": "2024-08-24T15:01:22Z"
}

Save a contents of a transfer terms

Save contents of transfer terms for given trade settlement. Note: Related transfer terms PDF document is not updated automatically.

Authorizations:
bearerAuth
path Parameters
tradeSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: 6d9d4946-d170-4730-b818-37901edb961b

Unique trade settlement identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required

Contains the content of the transfer terms.

transferTermsContent
required
string

JSON escaped markdown content for transfer terms.

Responses

Request samples

Content type
application/json
{
  • "transferTermsContent": "# **KAUPAN EHDOT**\r\n\r\n\r\n\r\n# KAUPAN OSAPUOLET\r\n\r\n\r\n\r\n**Myyjä:**..."
}

Response samples

Content type
application/json
{ }

Generate and save PDF using transfer terms content

Generates a PDF document using transfer terms content and saves it to Document API. If trade settlement has existing transfer terms PDF it will be overwritten.

Authorizations:
bearerAuth
path Parameters
tradeSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: 6d9d4946-d170-4730-b818-37901edb961b

Unique trade settlement identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required

Empty body

object (PostTransferTermsDocument)

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{
  • "transferTermsDocumentId": "77ac2031-8c8f-43e1-8ab6-6f0dd7c1d1d6"
}

Rental Settlement

Rental Settlement API allows you to initiate and complete a rental settlement for a set of assets.

Create a rental settlement

Create a new rental settlement.

Authorizations:
bearerAuth
header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required

Contains the details for the rental settlement.

required
object (RentalSettlement)

Details for the rental settlement.

sourceSystemCreationTime
string <date-time> (SourceSystemCreationTime)

Timestamp as defined by ISO 8601 with time offset. Creation time of the party in the source system. Intended to be used in data migration scenarios.

Responses

Request samples

Content type
application/json
{
  • "rentalSettlement": {
    }
}

Response samples

Content type
application/json
{
  • "rentalSettlementId": "48978afa-bebb-4226-8ff0-c38ec5e05512"
}

Search rental settlements

Search rental settlements matching specified query parameters. You can combine the search criteria, for example to search for completed rental settlements by a specified agency office.

Authorizations:
bearerAuth
query Parameters
rentalSettlementId
Array of strings <uuid> (RentalSettlementId) [ items <uuid >^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8... ]
Example: rentalSettlementId=48978afa-bebb-4226-8ff0-c38ec5e05512

Search by rental settlement identifiers to get a list of rental settlements.

realtyId
string <uuid>
Example: realtyId=b482a6a0-34cb-41e1-9817-1f734d7d3a06

Search by realty identifier to get a list of rental settlements for the realty.

agentId
string <uuid> (AgentId) ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: agentId=5d2a6d47-da73-4b11-8940-27cffabb6de5

Search by the agent identifier to get a list of rental settlements the for agent.

agencyOfficeId
Array of strings <uuid> (AgencyOfficeId) [ items <uuid >^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8... ]
Example: agencyOfficeId=212114ec-819e-483c-a8e0-f82289ac6e19

Search by the agency office identifiers to get a list of rental settlements that belong to certain agency offices.

statusCode
Array of strings (RentalSettlementStatusCode)
Items Enum: "IN_PROGRESS" "COMPLETED" "DISMANTLED"
Example: statusCode=COMPLETED

Search by the status code to fetch rental settlements having specific statuses.

modifiedAfter
string <date-time> (Timestamp)
Example: modifiedAfter=2024-09-05T13:50:22.204Z

Search by a timestamp to get a list of rental settlements which were modified after the specified time.

startIndex
integer <int32> >= 0
Default: 0
Example: startIndex=20

Return rental settlements starting from this index. Index starts from 0.

size
integer <int32> [ 1 .. 100 ]
Default: 50
Example: size=40

Specify the maximum number of items to return for this request.

sort
Array of strings[ items^(creationTime|modificationTime)\|(asc|ASC|de... ]
Example: sort=creationTime|desc

Sort rental settlements based on the specified fields. Each field to be sorted must also include a sort order as follows:

sort={fieldName}|{asc|desc}&sort={anotherFieldName}|{asc|desc}

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "totalCount": 8,
  • "rentalSettlements": [
    ]
}

Fetch a rental settlement

Fetch details for the specified rental settlement.

Authorizations:
bearerAuth
path Parameters
rentalSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: a82e4fdd-a3d8-440b-987c-b1c24f62d3b6

Unique rental settlement identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "rentalSettlementId": "48978afa-bebb-4226-8ff0-c38ec5e05512",
  • "statusCode": "IN_PROGRESS",
  • "rentalSettlement": {
    },
  • "creationTime": "2023-11-17T17:23:08Z",
  • "modificationTime": "2023-11-19T13:32:28Z"
}

Update a rental settlement

Update details for the specified rental settlement. The rental settlement contents can be updated only if it is in a IN_PROGRESS state.

Authorizations:
bearerAuth
path Parameters
rentalSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: a82e4fdd-a3d8-440b-987c-b1c24f62d3b6

Unique rental settlement identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required

Contains the details for the rental settlement.

rentalSettlementId
string <uuid> (RentalSettlementId) ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...

A unique id that identifies the rental settlement.

statusCode
string (RentalSettlementStatusCode)
Enum: "IN_PROGRESS" "COMPLETED" "DISMANTLED"

Rental settlement status. The status defines what actions can be performed for rental settlement. Possible values are:

  • IN_PROGRESS. The rental settlement has been initiated and can be modified.
  • COMPLETED. The rental settlement has been completed. A completed rental settlement cannot be modified. If a change is required, the rental settlement must be dismantled.
  • DISMANTLED. The rental settlement has been dismantled.
required
object (RentalSettlement)

Details for the rental settlement.

Responses

Request samples

Content type
application/json
{
  • "rentalSettlementId": "48978afa-bebb-4226-8ff0-c38ec5e05512",
  • "statusCode": "IN_PROGRESS",
  • "rentalSettlement": {
    }
}

Response samples

Content type
application/json
{ }

Lease Agreement

Lease Agreement API allows you to create lease agreement document for rental settlement.

Fetch rental settlement's lease agreement contents

Fetch contents of the lease agreement for given rental settlement.

Authorizations:
bearerAuth
path Parameters
rentalSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: a82e4fdd-a3d8-440b-987c-b1c24f62d3b6

Unique rental settlement identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "rentalSettlementId": "2bad0571-1d9e-49b6-af7a-61ab73f330b6",
  • "leaseAgreementContent": "# **VUOKRASOPIMUS**\r\n\r\n\r\n\r\n# OSAPUOLET\r\n\r\n\r\n\r\n**Vuokraaja:** Etunimi Sukunimi\r\n\r\n**Henkilötunnus:**...",
  • "leaseAgreementDocumentId": "20a61558-71a7-4672-9533-8b3b8a5812dc",
  • "leaseAgreementContentModificationTime": "2024-08-24T14:59:22Z",
  • "leaseAgreementDocumentCreationTime": "2024-08-24T15:01:22Z"
}

Save contents of a lease agreement

Save contents of lease agreement for given rental settlement. Note: Related lease agreement PDF document is not updated automatically.

Authorizations:
bearerAuth
path Parameters
rentalSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: a82e4fdd-a3d8-440b-987c-b1c24f62d3b6

Unique rental settlement identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required

Contains the content of the lease agreement.

leaseAgreementContent
required
string

JSON escaped markdown content for lease agreement.

Responses

Request samples

Content type
application/json
{
  • "leaseAgreementContent": "# **KAUPPAKIRJA**\r\n\r\n\r\n\r\n# KAUPAN OSAPUOLET\r\n\r\n\r\n\r\n**Myyjä:**..."
}

Response samples

Content type
application/json
{ }

Generate and save PDF using lease agreement content

Generates a PDF document using lease agreement content and saves it to Document API. If rental settlement has existing lease agreement PDF it will be overwritten.

Authorizations:
bearerAuth
path Parameters
rentalSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: a82e4fdd-a3d8-440b-987c-b1c24f62d3b6

Unique rental settlement identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required

Empty body

object (PostLeaseAgreementDocument)

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{
  • "leaseAgreementDocumentId": "77ac2031-8c8f-43e1-8ab6-6f0dd7c1d1d6"
}

Transfer Tax Return

Transfer tax return API allows you to file transfer tax return for trade settlement buyers.

Fetch transfer tax statuses

Fetch list of trade settlement buyers (taxpayers) with their transfer tax return statuses. The endpoint returns all buyers regardless of whether they have filed transfer tax return or not.

Authorizations:
bearerAuth
path Parameters
tradeSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: 6d9d4946-d170-4730-b818-37901edb961b

Unique trade settlement identifier in UUID format.

query Parameters
taxpayerPartyId
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: taxpayerPartyId=15bd5398-420e-461f-884f-4af99b3d05d6

Unique taxpayer buyer party identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "tradeSettlementId": "1397e367-b49c-4d4b-b624-9d0ee97e3a93",
  • "tradeSettlementCorrectionTime": "2025-01-15T10:30:00Z",
  • "taxpayerParties": [
    ]
}

Fetch transfer tax return preview

Fetch transfer tax return preview for the specified party in specified trade settlement. The transferTaxReturnFilingV1 element in response body is specified and required by Finnish tax authority.

Authorizations:
bearerAuth
path Parameters
tradeSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: 6d9d4946-d170-4730-b818-37901edb961b

Unique trade settlement identifier in UUID format.

query Parameters
taxpayerPartyId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: taxpayerPartyId=15bd5398-420e-461f-884f-4af99b3d05d6

Unique taxpayer buyer party identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "tradeSettlementId": "82570f0d-39cf-4306-a0d3-65d4415e8e7a",
  • "taxpayerPartyId": "15bd5398-420e-461f-884f-4af99b3d05d6",
  • "transferTaxReturnFilingV1": {
    }
}

File transfer tax return

File transfer tax return for trade settlement buyer party. In addition to the validation performed by this endpoint, the Finnish tax authority API will perform additional validation and may reject the filing. In case of rejection, 400 INVALID_ENTITY_STATE error is returned including rejection reasons in the errors field of the response body.

Authorizations:
bearerAuth
path Parameters
tradeSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: 6d9d4946-d170-4730-b818-37901edb961b

Unique trade settlement identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required
taxpayerPartyId
required
string <uuid> (TaxpayerPartyId) ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...

The unique identifier of the taxpayer party.

replacedReturnId
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...

When executing a replacement filing this is the unique identifier of the transfer tax return which is being replaced. The value must reference to the most recent return of the trade settlement buyer.

Responses

Request samples

Content type
application/json
{
  • "taxpayerPartyId": "8fa1f7a6-db1d-41c7-b074-3e08bb10aff8",
  • "replacedReturnId": "03c56d7e-b03c-4aac-850d-3f735c6ed145"
}

Response samples

Content type
application/json
{
  • "transferTaxReturnId": "73aa1c0d-8fa3-4a9b-b987-ef34a8cce12d"
}

Fetch transfer tax return

Fetch transfer tax return data which was filed to tax authority. The transferTaxReturnFilingV1 element in response body is specified and required by Finnish tax authority.

Authorizations:
bearerAuth
path Parameters
tradeSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: 6d9d4946-d170-4730-b818-37901edb961b

Unique trade settlement identifier in UUID format.

transferTaxReturnId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: 374c97dc-6a08-43ea-b1f7-371509726634

Unique transfer tax return identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "transferTaxReturnId": "8c0a1ec6-b81e-442d-a960-a7f739f74fa9",
  • "tradeSettlementId": "82570f0d-39cf-4306-a0d3-65d4415e8e7a",
  • "taxpayerPartyId": "15bd5398-420e-461f-884f-4af99b3d05d6",
  • "veroId": "abcd1234",
  • "acceptedTime": "2023-12-11T12:00:00.000Z",
  • "receiptDocumentId": "6726d5d6-b591-496f-9d4e-b5adbbb3f100",
  • "transferTaxReturnFilingV1": {
    }
}

Fetch transfer tax payment reference

Fetch transfer tax payment reference for specified party. The reference is fetched from third party service and request may fail if the service is down.

Authorizations:
bearerAuth
query Parameters
taxpayerPartyId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: taxpayerPartyId=15bd5398-420e-461f-884f-4af99b3d05d6

Unique taxpayer buyer party identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "taxpayerPartyId": "8fa1f7a6-db1d-41c7-b074-3e08bb10aff8",
  • "referenceNumber": "mcio3n3e309d3d13er44225deo"
}

Trade Date

Admin endpoint for correcting trade date for completed trades

Admin endpoint for correcting trade date for completed trades.

Authorizations:
bearerAuth
path Parameters
tradeSettlementId
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
Example: 6d9d4946-d170-4730-b818-37901edb961b

Unique trade settlement identifier in UUID format.

header Parameters
Request-ID
required
string <uuid> ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[8...
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. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required

Contains new trade date used for correcting existing trade date of completed trade.

tradeDate
required
string <date>

Timestamp when the completed trade date is corrected.

Responses

Request samples

Content type
application/json
{
  • "tradeDate": "2024-11-01"
}

Response samples

Content type
application/json
{ }