PUT api/loyalty2/member/v2
Updates member. Note: This does NOT update the Login of a member (User/Password)!
Request Information
URI Parameters
None.
Body Parameters
The member to update.
PublicAPI.Models.MemberUpdateV2ModelName | Description | Type | Additional information |
---|---|---|---|
Id |
The unique Id of the Loyalty member |
integer |
Required Range: inclusive between 1 and 2147483647 |
CustomerNumber |
The original or updated customer number of the member. Note: Must be UNIQUE within a club (if passed-in)! |
integer |
Required Range: inclusive between 1 and 9,22337203685478E+18 |
CreationShop |
Shop of creation |
integer |
Range: inclusive between 0 and 999999 |
ClubId |
The ID of the club. |
integer |
Required Range: inclusive between 1 and 2147483647 |
EngineId |
The ID of the Loyalty engine, to which the member shall be assigned. See "...api/loyalty2/engine/club/engines" for fetching all engines of a club. Also see "...Help/ResourceModel?modelName=EngineTypeIdentifier" to understand the type identifiers of engines. |
integer |
Required Range: inclusive between 1 and 2147483647 |
FirstName |
First name |
string |
Max length: 450 |
LastName |
Last name |
string |
Max length: 450 |
Address |
Address |
string |
Max length: 500 |
PostalCode |
Postal code |
string |
Max length: 50 |
City |
City |
string |
Max length: 500 |
Country |
Country |
string |
Max length: 500 |
Gender |
Gender |
string |
Max length: 1 Valid values: "M","F",null |
BirthDate |
Date of birth. Date-only / no UTC. |
date |
None. |
|
string |
Max length: 200 |
|
Phone |
Phone number |
string |
Max length: 50 |
ReceiptByEmail |
0 = Receive nothing 1 = Receive by both email and mobile 2 = Receive by email only 3 = Receive by mobile only |
integer |
None. |
Notes |
Additional notes |
string |
Max length: -1 |
IsActive |
(Not)active identifier |
boolean |
Range: inclusive between false and true |
Created |
The creation date and time of the member in Coordinated Universal Time (UTC) Set by the system, if left empty. |
date |
None. |
SignedUp |
The sign-up date and time of the member in Coordinated Universal Time (UTC) |
date |
None. |
DefaultShop |
Default store |
integer |
None. |
SocialSecurityNr |
Social and serurity number |
string |
None. |
TermsConditionsApproved | boolean |
None. |
Request Formats
application/json, text/json
{ "Id": 1, "CustomerNumber": 2, "CreationShop": 3, "ClubId": 4, "EngineId": 5, "FirstName": "sample string 6", "LastName": "sample string 7", "Address": "sample string 8", "PostalCode": "sample string 9", "City": "sample string 10", "Country": "sample string 11", "Gender": "sample string 12", "BirthDate": "2025-05-04T05:39:47.6439956+02:00", "Email": "sample string 13", "Phone": "sample string 14", "ReceiptByEmail": 15, "Notes": "sample string 16", "IsActive": true, "Created": "2025-05-04T05:39:47.6439956+02:00", "SignedUp": "2025-05-04T05:39:47.6439956+02:00", "DefaultShop": 1, "SocialSecurityNr": "sample string 17", "TermsConditionsApproved": true }
application/xml, text/xml
<MemberUpdateV2Model xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <Address>sample string 8</Address> <BirthDate>2025-05-04T05:39:47.6439956+02:00</BirthDate> <City>sample string 10</City> <ClubId>4</ClubId> <Country>sample string 11</Country> <Created>2025-05-04T05:39:47.6439956+02:00</Created> <DefaultShop>1</DefaultShop> <Email>sample string 13</Email> <EngineId>5</EngineId> <FirstName>sample string 6</FirstName> <Gender>sample string 12</Gender> <IsActive>true</IsActive> <LastName>sample string 7</LastName> <Notes>sample string 16</Notes> <Phone>sample string 14</Phone> <PostalCode>sample string 9</PostalCode> <ReceiptByEmail>15</ReceiptByEmail> <SignedUp>2025-05-04T05:39:47.6439956+02:00</SignedUp> <SocialSecurityNr>sample string 17</SocialSecurityNr> <TermsConditionsApproved>true</TermsConditionsApproved> <CreationShop>3</CreationShop> <CustomerNumber>2</CustomerNumber> <Id>1</Id> </MemberUpdateV2Model>
application/x-www-form-urlencoded
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
true
application/xml, text/xml
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>