VNP Input Webservices - Read iTunes' receipt

WS iTunes receipt (itunesReceipt.jsp)

"itunesReceipt.jsp" is a VirtualNewspaper input webservice to collect an iTunes receipt and decrypt it

How to invoke this webservice

An external platform sends an iTunes receipt to VirtualNewspaper that will decrypt it.

Webservice url
https://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.

Webservice reply

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"
}

How to read the receipt

The receipt is the same as the app but decrypted. To interpret all receipt fields, you can refer to Apple's documentation