Recover Digital Passport
Overview
Use cases
- The product is declared and proven to be stolen or lost.
- The product is returned.
- The owner has lost the digital passport.
Under specific conditions and for a limited period, brands can reclaim and get back the ownership of a digital passport that is owned by another wallet.
Workflow
Let's start ๐
- Each recovered digital passport spends 1 credit.
- You can recover one digital passport at once per API call.
URL
To recover a digital passport in your wallet, use the productManagement/product/:productId/recover
.
POST - https://{{nmpUrl}}/productManagement/product/:productId/recover
Return Payload
Status Code | Success | Description |
---|---|---|
200 | true | The digital passport has been recovered. You'll get ownership back when the transaction is validated on the blockchain. |
{
"success": true
}
Errors
Status Code | Success | Code | Error Message |
---|---|---|---|
404 | false | nmp.productManagement.PRODUCT_ID_NOT_EXISTS | The digital passport ID may be wrong. |
{
"message": "This productId doesnt exists",
"code": "nmp.productManagement.PRODUCT_ID_NOT_EXISTS"
}
Updated 2 months ago