I want to get custom B2B app version.

Please provide the following information regarding the Volume Purchase Program.


It uses the `contentmetadatalookupurl` API to get information about custom B2B apps.

However, the response of the `contentmetadatalookupurl` API does not contain information that corresponds to the version of the custom B2B app.


The assumption was that the `version` key was included inside the` offers` key included in the response.

But the `offers` key is empty.


How can I get custom B2B app version information with the `contentmetadatalookupurl` API?

Also, if you can't get version information of custom B2B app with `contentmetadatalookupurl` API, please tell me an alternative.


# Reproduction procedure

Make an API call.


```

curl -i -X POST \

-H "Cookie:itvt=omitted..." \

-d \

'' \

'https://uclient-api.itunes.apple.com/WebObjects/MZStorePlatform.woa/wa/lookup?version=2&id=ommited...&p=mdm-lockup&caller=MDM&platform=enterprisestore&cc=us&l=en'

```


# Response

{

"results":{

"ommited...":{

"artwork":{

"width":1024,

"url":"https://is5-ssl.mzstatic.com/image/thumb/Purple60/v4/d6/dd/45/ommited.../mzl.efbjtmpv.png/{w}x{h}bb.{f}",

"height":1024,

"textColor3":"2f2d57",

"textColor2":"060848",

"textColor4":"34345d",

"hasAlpha":false,

"textColor1":"000041",

"bgColor":"efe4b0",

"hasP3":false,

"supportsLayeredImage":false

},

"artistName":"ommited...",

"url":"https://apps.apple.com/us/app/ommited...",

"shortUrl":"https://apps.apple.com/us/app/ommited...",

"softwareInfo":{

"seller":"ommited...",

"languagesDisplayString":"English",

"requirementsString":"Requires iOS 6.0 or later. Compatible with iPhone, iPad, and iPod touch.",

"eulaUrl":null,

"supportUrl":"ommited...",

"websiteUrl":"ommited...",

"privacyPolicyUrl":"ommited...",

"privacyPolicyTextUrl":null

},

"deviceFamilies":[

"iphone",

"ipad",

"ipod"

],

"genreNames":[

"Business"

],

"whatsNew":"ommited...",

"nameSortValue":"ommited...",

"id":"ommited...",

"releaseDate":"2016-05-18",

"userRating":{

"value":0,

"ratingCount":0,

"valueCurrentVersion":0,

"ratingCountCurrentVersion":0

},

"contentRatingsBySystem":{

"appsApple":{

"name":"4+",

"value":100,

"rank":1

}

},

"name":"ommited...",

"artistUrl":"https://apps.apple.com/us/developer/ommited...",

"nameRaw":"ommited...",

"editorialArtwork":{



},

"bundleId":"ommited...",

"isVppDeviceBasedLicensingEnabled":true,

"isB2BCustomApp":true,

"kind":"iosSoftware",

"copyright":"ommited...",

"latestVersionReleaseDate":"May 17, 2016",

"artistId":"ommited...",

"genres":[

{

"genreId":"6000",

"name":"Business",

"url":"https://itunes.apple.com/us/genre/id6000",

"mediaType":"8"

}

],

"minimumOSVersion":"6.0",

"description":{

"standard":"ommited..."

},

"requiredCapabilities":"armv7 ",

"offers":[



]

}

},

"version":2,

"isAuthenticated":false,

"meta":{

"storefront":{

"id":"143441",

"cc":"US"

},

"language":{

"tag":"en-us"

}

}

}

Replies

Hi,


what is in your cookie? Mine is:

"itvt=ey<insert token from vpp account here>==; path=/; domain=.apple.com; Expires=Tue, 19 Jan 2038 03:14:07 GMT;"


Then I get the version in the offers.