Skip to content

Create New User

Matt Duckhouse edited this page May 29, 2024 · 27 revisions

Create new user

A new user is created by POSTing the following JSON body to the endpoint:

HTTP Response Values

    201 - Successful creation of a new user
    400 - The payload sent is not correct or valid

[POST] /v2/users/

{
    "emailAddress": "email@endurancezone.com",
    "partnerMemberId" : "your-identifier",
    "firstName" : "FirstName",
    "lastName" : "LastName",
    "country" :"UK",
    "level" :"Basic"
}
Name Description
FirstName User first name
LastName User last name
EmailAddress User's email address
PartnerMemberId (Optional) Your unique identifier for this user
Country Acceptable values are: USA, UK, Canada, Europe , Mexico, Australia, New Zealand, Africa, India, Dubai, Austria, Belgium, Bulgaria, Switzerland, Germany, Denmark, Spain, France, Ireland, Italy, Luxembourg, Monaco, Netherlands, Norway, Sweden, Singapore, South Africa, UAE - *additional countries can be enabled as part of the onboarding
Level Acceptable values are: Basic, Basic Plus, Premium, Premium Plus

A successful response looks like:

HTTP/1.1 201 Created

Location: https://api.myezrewards.com/v2/users/15140131

{
    "identifier": 15140131,
    "loginUrl": "https://rewards.client.com/preload/client?iframe=ffe2SLrm4qrvyulsci",
    "level": "Basic",
    "firstName": "FirstName",
    "lastName": "LastName",
    "status": "Active",
    "emailAddress": "test@endurancezone.com",
    "country": "UK",
    "partnerMemberId": "your-identifier"
}

Clone this wiki locally