A user has lost or got stolen his/her product, so statut of the associated digital passport must be updated as such.
💡
* If you set a digital passport as stolen, the missing status is automatically set as true.* If you unset a digital passport stolen status, the missing status is not automatically set as false.
The digital passport missing status is returned: true: The digital passport status is set as missing. false: The digital passport status is not set as missing.
{
"isMissing": true
}
Errors
Status Code
Success
Error Message
400
false
Wrong certificateId.
{
"errors": [
{
"msg": "certificateId must be a string or a number",
"param": "certificateId",
"location": "body"
}
]
}
The digital passport's stolen status is returned: true: The digital passport status is set as stolen. false: The digital passport status is not set as stolen.
{
"isStolen": false
}
Errors
Status Code
Success
Error Message
400
false
Wrong certificateId.
{
"errors": [
{
"msg": "certificateId must be a string or a number",
"param": "certificateId",
"location": "body"
}
]
}