Listing NFT Tokens
Parameter | Required | Type | Description |
---|---|---|---|
apikey | yes | string | Your authorized API key |
secret | yes | string | Your authorized secret key |
user_id | yes | string | Unique Id for user |
business_id | yes | string | Unique Id for workspace |
flag | yes | string | all - Get all NFT Tokens. single - Get a single NFT token by token hash |
tran_hash | no | string | Transaction hash of the token. ( Required if the flag is set to be single). |
tab | no | string | available - List currently available tokens of workspace. sent - List tokens which were sent but not accepted by the receiver yet. accepted - List tokens which were sent and accepted by the receiver. |
{ "status": "success", "status_code": 200, "message": "NFT details found", "result": [ { "nft_name": XXXXX, "nft_description": "XXXXX, "type": XXXXX, "file_url": XXXXX, "file_name":XXXXX, "token_hash": XXXXX, "ipfs": XXXXX, "token_id": XXXXX, "token_transfer_hash": XXXXX, "original_wallet_address": XXXXX, "to_wallet_address": XXXXX, "upload_type": XXXXX, "sent_to": XXXXX, "_id" :XXXXX, "user_id": { "last_name": XXXXX, "_id":XXXXX, "email_address":XXXXX }, "assigned_user_id": XXXXX, "business_id": XXXXX, "token_key": [ { "key": XXXXX, "value": XXXXX, "_id": XXXXX }, ], "status":XXXXX, "created_date": XXXXX, "updated_date": XXXXX, }, ] }
Error Code | Description |
---|---|
701 | User id parameter required |
702 | User id is required |
701 | Business id parameter required |
702 | Business id required |
610 | Invalid user id |
610 | Invalid business id |
613 | Invalid user and business |
{ "error": { "reason": "parameter missing", "message": "User id parameter required", "field_name": "user_id", "code": 701, "error_type": "missing_parameter" } }
{ "error": { "reason": "required field", "message": "User id is required", "code": 702, "error_type": "required" } }
{ "error": { "reason": "parameter missing", "message": "Business id parameter required", "field_name": "business_id", "code": 701, "error_type": "missing_parameter" } }
{ "error": { "reason": "required field", "message": "Business id required", "code": 702, "error_type": "required" } }
{ "error": { "errors": [ { "reason": "Invalid Id", "message": "Please make sure you have provided the valid user id" } ], "code": 610, "error_type": "reference_error" } }
{ "error": { "errors": [ { "reason": "Invalid Id", "message": "Please make sure you have provided the valid business id" } ], "code": 610, "error_type": "reference_error" } }
{ "error": { "errors": [ { "reason": "Invalid user and business", "message": "The business and user id combination that you provided doesn't match in our record" } ], "code": 613, "error_type": "invalid_user_business" } }
Loading please wait...