Skip to content

Create New User

lsambridge edited this page May 13, 2025 · 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",
    "OrgUnitLevels" : [
       "London Gymn",
       "Bristol Gymn"
    ]
}
Name Description
FirstName User first name
LastName User last name
EmailAddress User's email address
PartnerMemberId (Optional) Your unique identifier for this user
Country (Optional) See Country List
Level Acceptable values are: Basic, Basic Plus, Premium, Premium Plus
OrgUnitLevels list of strings, that break the members down into sub groups of your company, only needed if you are sub catergorising your members
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",
    "externalMemberId": "your-identifier"
}

Clone this wiki locally