VNP Input Webservices - Read iTunes' receipt
"itunesReceipt.jsp" is a VirtualNewspaper input webservice to collect an iTunes receipt and decrypt it
An external platform sends an iTunes receipt to VirtualNewspaper that will decrypt it.
Webservice urlhttps://DOMAIN/PLATFORM/webservice/shop/itunesReceipt.jsp
Webservice Mandatory Parameters
Mandatory parameters are: timestamp, authCode, receipt
Example
Parameters need to be provided using this syntax:?timestamp=12345678&authCode=fr34df56ocon762tfv9&receipt=MIL24gYJKoZIhvc...
A new webservice call is needed for every incoming receipt to be decrypted.
This VirtualNewspaper webservice can provide two different replies:
01) Receipt is correctly decrypted:
It will provide full receipt content
{"receipts":[{"transaction_id":"80002177538993","in_app_ownership_type":"PURCHASED","quantity":"1"...
02) Something went wrong.
In this scenario, the VirtualNewspaper JSON reply will look like this :
{
"message": "Missing mandatory fields"
"status": "KO"
}
The receipt is the same as the app but decrypted. To interpret all receipt fields, you can refer to Apple's documentation