The getMember API call is used to retrieve information about an existing member’s account.
Exemple d'URL de demande
http://{Votre_URL_API}?q=/getMember
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 à récupérer | Oui, si l'adresse électronique n'est pas fournie |
courriel | Adresse électronique du membre à récupérer | Oui, si le numéro d'identification de l'adhérent n'est pas fourni |
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
| Paramètres | Description |
numéro de membre | The member’s ID in MemberMouse |
prénom | The member’s first name |
nom de famille | The member’s last name |
enregistré | La date d'inscription du membre |
date_d'annulation | The date the member’s account will be canceled. This will only be set if the member’s account status is annulation en cours. |
dernier_congé | Date de la dernière connexion du membre |
dernière_mise_à_jour | The date the member’s account was last updated |
jours_comme_me_membre | Le nombre de jours depuis lesquels le membre est membre. |
statut | The status of the member’s account. 1 (Active), 2 (Canceled), 3 (Locked), 4 (Paused), 5 (Overdue), 6 (Pending Activation), 7 (Error), 8 (Expired), 9 (Pending Cancellation) |
nom_du_statut | The name of status on the member’s account. |
est_complémentaire | This indicates if the member’s account is complimentary or not. It will be set to true if the account is complimentary and false if not. |
niveau d'adhésion | The ID of the member’s membership level |
nom_du_niveau_d'appartenance | The name of the member’s membership level |
Nom d'utilisateur | The member’s username |
courriel | The member’s email address |
téléphone | The member’s phone number |
adresse_de_facturation | The member’s billing address |
ville_de_facturation | The member’s billing city |
état de la facturation | The member’s billing state |
code postal de facturation | The member’s billing zip code |
pays de facturation | The member’s billing country |
adresse_d'expédition | The member’s shipping address |
ville_d'expédition | The member’s shipping city |
état_de_livraison | The member’s shipping state |
code postal d'expédition | The member’s shipping zip code |
pays d'expédition | The member’s shipping country |
liasses | An array of bundles applied to the member’s account. See table below for parameters available for each bundle. |
champs_personnalisés | An array of custom fields associated with the member’s account. See the table below for parameters available for each custom field. |
Données de l'offre groupée
Bundle data is stored as an array of items in the bundles attribute as part of the response data. Data will only be returned for bundles that are active on the member’s account. The table below outlines the parameters returned for each item in the bundles array.
| Paramètres | Description |
id | The ID of the bundle applied to the member’s account |
nom | The name of the bundle applied to the member’s account |
jours_avec_forfait | The number of days the bundle has been applied to the member’s account |
statut | The numeric status of the bundle applied to the member’s account. The value may be any of the following: 1 (Actif), 4 (En pause), 9 (Annulation en cours) |
nom_du_statut | The name of status of the bundle applied to the member’s account. |
est_complémentaire | Indique si l'offre est gratuite ou non. Elle prendra la valeur "true" si l'offre est gratuite et "false" si elle ne l'est pas. |
date_added | The date the bundle was first applied to the member’s account |
dernière_mise_à_jour | The date the bundle was last updated on the member’s account |
Données des champs personnalisés
Les données des champs personnalisés sont stockées sous forme de tableau d'éléments dans l'attribut custom_field, dans le cadre des données de la réponse. Le tableau ci-dessous présente les paramètres disponibles pour chaque élément du tableau des champs personnalisés.
| Paramètres | Description |
id | L'ID du champ personnalisé |
nom | Le nom du champ personnalisé |
valeur | The value stored in the custom field on the member’s account |

