Back to endpoints

Get persons in a membership for an organization

GET api/V3/{language}/org/{orgIdentifier}/memberships/{id}/persons

?status={status}

&showMedicalInfo={showMedicalInfo}

&from={from}

&to={to}

&page={page}

&perPage={perPage}

You can get the membership id from /org/{orgIdentifier}/memberships. Returns a list of persons ordered by id, with the option to specify the membership's status, start and end dates and whether to show the medical information (if any) for each person

Request Information

URI Parameters

PARAMETERS
language (string)

Language in which the localizable values should be returned. Part of base url. Value is either 'fr' or 'en'

Required
orgIdentifier (string)

Amilia-specific organization identifier. This identifier can be either the organization number, such as 8008, or the organization URL identifier. You can find that by looking at the URL of your Amilia store. It may look like lower-case words separated by a dash, such as forest-explorers. Note that in v2 and v1 we call that the 'rewrite URL'.

Required
id (integer)

Membership id

Required
status (string)

Possible values are 'Active', 'Inactive', 'Expired', and 'All'. These values are case-insensitive.

Default value is active

Optional
showMedicalInfo (boolean)

Option to show the persons' medical information.

Default value is False

Optional
from (date)

Start date formatted as YYYY-MM-DD. Inclusive in all versions of the API. Default value is null

Optional
to (date)

End date formatted as YYYY-MM-DD. Inclusive in version 3, exclusive in previous versions of the API. Default value is null

Optional
page (integer)

Result page number that appears first.

Default value is 1

Optional
perPage (integer)

Number of results per page.

Default value is 200

Optional

Body Parameters

None.

Response Information

Resource Description

PARAMETERS
PurchasedDate (date)

Date when resource was purchased. Format is 9999-12-31

EffectiveDate (date)

Date when resource is effective. Format is 9999-12-31

ExpirationDate (date)

Date when resource expires. Format is 9999-12-31

OrganizationId (integer)

Id of the organization. This one cannot be substituted for rewriteUrl, contrary to the organization id in the query parameters

AccountId (integer)

Id of the account

AccountOwnerId (integer)

Id of the account owner

AccountOwnerFirstName (string)

First name of the account owner

AccountOwnerLastName (string)

Last name of the account owner

AccountOwnerFullName (string)

First and last name of the account owner with a space in between

AccountOwnerEmail (string)

Email address of the account owner

AccountOwnerTelephoneMobile (string)
IsArchived (boolean)

True if resource is archived

Contacts ()

Object containing the persons who are listed as contacts and their details

Skills ()

Object containing the skills and their details

Registrations ()

Object containing the registrations and their details

MedicalInformation (MedicalInformationApiModelV3)

Object containing the medical information (allergies, sicknesses, reactions, medication) for a person

JoinDate (date)

Date when the person joined

PictureUrl (string)

Url of the resource picture

Memberships ()
ExternalId (string)
Friend (string)
PickupPassword (string)
Id (integer)

Resource id

FirstName (string)

First name of the person

LastName (string)

Last name of the person

FullName (string)

First and last name with a space in between

Gender (Gender)

Object containing the gender values NotSpecified, Male, Female and PreferNotToSay

DateOfBirth (date)

Format is 9999-12-31

Email (string)

Email address

Address (GeoAddressApiModelV3)

Object containing the address (door number, street name, city, state/province, country, zip/postal code, latitude and longitude)

Telephone (string)

Telephone number

TelephoneMobile (string)

Mobile telephone number

TelephoneWork (string)

Work telephone number

TelephoneWorkExtension (string)

Work telephone number extension

IsChild (boolean)

True when the person is younger than 18 years old

Response Formats

