VNP Output Webservices - order details for given email

WS: GetUserOrders.jsp

Get info about all the orders linked to the provided email address

This webservice can be triggered to retrieve all the orders linked to a user, given her/his email address.

Sample call:

http://acme.virtualnewspaper.it/dailyHerald/webservice/getUserOrders.jsp?email=[email]&authCode=[authCode]

PARAMETER NAME VALUE FORMAT Description
email varchar(255) Email address from the VNP user you want retrieve informations about
authCode string md5 string obtained from the concatenation of [useremail] and [vnp privateKey]
canceled bool true | false
relation string standard | coupon | business | gift
* coupon = pre-activated order
id_son int empty if relation is standard or coupon
filled if the order is a gift-father or a business-father
id_parent int empty if relation is standard or coupon
filled if the order is a gift-son or a business-son

Webservice response

{
  "customerId": 28, 
  "orders": [
    {
      "date": "2018-07-05",
"number": "VNP-153080421082580",
"canceled": false, "detailOrder": [ { "quantity": 1,
"editionsConsulted": "20230522acme;20230521acme;",
"productName": "Subscription 12 Months (Web/inApp)",
"totalCredits": 12,
"productCode": "",
"price": 0,
"detailOrderId": 81609,
"idProduct": 987666,
"expireDate": "2020-01-04",
"leftCredits": 350,
"currency": "EUR",
"complimentaryCredits": 0,
"activationDate": "2019-01-05",
"productType": "online-temporale" } ],
"amount": 0,
"id_son": "",
"discountCode": "",
"orderId": 82580,
"externalId": "",
"id_parent": "",
"confirmed": 1,
"relation": "standard" "email": "ciccio@acme.com",
"dateJoin": "2018-07-05",
"status": 1 }