Adding Device to Asset Ownership Service

// Expert user has replied.
W WSC AppDev 1 year ago
110 2 0

We'd like to use the SendFileToPrinter API and have attempted to add a printer to our tenant. We believe we've successfully added the printer as it can be seen on the My Devices page. Also, if we use the Asset Ownership API we see the serial number of the printer listed as an asset.

However, when we attempt to use the SendFileToPrinter API, we get the following response:

{

    "errorResponse": {

        "code": "404",

        "message": "Asset(s) not registered in Asset Ownership Service.",

        "info": "For the supplied tenant (xxxxxxxxx), device(s) not registered: xxxxxxxxx ."

    }

}

Why are we getting this message if our printer is showing in our tenant assets? How can we successfully use the SendFileToPrinter API?

Please Register or Login to post a reply

2 Replies

S Steven Si

Make sure the API key used to call the SendFileToPrinter API is on the same tenant as the printer is registered with. If you were exercising the API from the SendFileToPrinter webpage, please use the production endpoint URL, i.e., the https://api.zebra.com/v2/devices/printers/send. If the stage endpoint URL was selected accidentally, the "Asset(s) not registered" error will be thrown out, because the printer is only registered for the production environment.

W WSC AppDev

Thank you for your reply.

Turns out, we had an typo in the serial number, what should have been a zero, we had as the letter o. Sent the correct serial number and all is working. 

CONTACT
Can’t find what you’re looking for?