User Tools

Site Tools


member

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
member [2022/03/07 14:29]
clubadmin
member [2026/02/23 11:42] (current)
clubadmin
Line 21: Line 21:
         /// <param name="info20"></param>         /// <param name="info20"></param>
         /// <param name="statusid"></param>         /// <param name="statusid"></param>
-        /// <param name="gender">or F</param>+        /// <param name="parentmemberid">id of the parent member, leave empty for no link</param> 
 +        /// <param name="gender">for Male, for Female, U for unkown, O for others</param>
         /// <param name="note">memo field</param>                /// <param name="note">memo field</param>       
 Example: Example:
Line 55: Line 56:
         /// <param name="info20"></param>         /// <param name="info20"></param>
         /// <param name="statusid">id of the status</param>         /// <param name="statusid">id of the status</param>
 +        /// <param name="parentmemberid">id of the parent member, set to -1 to clear link, leave empty for no changes</param>
         /// <param name="newsletter">0 or 1</param>         /// <param name="newsletter">0 or 1</param>
         /// <param name="from"></param>         /// <param name="from"></param>
Line 76: Line 78:
         /// <param name="email"></param>         /// <param name="email"></param>
  
-Example’s:+Examples:
 https://demo.clubplanner.be/api/member/getmember?token=DEMOTOKEN&id=1 https://demo.clubplanner.be/api/member/getmember?token=DEMOTOKEN&id=1
  
Line 87: Line 89:
 {"Id":1,"UId":"GMOL1","OwnerId":1,"OwnerName":"Demo Brussels","FirstName":"Jane","LastName":"Johanson","CheckInStatus":"20 turns left valid until 7 maart Remainder 60,00 €","CheckInStatusId":"HasRemainderLeft","EmailAddress":"jane.johanson@mail.com","MobileNumber":"04812121340","City":"Bruxelles","Zip":"1000","Address":"Streetroad 1","BirthDate":"14/07/1963","LastVisit":"08/08/2016 17:53","NumberOfVisits":8476,"Password":"0LlHgtVlYrxx3y1ch/lfGFmADSENw1wSK67fxRMQWZjE45FFWta1IrHTIM0oOgr5Q33MbfW7jR7vblHz+uLs","LanguageId":"EN"} {"Id":1,"UId":"GMOL1","OwnerId":1,"OwnerName":"Demo Brussels","FirstName":"Jane","LastName":"Johanson","CheckInStatus":"20 turns left valid until 7 maart Remainder 60,00 €","CheckInStatusId":"HasRemainderLeft","EmailAddress":"jane.johanson@mail.com","MobileNumber":"04812121340","City":"Bruxelles","Zip":"1000","Address":"Streetroad 1","BirthDate":"14/07/1963","LastVisit":"08/08/2016 17:53","NumberOfVisits":8476,"Password":"0LlHgtVlYrxx3y1ch/lfGFmADSENw1wSK67fxRMQWZjE45FFWta1IrHTIM0oOgr5Q33MbfW7jR7vblHz+uLs","LanguageId":"EN"}
  
 +===== Member.DeleteMember =====
 +
 +Method: member/DeleteMember 
 +
 +Deletes a member via MemberId
 +
 +        /// <param name="token"></param>
 +        /// <param name="memberid"></param> 
 +        
 ===== Member.AddSubscription ===== ===== Member.AddSubscription =====
  
Line 96: Line 107:
         /// <param name="token"></param>         /// <param name="token"></param>
         /// <param name="memberid"></param>         /// <param name="memberid"></param>
 +        /// <param name="owner">optional, when not provided it will use home club of member</param>
         /// <param name="subid"></param>         /// <param name="subid"></param>
         /// <param name="startdate"></param>         /// <param name="startdate"></param>
Line 136: Line 148:
         /// <param name="id">the id of the member subscription</param>         /// <param name="id">the id of the member subscription</param>
         /// <param name="amount"></param>         /// <param name="amount"></param>
 +        /// <param name="couponid">optional, id of the coupon, in this case amount can be set to 0, it will automatically use the coupon until empty</param>
         /// <param name="reference">optional, example: id of the webshop transaction</param>         /// <param name="reference">optional, example: id of the webshop transaction</param>
         /// <param name="paymethod">optional, the id of the paymethod</param>         /// <param name="paymethod">optional, the id of the paymethod</param>
Line 197: Line 210:
         /// <param name="todate">mandatory</param>         /// <param name="todate">mandatory</param>
         /// <param name="subscriptionid">optional</param>         /// <param name="subscriptionid">optional</param>
 +        /// <param name="lastmodifiedfrom">optional, extra filter on starting from last modified on date</param>
 +        /// <param name="lastmodifiedto">optional, extra filter on until last modified on date</param>
         /// <param name="owner">optional</param>         /// <param name="owner">optional</param>
                  
