Transfer Digital Passport

Workflow

Let's start πŸš€

πŸ’‘

If the digital passport has not been minted yet, it is automatically minted when operating the transfer.

URL

To transfer an NFT, use /productManagement/productGroup/:productGroupID/product/:productId/transfer.

POST - https://{{nmpUrl}}/productManagement/productGroup/:productGroupId/product/:productId/transfer

Body

FieldTypeRequiredDescription
viewKeyStringβœ…The digital passport view key (also known as passphrase).
addressString❌Recipient address.
If there is no address, the API takes the issuer's address.
{ 
    "viewKey": "da1i2whtq7zd",
    "address": "0x8Ce250a8D46E8f961C832908c9E604FE9Eb7952B"
}

Return Payload

FieldTypeDescription
successBooleanIndicates whether the request was successful.
messageStringTransaction is waiting to be sent to the blockchain.
{
    "success": true,
    "data": "Transaction is waiting to be sent to the blockchain"
}

Errors

Status CodeSuccessCodeError Message
400falsenpm.productManager.product.incorrectPayloadSome parameters of your payload are incorrect. See details.
404falsenpm.productManager.product.ProductGroupIdDoesNotExistProduct group ID does not exist.
404falsenpm.productManager.product.productIdDoesNotExistsProduct ID does not exist.
400falsenpm.productManager.product.alreadyMintedA digital passport is already minted.
404false-The view key is not correct.
400false-Wrong wallet address.
400falsenmp.productManager.product.productGroupNotMintedProductGroup is not minted.
500falsenpm.productManagement.product.UnknownErrorAn unknown error has occurred.
{
    "message": "productId grd1111 does not exists",
    "code": "nmp.productManagement.PRODUCT_ID_NOT_EXISTS"
}
{
    "success": false,
    "data": "Product not found"
}
{
    "errors": [
        {
            "value": "0x8Ce250a86E8f961C832908c9E604FE9Eb7952B",
            "msg": "The address must be an ethereum address",
            "param": "address",
            "location": "body"
        }
    ]
}