GET/track-and-trace/v1/documents/:documentId
Gets the document corresponding to the ID.
Request
Path Parameters
The 32-bytes ID of the document, encoded in hexadecimal.
Responses
- 200
- 400
- 404
- 500
Success
- application/json
- Schema
- Example
Schema
Document's metadata
timestamp object
Timestamp object
The date and time, optionally from transaction input
Defines how the datetime was resolved, enumerated options are "block" and "external"
Proof of the source. Either a block number or a hash of timestamp certificate
List of event hashes
The
did:key
did:ebsi
{
"metadata": "metadata",
"timestamp": {
"datetime": "0x65b24e0d",
"source": "block",
"proof": "0x0000000000000000000000000000000000000000000000000000000000000006"
},
"events": [],
"creator": "did:ebsi:ztqWJAmfyuUEf9Jvh97p167"
}
Bad Request
- application/problem+json
- Schema
- Invalid {documentId} Parameter
Schema
Default value: about:blank
An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type.
A short summary of the problem type.
Possible values: >= 400
and <= 600
The HTTP status code generated by the origin server for this occurrence of the problem.
A human readable explanation specific to this occurrence of the problem.
An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"title": "Bad Request",
"status": 400,
"detail": "[\"documentId must be 32 bytes encoded in hexadecimal and start with 0x\"]"
}
Not found
- application/problem+json
- Schema
- Document Not Found
Schema
Default value: about:blank
An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type.
A short summary of the problem type.
Possible values: >= 400
and <= 600
The HTTP status code generated by the origin server for this occurrence of the problem.
A human readable explanation specific to this occurrence of the problem.
An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"title": "Not found",
"status": 404,
"detail": "Not found"
}
Internal Server Error
- application/json
- Schema
- Internal Server Error
Schema
Default value: about:blank
An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type.
A short summary of the problem type.
Possible values: >= 400
and <= 600
The HTTP status code generated by the origin server for this occurrence of the problem.
A human readable explanation specific to this occurrence of the problem.
An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"title": "Internal error",
"status": 500,
"detail": "Internal error"
}