Line 238: Line 253:
  
  
-Example's:+Examples:
  
 https://demo.clubplanner.be/api/member/GetSubscriptionOptions?token=DEMOTOKEN&subid=1&ownerid=1 https://demo.clubplanner.be/api/member/GetSubscriptionOptions?token=DEMOTOKEN&subid=1&ownerid=1
Line 313: Line 328:
         /// <param name="credit">amount</param>         /// <param name="credit">amount</param>
         /// <param name="id">Member Id</param>         /// <param name="id">Member Id</param>
 +        /// <param name="paymethod">optional, Paymethod Id</param>
         /// <param name="email">Email Address</param>         /// <param name="email">Email Address</param>
         /// <param name="uid">unique card ID</param>         /// <param name="uid">unique card ID</param>
 +        /// <param name="note">optional, note</param>
         /// <param name="from">Example: Icemachine</param>         /// <param name="from">Example: Icemachine</param>
  
Line 412: Line 429:
 Filter on EMAIL (LIKE filter) Filter on EMAIL (LIKE filter)
 https://demo.clubplanner.be/api/Member/GetMembers?token=DEMOTOKEN&filter=email_address%20like%20%27%gmail%%27 https://demo.clubplanner.be/api/Member/GetMembers?token=DEMOTOKEN&filter=email_address%20like%20%27%gmail%%27
 +
 +Filter op LAST MODIFIED (> Filter)
 +https://demo.clubplanner.be/api/Member/GetMembers?token=DEMOTOKEN&filter=last_modified%3E%272022/12/10%27%20
  
 Result: Result:
Line 434: Line 454:
         /// <param name="memberid">ID of member</param>         /// <param name="memberid">ID of member</param>
         /// <param name="message">content of SMS</param>         /// <param name="message">content of SMS</param>
 +        /// <param name="mobilenbr">optional mobile nbr to use</param>
         /// <param name="from"></param>         /// <param name="from"></param>
                  
Line 439: Line 460:
  
 https://demo.clubplanner.be/api/member/SendSMS?token=DEMOTOKEN&memberid=1&message=ABCDEF https://demo.clubplanner.be/api/member/SendSMS?token=DEMOTOKEN&memberid=1&message=ABCDEF
 +
 +https://demo.clubplanner.be/api/member/SendSMS?token=DEMOTOKEN&memberid=1&mobilenbr=123&message=ABCDEF
  
  
Line 489: Line 512:
 https://demo.clubplanner.be/api/member/GetContract?token=DEMOTOKEN&id=72580 https://demo.clubplanner.be/api/member/GetContract?token=DEMOTOKEN&id=72580
  
 +Returns:
 +    {
 +        public int subscriptionid
 +        public int memberid
 +        public string contract
 +    }
 +    
 ===== Member.UploadContract (POST) ===== ===== Member.UploadContract (POST) =====
  
Line 501: Line 531:
         /// <param name="from"></param>         /// <param name="from"></param>
  
 +Returns:
 +    {
 +        public int subscriptionid
 +        public int memberid
 +        public int contractid
 +    }
 +    
 +===== Member.ValidateEmailAddress =====
 +
 +Set this email address as a validated email address, this action is logged.
 +Calling updatemember with a new email address will remove the validated timestamp for this field.
 +
 +        /// <param name="token"></param>
 +        /// <param name="memberid">id of the member</param>
 +        /// <param name="email"></param>
 + 
 +returns:
 +    {
 +        public string Message
 +        public bool Failed
 +    }
 +           
 +===== Member.ValidateMobileNumber=====
 +
 +Set the given mobile number as a validated mobile number, this action is logged
 +Calling updatemember with a new email address will remove the validated timestamp for this field.
 +
 +        /// <param name="token"></param>
 +        /// <param name="memberid">id of the member</param>
 +        /// <param name="mobile"></param>
 +        
 + returns:
 +    {
 +        public string Message
 +        public bool Failed
 +    }
 +    
 +===== Member.GetContractState=====
 +
 +Returns all the details of given contract
 +
 +        /// <param name="token"></param>
 +        /// <param name="contractid">id of the contract</param>
 +        
 +===== Member.GetContractFile=====
 +
 +Returns the signed pdf contract of a given contract
 +
 +        /// <param name="token"></param>
 +        /// <param name="contractid">id of the contract</param>
  
member.1646659792.txt.gz · Last modified: 2022/03/07 15:29 (external edit)