CreateMember

From ePrize Developers Wiki

(Difference between revisions)
Jump to: navigation, search

Wikiadmin (Talk | contribs)
(New page: '''Summary''' Create a new member of the loyalty program. The referral id (ref_id) must be included if the user is registering with a referral link. If the user registers as the result o...)
Next diff →

Revision as of 21:15, 28 June 2016

Summary

Create a new member of the loyalty program. The referral id (ref_id) must be included if the user is registering with a referral link. If the user registers as the result of a referral, the ref_id is returned in the call. Otherwise, ref_id is returned as 0. Resource

POST api/v1/createMember

Parameters

emailAddress firstName lastName password emailOptIn mobileOptIn SMSNumber ref_id

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

Example Request Body: {

   "emailAddress": "jon.doe@helloworld.com”
   "firstName": "Jon"
   "lastName": "Doe"
   "password": "ePrizeWasHere"
   "emailOptIn": true
   "mobileOptIn": true
   "SMSNumber": "877-837-7493"
   "ref_id": "1234567890"

}

Example Response: Success {

   "token": "0ac198f4ea234d58187b576cf451b37d1fdafd8ba219a24c552aa7fec90f7f3e",
   "userId": 278000000118
   "refId": 385769300022

}

Example Response: Username / Email Address Already Exists {

   "Error": {
       "Code": "error.business.RuleProcessingException.UserNameAlreadyExists",
       "Message": "User Name Already Exists"
   }

}

Personal tools