Redeem

From ePrize Developers Wiki

(Difference between revisions)
Jump to: navigation, search

Wikiadmin (Talk | contribs)
(New page: ==Summary== Redeem for an item '''Resource''' POST api/v1/redeem '''Parameters''' pid memberId itemId updateAddress address1 address2 city state zipCode '''Example Call''' http://de...)
Next diff →

Revision as of 00:40, 29 June 2016

Summary

Redeem for an item

Resource

POST api/v1/redeem

Parameters

pid memberId itemId updateAddress address1 address2 city state zipCode

Example Call http://demo-loyalty.promodev.eprize.com/api/v1/submitCode

Example Request Body: {

   “pid” : “546854646894”, 
   "memberId": 278000000118,
   “itemId”: 211602000000061,
   “updateAddress” :  true, 
   "address1": “Tower 2000”,
   “address2”: “ Suite Suit Site”,
   “city” : “Southfield”, 
   "state": MI,
   “zipCode”: “48034”

}

Example Response: Success {

   "success" : true,
   “points” :  150

}

'Example Response: Member Id not Found {

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

}

Example Response: Invalid Item Id {

   "Error": {
       "Code": "error.business.Validation",
       "Message": "Error for attribute: Item Id\nThis is an invalid code.\n"
   }

}

Example Response: Invalid User Primary Id {

   "Error": {
       "Code": "error.business.Validation",
       "Message": "Error for attribute: Pid\nThis user was not found in the system.\nError for attribute: Item Id\nThis is an invalid code.\n"
   }

}

Personal tools