Create Member

Create a Member for an Organisation. The Member will be available in all Locations owned by the Organisation and will notify all Loyalty Partners that a new Member has been created.

POST ~/members
Examples

Request

{
   "ref":"nkkRj3jr2jn2j3883883",
   "firstName":"Tony",
   "lastName":"Tamps",
   "email":"tony@doshii.io",
   "phone":"0123456789",
   "address":{
     "line1":"616 St Kilda Road",
     "line2":"Level 8",
     "city":"Melbourne",
     "state":"VIC",
     "postalCode":"3004",
     "country":"AU"
   },
}

Response

{
    "id": "992924",
    "ref": "GB788765002OKIJUH",
    "name": "Tony T",
    "email": "tony@doshii.io",
    "phone": "0123456789",
    "address": {
        "line1": "616 St Kilda Road",
        "line2": "Level 8",
        "city": "Melbourne",
        "state": "VIC",
        "postalCode": "3004",
        "country": "AU"
    },
    "apps": [
        {
            "id": "1",
            "name": "Collect",
            "ref": "333",
            "points": "7500"
        },
        {
            "id": "7",
            "name": "Redeemer",
            "ref": "444",
            "points": "4000"
        }
    ],
    "createdAt": "2016-08-18T04:58:38.485Z",
    "updatedAt": "2016-08-18T04:58:38.485Z",
    "uri": "https://sandbox.doshii.co/pos/v3members/992924"
}