💡
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
.
To know if a digital passport is declared as missing, use the /lostAndStolen/isMissing
.
URL
POST - https://{{nmpUrl}}/lostAndStolen/isMissing
Field Type Required Description certificateId
String ✅ Identification number of the digital passport.
Body example
{
"certificateId":"70260619"
}
Status Code Description 200
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.
Status Code Success Error Message 400
false
Wrong certificateId
.
400 Return Payload
{
"errors": [
{
"msg": "certificateId must be a string or a number",
"param": "certificateId",
"location": "body"
}
]
}
To know if a digital passport is declared as missing, use the /lostAndStolen/isStolen
.
URL
POST - https://{{nmpUrl}}/lostAndStolen/isStolen
Field Type Required Description certificateId
String ✅ Identification number of the digital passport.
Body example
{
"certificateId":"43868083"
}
Status Code Description 200
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.
Status Code Success Error Message 400
false
Wrong certificateId
.
400 Return Payload
{
"errors": [
{
"msg": "certificateId must be a string or a number",
"param": "certificateId",
"location": "body"
}
]
}
To know if a digital passport is declared as missing, use the /lostAndStolen/setMissing
.
URL
POST - https://{{nmpUrl}}/lostAndStolen/setMissing
Field Type Required Description certificateId
String ✅ Identification number of the digital passport. isMissing
Boolean ✅ true
: Set the status as missing.false
: Unset the missing status.
Body example
{
"certificateId":"43868083",
"isMissing":true
}
Status Code Description 200
The digital passport ID and status are returned.
200 Return Payload
{
"smartAssetId": "43868083",
"missingStatus": true
}
Status Code Success Error Message 500
false
The target digital passport status is already set as missing. 500
false
Your NFT Management Platform is not the issuer of the target digital passport, you are not authorized to modify the status.
500 Return Payload
{
"error": "Error while executing the protocol v1 action Missing status is already set as true"
}
500 Return Payload
{
"error": "You are not the issuer of this smart asset"
}
To know if a digital passport is declared as missing, use the /lostAndStolen/setStolen
.
URL
POST - https://{{nmpUrl}}/lostAndStolen/setStolen
Field Type Required Description certificateId
String ✅ Identification number of the digital passport. isStolen
Boolean ✅ true
: Set the status as stolen.false
: Unset the stolen status.
Body example
{
"certificateId":"43868083",
"isStolen":true
}
Status Code Description 200
The digital passport ID and status are returned.
200 Return Payload
{
"smartAssetId": "43868083",
"stolenStatus": true
}
Status Code Success Error Message 500
false
The target digital passport status is already set as stolen. 500
false
Your NFT Management Platform is not the issuer of the target digital passport, you are not authorized to modify the status. 500
false
A server error may occur.
500 Return Payload
{
"error": "Error while executing the protocol v1 action Stolen status is already set as true"
}
500 Return Payload
{
"error": "You are not the issuer of this smart asset"
}