{"id":8047,"date":"2023-08-14T13:59:48","date_gmt":"2023-08-14T20:59:48","guid":{"rendered":"https:\/\/membermouse.com\/?post_type=ht_kb&amp;p=8047"},"modified":"2023-08-14T13:59:48","modified_gmt":"2023-08-14T20:59:48","slug":"updatemember-api-call","status":"publish","type":"ht_kb","link":"https:\/\/membermouse.com\/es\/docs\/updatemember-api-call\/","title":{"rendered":"Llamada a la API updateMember"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The\u00a0updateMember\u00a0API call is used to update an existing member's account information.<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Sample Request URL<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><code>http:\/\/{Your_API_URL}?q=\/updateMember<\/code><\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Input Parameters<\/h5>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Parameter<\/strong><\/td><td><strong>Description<\/strong><\/td><td><strong>Required<\/strong><\/td><\/tr><tr><td><code>apikey<\/code><\/td><td>API key from&nbsp;<a href=\"https:\/\/membermouse.com\/docs\/api-credentials-overview\/\">MemberMouse API Credentials<\/a><\/td><td>Yes<\/td><\/tr><tr><td><code>apisecret<\/code><\/td><td>API secret from&nbsp;<a href=\"https:\/\/membermouse.com\/docs\/api-credentials-overview\/\">MemberMouse API Credentials<\/a><\/td><td>Yes<\/td><\/tr><tr><td><code>member_id<\/code><\/td><td>ID of the member to update<\/td><td>Yes, if email address is not provided<\/td><\/tr><tr><td><code>email<\/code><\/td><td>Email address of the member to update<\/td><td>Yes, if member ID is not provided<\/td><\/tr><tr><td><code>username<\/code><\/td><td>Username to set on the existing member's account<\/td><td>No<\/td><\/tr><tr><td><code>first_name<\/code><\/td><td>First name to set on the existing member's account<\/td><td>No<\/td><\/tr><tr><td><code>last_name<\/code><\/td><td>Last name to set on the existing member's account<\/td><td>No<\/td><\/tr><tr><td><code>phone<\/code><\/td><td>Phone number to set on the existing member's account<\/td><td>No<\/td><\/tr><tr><td><code>password<\/code><\/td><td>Password to set on the existing member's account<\/td><td>No<\/td><\/tr><tr><td><code>billing_address<\/code><\/td><td>Billing address to set on the existing member's account<\/td><td>No<\/td><\/tr><tr><td><code>billing_city<\/code><\/td><td>Billing city to set on the existing member's account<\/td><td>No<\/td><\/tr><tr><td><code>billing_state<\/code><\/td><td>Billing state to set on the existing member's account<\/td><td>No<\/td><\/tr><tr><td><code>billing_zip<\/code><\/td><td>Billing zip code to set on the existing member's account<\/td><td>No<\/td><\/tr><tr><td><code>billing_country<\/code><\/td><td>Billing country to set on the existing member's account (<a href=\"http:\/\/en.wikipedia.org\/wiki\/ISO_3166-1_alpha-2#Officially_assigned_code_elements\" target=\"_blank\" rel=\"noreferrer noopener\">2-digit ISO country code<\/a>)<\/td><td>No<\/td><\/tr><tr><td><code>shipping_address<\/code><\/td><td>Shipping address to set on the existing member's account<\/td><td>No<\/td><\/tr><tr><td><code>shipping_city<\/code><\/td><td>Shipping city to set on the existing member's account<\/td><td>No<\/td><\/tr><tr><td><code>shipping_state<\/code><\/td><td>Shipping state to set on the existing member's account<\/td><td>No<\/td><\/tr><tr><td><code>shipping_zip<\/code><\/td><td>Shipping zip code to set on the existing member's account<\/td><td>No<\/td><\/tr><tr><td><code>shipping_country<\/code><\/td><td>Shipping country to set on the existing member's account (<a href=\"http:\/\/en.wikipedia.org\/wiki\/ISO_3166-1_alpha-2#Officially_assigned_code_elements\" target=\"_blank\" rel=\"noreferrer noopener\">2-digit ISO country code<\/a>)<\/td><td>No<\/td><\/tr><tr><td><code>status<\/code><\/td><td>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)<\/td><td>No<\/td><\/tr><tr><td><code>membership_level_id<\/code><\/td><td>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.<\/td><td>No<\/td><\/tr><tr><td><code>custom_field_[ID#]<\/code><\/td><td>You can pass custom field data to the API by passing one or more parameters in the form\u00a0custom_field_[ID#]\u00a0where\u00a0[ID#]\u00a0would 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\u00a0custom_field_4.<\/td><td>No<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Response Codes<\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>200\u00a0&#8211; Success<\/li>\n\n\n\n<li>409\u00a0&#8211; Could not find member with the member ID or email address passed<\/li>\n<\/ul>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Response Data<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><em>none<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>La llamada a la API updateMember se utiliza para actualizar la informaci\u00f3n de la cuenta de un miembro existente. Ejemplo de URL de solicitud http:\/\/{Your_API_URL}?q=\/updateMember Par\u00e1metros de entrada Par\u00e1metro Descripci\u00f3n Obligatorio apikey Clave de API de MemberMouse Credenciales de API S\u00ed apisecret Secreto de API...<\/p>","protected":false},"author":21411,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"ht-kb-category":[183],"ht-kb-tag":[],"class_list":["post-8047","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-mm-api"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb\/8047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/users\/21411"}],"replies":[{"embeddable":true,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/comments?post=8047"}],"version-history":[{"count":0,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb\/8047\/revisions"}],"wp:attachment":[{"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/media?parent=8047"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb-category?post=8047"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb-tag?post=8047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}