Back to endpoints

Get contacts for an account

GET api/V3/{language}/org/{orgIdentifier}/accounts/{id}/contacts

You can get the account id from /org/{orgIdentifier}/accounts. Returns a list of persons entered in the account as contacts

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)

Account id

Required

Body Parameters

None.

Response Information

Resource Description

PARAMETERS
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
[
  {
    "Id": 0,
    "FirstName": "Simone",
    "LastName": "Samson",
    "FullName": "Simone Samson",
    "Gender": "NotSpecified",
    "DateOfBirth": "1970-01-01",
    "Email": "simone.samson@amilia.com",
    "Address": {
      "Latitude": 45.72,
      "Longitude": -73.5,
      "Address1": "111 Yonge St.",
      "Address2": "Apt. 22",
      "City": "Toronto",
      "Country": "Canada",
      "StateProvince": "ON",
      "ZipPostalCode": "M4B 1B3"
    },
    "Telephone": "418 555 0011",
    "TelephoneMobile": "438 555 4444",
    "TelephoneWork": "418 555 7777",
    "TelephoneWorkExtension": "333",
    "IsChild": false
  },
  {
    "Id": 0,
    "FirstName": "Simone",
    "LastName": "Samson",
    "FullName": "Simone Samson",
    "Gender": "NotSpecified",
    "DateOfBirth": "1970-01-01",
    "Email": "simone.samson@amilia.com",
    "Address": {
      "Latitude": 45.72,
      "Longitude": -73.5,
      "Address1": "111 Yonge St.",
      "Address2": "Apt. 22",
      "City": "Toronto",
      "Country": "Canada",
      "StateProvince": "ON",
      "ZipPostalCode": "M4B 1B3"
    },
    "Telephone": "418 555 0011",
    "TelephoneMobile": "438 555 4444",
    "TelephoneWork": "418 555 7777",
    "TelephoneWorkExtension": "333",
    "IsChild": false
  }
]