Détail d'un EDL (pièce opposable, verifyIntegrity NF203)
GET
/v1/inspections/{id}
const url = 'https://example.com/v1/inspections/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/inspections/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'X-API-Key: <X-API-Key>'Authorizations
Section intitulée « Authorizations »Parameters
Section intitulée « Parameters »Path Parameters
Section intitulée « Path Parameters » id
required
string format: uuid
Responses
Section intitulée « Responses »Détail EDL avec intégrité vérifiable
Media type application/json
object
data
required
object
id
required
string format: uuid
kind
required
string
status
required
string
signatoryMode
string
contentHash
string
integrityVerified
required
boolean
catalogSnapshotAt
required
string format: date-time
items
required
Array<object>
object
id
string
label
string
expected
string
observed
string
isMeter
boolean
numericValue
string
photoCount
integer
signatures
required
Array<object>
object
role
string
signatoryName
string
signedAt
string format: date-time
discrepancies
required
Array<object>
object
id
string
label
string
observed
string
Example
{ "data": { "kind": "check_in", "status": "in_progress" }}Non authentifié
Media type application/json
object
code
required
Code machine de l’erreur
string
message
required
Message lisible
string
origin
Origine domaine de l’erreur (optionnel)
object
boundedContext
string
module
string
status
required
integer
traceId
required
Identifiant de corrélation pour le support
string
Example
{ "code": "RESERVATION_NOT_FOUND", "message": "Réservation introuvable", "status": 404}Permission refusée
Media type application/json
object
code
required
Code machine de l’erreur
string
message
required
Message lisible
string
origin
Origine domaine de l’erreur (optionnel)
object
boundedContext
string
module
string
status
required
integer
traceId
required
Identifiant de corrélation pour le support
string
Example
{ "code": "RESERVATION_NOT_FOUND", "message": "Réservation introuvable", "status": 404}EDL introuvable
Media type application/json
object
code
required
Code machine de l’erreur
string
message
required
Message lisible
string
origin
Origine domaine de l’erreur (optionnel)
object
boundedContext
string
module
string
status
required
integer
traceId
required
Identifiant de corrélation pour le support
string
Example
{ "code": "RESERVATION_NOT_FOUND", "message": "Réservation introuvable", "status": 404}