I have an issue about install media command. Before encountering the problem, the steps are as follows;
-
Firstly, I create users with using following api: https://developer.apple.com/documentation/devicemanagement/create_users
-
Secondly, I get vpp book licenses from Apple Business account and I can see purchased books in vpp asset with using this api: https://developer.apple.com/documentation/devicemanagement/get_assets
-
After purchased book and created user, I associate book license to created user with following api: https://developer.apple.com/documentation/devicemanagement/manage_licenses I associate license with client user id instead of device serial number. I can see that the license is assigned to the user with using https://developer.apple.com/documentation/devicemanagement/get_licenses By the way, after the assignment process, I can see that the total number of licenses has decreased in the Apple Bussines account.
-
After all this process I send device command. The plist while sending install media command to the device is as follows;
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Command</key>
<dict>
<key>RequestType</key>
<string>InstallMedia</string>
<key>MediaType</key>
<string>Book</string>
<key>iTunesStoreID</key><integer>510322135</integer>
</dict>
<key>CommandUUID</key><string>625eb3346db5ec00287593a7</string>
</dict>
</plist>
Finally, Install Media command getting error with "A VPP purchase record for the item could not be found."
How can I fix this issue? Can anyone help me about that? Thanks.
Hey,
I see in the information you provided above you link off to both v1 and v2 Apps and Books endpoints, we strongly recommend not using older API in conjunction w/ the newer API. Instead of using Manage Licenses you'll want either Associate Assets or Disassociate Assets, then in place of Get Licenses you'd want to move over to Get Assignments. Had you attempted to associate the registered user you created to an apple id? If not the user will be missing a purchase record for the item. Recommend taking a look at our documentation for Managing Users, will also help inform on how to identify if a registered user is in-fact associated to an apple id.
Best,
Austin