GetMember

From ePrize Developers Wiki

(Difference between revisions)
Jump to: navigation, search
(New page: getMember ==Summary== Retrieve the members profile information, including their points balance. '''Resource''' GET api/v1/getMember '''Parameters''' emailAddress memberId '''Example...)
Current revision (17:20, 29 June 2016) (edit) (undo)
m (Summary)
 
(One intermediate revision not shown.)
Line 7: Line 7:
'''Resource'''
'''Resource'''
-
GET
+
GET api/v1/getMember
-
api/v1/getMember
+
'''Parameters'''
'''Parameters'''
-
emailAddress
+
* emailAddress
-
memberId
+
* memberId
-
 
+
-
'''Example Call'''
+
-
http://demo-loyalty.promodev.eprize.com/api/v1/getMember?memberId=278000000118
+
'''Example Response: Success'''
'''Example Response: Success'''
-
{
+
{
-
"firstName": "Jon",
+
"firstName": "Jon",
-
"lastName": "Doe",
+
"lastName": "Doe",
-
"emailAddress": "dere03@helloworld.com",
+
"emailAddress": "jondoe@helloworld.com",
-
"address1": "1 ePrize Dr",
+
"address1": "3000 Town Center",
-
"address2": "This Bldg",
+
"address2": "Ste 2100",
-
"city": "Pleasant Ridge",
+
"city": "Southfield",
-
"zipCode": "48033",
+
"zipCode": "48069",
-
"state": "MI",
+
"state": "MI",
-
“currentBalance”: 540 //always default currency
+
"currentBalance": 540 //always default currency
-
}
+
}
'''Example Response: Member Id not provided'''
'''Example Response: Member Id not provided'''
-
{
+
{
-
"Error": {
+
"Error": {
-
"Code": "error.business.Validation",
+
"Code": "error.business.Validation",
-
"Message": "Error for attribute: Member Id\nThis information is required.\n"
+
"Message": "Error for attribute: Member Id\nThis information is required.\n"
 +
}
}
}
-
}
 
'''Example Response: Email Address not provided'''
'''Example Response: Email Address not provided'''
-
{
+
{
-
"Error": {
+
"Error": {
-
"Code": "error.business.Validation",
+
"Code": "error.business.Validation",
-
"Message": "Error for attribute: Email Address\nThis information is required.\n"
+
"Message": "Error for attribute: Email Address\nThis information is required.\n"
 +
}
}
}
-
}
 
'''Example Response: Email Address and Member Id do no match'''
'''Example Response: Email Address and Member Id do no match'''
-
{
+
{
-
"Error": {
+
"Error": {
-
"Code": "error.business.RuleProcessingException.F",
+
"Code": "error.business.RuleProcessingException.F",
-
"Message": "F"
+
"Message": "F"
 +
}
}
}
-
}
 

Current revision

getMember

Summary

Retrieve the members profile information, including their points balance.

Resource

GET api/v1/getMember

Parameters

  • emailAddress
  • memberId

Example Response: Success

   {
       "firstName": "Jon",
       "lastName": "Doe",
       "emailAddress": "jondoe@helloworld.com",
       "address1": "3000 Town Center",
       "address2": "Ste 2100",
       "city": "Southfield",
       "zipCode": "48069",
       "state": "MI",
       "currentBalance": 540  //always default currency
   }


Example Response: Member Id not provided

   {
       "Error": {
           "Code": "error.business.Validation",
           "Message": "Error for attribute: Member Id\nThis information is required.\n"
       }
   }


Example Response: Email Address not provided

   {
       "Error": {
           "Code": "error.business.Validation",
           "Message": "Error for attribute: Email Address\nThis information is required.\n"
       }
   }


Example Response: Email Address and Member Id do no match

   {
       "Error": {
           "Code": "error.business.RuleProcessingException.F",
           "Message": "F"
       }
   }
Personal tools