The updateMember API call is used to update an existing member’s account information.
Exemple d'URL de demande
http://{Votre_URL_API}?q=/updateMember
Paramètres d'entrée
| Paramètres | Description | Exigée |
apikey | Clé API de Références de l'API MemberMouse | Oui |
apisecret | Secret de l'API de Références de l'API MemberMouse | Oui |
numéro de membre | ID du membre à mettre à jour | Oui, si l'adresse électronique n'est pas fournie |
courriel | Adresse électronique du membre à mettre à jour | Oui, si le numéro d'identification de l'adhérent n'est pas fourni |
Nom d'utilisateur | Username to set on the existing member’s account | Non |
prénom | First name to set on the existing member’s account | Non |
nom de famille | Last name to set on the existing member’s account | Non |
téléphone | Phone number to set on the existing member’s account | Non |
mot de passe | Password to set on the existing member’s account | Non |
adresse_de_facturation | Billing address to set on the existing member’s account | Non |
ville_de_facturation | Billing city to set on the existing member’s account | Non |
état de la facturation | Billing state to set on the existing member’s account | Non |
code postal de facturation | Billing zip code to set on the existing member’s account | Non |
pays de facturation | Billing country to set on the existing member’s account (Code pays ISO à 2 chiffres) | Non |
adresse_d'expédition | Shipping address to set on the existing member’s account | Non |
ville_d'expédition | Shipping city to set on the existing member’s account | Non |
état_de_livraison | Shipping state to set on the existing member’s account | Non |
code postal d'expédition | Shipping zip code to set on the existing member’s account | Non |
pays d'expédition | Shipping country to set on the existing member’s account (Code pays ISO à 2 chiffres) | Non |
statut | 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) | Non |
niveau_d'adhésion | 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. | Non |
custom_field_[ID#] | Vous pouvez transmettre des données de champ personnalisé à l'API en passant un ou plusieurs paramètres sous la forme custom_field_[ID#] où [ID#] est remplacé par l'ID du champ personnalisé tel qu'il est défini dans MemberMouse. Par exemple, si l'ID du champ personnalisé est 4, vous transmettez les données de ce champ personnalisé en incluant le paramètre custom_field_4. | Non |
Codes de réponse
- 200 - Succès
- 409 - Impossible de trouver un membre avec l'identifiant ou l'adresse électronique transmis.
Données de réponse
aucun

