The updateMember
API call is used to update an existing member's account information.
Sample Request URL
http://{Your_API_URL}?q=/updateMember
Input Parameters
Parameter | Description | Required |
apikey | API key from MemberMouse API Credentials | Yes |
apisecret | API secret from MemberMouse API Credentials | Yes |
member_id | ID of the member to update | Yes, if email address is not provided |
email | Email address of the member to update | Yes, if member ID is not provided |
username | Username to set on the existing member's account | No |
first_name | First name to set on the existing member's account | No |
last_name | Last name to set on the existing member's account | No |
phone | Phone number to set on the existing member's account | No |
password | Password to set on the existing member's account | No |
billing_address | Billing address to set on the existing member's account | No |
billing_city | Billing city to set on the existing member's account | No |
billing_state | Billing state to set on the existing member's account | No |
billing_zip | Billing zip code to set on the existing member's account | No |
billing_country | Billing country to set on the existing member's account (2-digit ISO country code) | No |
shipping_address | Shipping address to set on the existing member's account | No |
shipping_city | Shipping city to set on the existing member's account | No |
shipping_state | Shipping state to set on the existing member's account | No |
shipping_zip | Shipping zip code to set on the existing member's account | No |
shipping_country | Shipping country to set on the existing member's account (2-digit ISO country code) | No |
status | Status to set on the existing member's account. Acceptable value is one of the following integers: 1 (Active), 2 (Cancelled), 3 (Locked), 4 (Paused), 5 (Overdue) | No |
membership_level_id | Membership level ID to change the existing member's account to. This will cancel the existing subscription associated with the current membership level and then change the membership level on the account. No billing will be initiated associated with the new membership level. | No |
custom_field_[ID#] | You can pass custom field data to the API by passing one or more parameters in the form custom_field_[ID#] where [ID#] would be replaced with the ID of the custom field as defined in MemberMouse. For example, if the custom field ID is 4, then you would pass data for that custom field by including the parameter custom_field_4 . | No |
Response Codes
200
- Success409
- Could not find member with the member ID or email address passed
Response Data
none