Skip to main content

Notarizations

This endpoint retrieves all notarizations associated with a specific Digital Product Passport (DPP) identified by dppId. The response includes blockchain transaction data, a history of associated files, and technical cards linked to the DPP.

1. View DPP Notarizations​

GET /view-dpp-notarizations/:dppId​

Description: Retrieves all notarizations for a given Digital Product Passport (DPP) identified by dppId. This includes the corresponding blockchain transaction data and the history of files and technical cards associated with the DPP.​

Parameters:​

  • dppId: The ID of the DPP for which notarizations are being retrieved.

Response​

StatusDescription
200 OKSuccessfully retrieved the notarizations along with related receipts and history data.
500 Internal Server ErrorAn unexpected error occurred while fetching the notarization data.

Response Object:​

{
"notarizations": [
{
"id": "string",
"block_hash": "string",
"block_number": "integer",
"created_at": "string",
"dpp": {
"id": "string",
"code": "string",
"description": "string",
"dpp_id": "string",
"model_id": "string",
"name": "string",
"type": "string",
"search_id": "string",
"template_id": "string",
"company_id": "string",
"created_at": "string",
"updated_at": "string",
"version_id": "string",
"related_dpps": null
},
"dpp_hash": "string",
"from": "string",
"to": "string",
"transaction_hash": "string",
"url": "string",
"version": "integer",
"status": "string"
}
]
}

2. Notarize DPP​

POST /version/:dppId/notarize​

Description: Finalizes the notarization process for a DPP, including uploading a frontend-generated report and updating the DPP version with the provided blockchain hash, signature, and other metadata.​

Parameters:​

  • dppId: The ID of the DPP to be notarized.

Request Body:​

{
"file": "file",
"companyId": "uuid",
"hash": "string",
"signature": "string",
"submitter": "string",
"filesList": "string"
}

Response​

StatusDescription
200 OKThe DPP version data after a successful notarization.
400 Bad RequestInvalid file format or request data.
500 Internal Server ErrorAn error occurred during the notarization process.

Response Object:​

{
"id": "string",
"status": "READY",
"hash": "string",
"signature": "string",
"submitter": "string",
"uri": "string"
}