CODE SAMPLE JSON
[
  {
    "PurchasedDate": "2022-09-01",
    "EffectiveDate": "2022-09-01",
    "ExpirationDate": "2022-09-01",
    "OrganizationId": 986987,
    "AccountId": 171717,
    "AccountOwnerId": 432112,
    "AccountOwnerFirstName": "Gertrude",
    "AccountOwnerLastName": "Godin",
    "AccountOwnerFullName": "Gertrude Godin",
    "AccountOwnerEmail": "gertrude89@monmail.com",
    "AccountOwnerTelephoneMobile": null,
    "IsArchived": false,
    "Contacts": [
      {
        "Relationship": "Grandmother",
        "Type": "EmergencyContact",
        "Id": 0,
        "FirstName": "Georgette",
        "LastName": "Plouffe",
        "FullName": "Georgette Plouffe",
        "DateOfBirth": null,
        "Email": "allo@videotron.ca",
        "Telephone": "514 555 9999",
        "TelephoneMobile": null,
        "TelephoneWork": null
      }
    ],
    "Skills": [
      {
        "Id": 0,
        "Name": "Rescue",
        "AwardedDate": "0001-01-01"
      }
    ],
    "MedicalInformation": {
      "Allergies": {
        "Nuts": false,
        "Peanuts": false,
        "Eggs": false,
        "InsectSting": false,
        "Seafood": false
      },
      "Sicknesses": {
        "Asthma": false,
        "Incontinence": false,
        "HearingDisorder": false,
        "Diabete": false,
        "Hyperactive": false,
        "Epilepsy": false,
        "VisualDisorder": false,
        "MotorHandicap": false,
        "BehaviorDisorder": false
      },
      "Reactions": "Rash",
      "MedicationDosage": "20 mg",
      "MedicationFrequency": "Twice daily",
      "MedicationOther": "Take with meals",
      "OtherAllergy": "Crab",
      "OtherSickness": "Sea sickness",
      "MedicalStatus": "NoRecord",
      "HasSickness": false,
      "HasAllergy": false
    },
    "JoinDate": "2022-09-01",
    "PictureUrl": "myclub.ca/memberpics/gertrude_godin",
    "Memberships": null,
    "ExternalId": null,
    "Friend": null,
    "PickupPassword": null,
    "Id": 0,
    "FirstName": "Joelle",
    "LastName": "Godin",
    "FullName": "Joelle Godin",
    "Gender": 0,
    "DateOfBirth": "2022-09-01",
    "Email": "joelle111@monmail.com",
    "Address": {
      "Latitude": 45.72,
      "Longitude": -73.5,
      "Address1": "888 boul. Chomedey",
      "Address2": "",
      "City": "Laval",
      "Country": "Canada",
      "StateProvince": "QC",
      "ZipPostalCode": "H1H 1H1"
    },
    "Telephone": "450 555 5555",
    "TelephoneMobile": "438 555 5555",
    "TelephoneWork": "514 555 5555",
    "TelephoneWorkExtension": "9999",
    "IsChild": true
  },
  {
    "PurchasedDate": "2022-09-01",
    "EffectiveDate": "2022-09-01",
    "ExpirationDate": "2022-09-01",
    "OrganizationId": 986987,
    "AccountId": 171717,
    "AccountOwnerId": 432112,
    "AccountOwnerFirstName": "Gertrude",
    "AccountOwnerLastName": "Godin",
    "AccountOwnerFullName": "Gertrude Godin",
    "AccountOwnerEmail": "gertrude89@monmail.com",
    "AccountOwnerTelephoneMobile": null,
    "IsArchived": false,
    "Contacts": [
      {
        "Relationship": "Grandmother",
        "Type": "EmergencyContact",
        "Id": 0,
        "FirstName": "Georgette",
        "LastName": "Plouffe",
        "FullName": "Georgette Plouffe",
        "DateOfBirth": null,
        "Email": "allo@videotron.ca",
        "Telephone": "514 555 9999",
        "TelephoneMobile": null,
        "TelephoneWork": null
      }
    ],
    "Skills": [
      {
        "Id": 0,
        "Name": "Rescue",
        "AwardedDate": "0001-01-01"
      }
    ],
    "MedicalInformation": {
      "Allergies": {
        "Nuts": false,
        "Peanuts": false,
        "Eggs": false,
        "InsectSting": false,
        "Seafood": false
      },
      "Sicknesses": {
        "Asthma": false,
        "Incontinence": false,
        "HearingDisorder": false,
        "Diabete": false,
        "Hyperactive": false,
        "Epilepsy": false,
        "VisualDisorder": false,
        "MotorHandicap": false,
        "BehaviorDisorder": false
      },
      "Reactions": "Rash",
      "MedicationDosage": "20 mg",
      "MedicationFrequency": "Twice daily",
      "MedicationOther": "Take with meals",
      "OtherAllergy": "Crab",
      "OtherSickness": "Sea sickness",
      "MedicalStatus": "NoRecord",
      "HasSickness": false,
      "HasAllergy": false
    },
    "JoinDate": "2022-09-01",
    "PictureUrl": "myclub.ca/memberpics/gertrude_godin",
    "Memberships": null,
    "ExternalId": null,
    "Friend": null,
    "PickupPassword": null,
    "Id": 0,
    "FirstName": "Joelle",
    "LastName": "Godin",
    "FullName": "Joelle Godin",
    "Gender": 0,
    "DateOfBirth": "2022-09-01",
    "Email": "joelle111@monmail.com",
    "Address": {
      "Latitude": 45.72,
      "Longitude": -73.5,
      "Address1": "888 boul. Chomedey",
      "Address2": "",
      "City": "Laval",
      "Country": "Canada",
      "StateProvince": "QC",
      "ZipPostalCode": "H1H 1H1"
    },
    "Telephone": "450 555 5555",
    "TelephoneMobile": "438 555 5555",
    "TelephoneWork": "514 555 5555",
    "TelephoneWorkExtension": "9999",
    "IsChild": true
  }
]