Platform Subscription API

<back to all web services

GetContact

Returns a contact and its details and roles.

Requires Authentication
GetContact Parameters:
NameParameterData TypeRequiredDescription
SuiteDataSourceInstanceIdqueryGuidYesGuid representing the external systems datasource information.
AlternateKeyquerystringYesThe unique key that represents the contact on the external system.
ObjectIdqueryGuidNoGuid of the contact object within Eros. If ObjectId is known, the external system may pass this insted of the alternate key.
IgnoreValidationqueryboolNo
SubscriptionContactModel Parameters:
NameParameterData TypeRequiredDescription
ContactIdqueryGuidNoGuid of the contact object within Eros.
ContactTypequeryGuidYesGuid of the Contact Type List Item object within Eros.
MaritalStatusqueryGuid?NoGuid of the Marital Status List Item object within Eros.
GenderqueryGuid?NoGuid of the Gender List Item object within Eros.
FirstNamequerystringNoThe first given name for the contact. Applies to a person contact type.
MiddleNamequerystringNoThe middle name(s) for the contact. Applies to a person contact type.
SurnamequerystringNoThe surname for the contact. Applies to a person contact type.
FullNamequerystringNoThe full name for the contact.
ShortNamequerystringNoA short name for the contact.
BirthDatequeryDateTime?NoThe birth date for the contact. Applies to a person contact type.
TitlequerystringNoThe title for the contact. Applies to a person contact type.
SalutationquerystringNoA salutation for the contact.
AbnquerystringNoThe A.B.N for the contact.
AcnquerystringNoThe A.C.N for the contact.
ArbnquerystringNoThe A.R.B.N for the contact.
TradingNamequerystringNoA trading name for the contact.
LegalNamequerystringNoA legal name for the contact.
NotesquerystringNoAny notes/description for the contact.
EmploymentIndustryquerystringNoContact Employment Industry.
EmploymentRolequerystringNoContact Employment Role.
EmploymentGeographicAreaquerystringNoContact Employment Geographic Area.
DriversLicencequerystringNoThe Contacts Drivers Licence Number
GstRegisteredqueryboolNoIndicates if the Contact is registered for GST
RecordStatusquerystringNoThe status of the contact in EROS
ContactRolesqueryList<ContactRole>YesA list of roles this contact has.
ContactDetailsqueryList<ContactDetailModel>YesA list of the contact details for the contact.
CustomContentXMLquerystringNoCustom Content XML for the contact.
BlobImageURLPrimaryformstringNo
BlobImageURLPrimaryThumbnailformstringNo
PrimaryMobilequerystringNoThe primary mobile for the contact.
PrimaryEmailquerystringNoThe primary email for the contact.
ContactRole Parameters:
NameParameterData TypeRequiredDescription
RoleIdqueryGuidYesGuid of the Role List Item object within Eros.
AlternateKeyquerystringNoThe unique key that represents the role type on the external system.
ContactDetailModel Parameters:
NameParameterData TypeRequiredDescription
ContactMethodIdformGuidNo
ContactMethodNameformstringNo
ContactAddressformContactAddressModelNo
ContactPhoneformPhoneModelNo
CountryIdformGuid?No
ContactDetailsformstringNo
NotesformstringNo
ContactDetailsCodeformstringNo
OrderContactMethodformintNo
IsPrimaryContactMethodformboolNo
IsAddressformboolNo
ContactAddressModel Parameters:
NameParameterData TypeRequiredDescription
AddressformAddressModelNo
IsPostalformboolNo
IsPrimaryLocationformboolNo
IsRegisteredLocationformboolNo
SuburbNameformstringNo
StateNameformstringNo
CountryNameformstringNo
AddressModel Parameters:
NameParameterData TypeRequiredDescription
DistanceAwayquerydoubleNoThe distance between this project and another specified set of gps coordinates.
LatitudequeryDouble?YesThe latitude of an address - geographic coordinates specifying the north-south position of a point on the Earth's surface.
LongitudequeryDouble?YesThe longitude of an address - geographic coordinates specifying the east-west position of a point on the Earth's surface.
AddressFormatIdqueryGuidNoAddress Format Id Guid - this will be determined by the service.
SuburbIdqueryGuidNoSuburb Id Guid - this will attempt to be determined by the SuburbName, StateShortName and Postcode entered.
SuburbNamequerystringNoThe suburb name.
StateShortNamequerystringNoThe shortened State Name e.g Vic for Victoria.
PostCodequerystringNoThe suburb postcode.
CountryIdqueryGuidNoCountry Id Guid - this will be determined by the CountrName or ISOCountryCode entered.
CountryNamequerystringNothe name of the country the address is within.
ISOCountryCodequerystringNoA 2 digit ISO Country Code representing the country.
LotNumberquerystringNoThe address Lot number.
SubUnitquerystringNoThe address Sub Unit number.
BuildingNumberquerystringNoThe address building number.
StreetNumberquerystringNoThe address street number.
StreetNamequerystringNoThe address street name including street type.
AddressLineOnequerystringNoA formatted address Line 1.
AddressLineTwoquerystringNoA formatted address Line 2.
AddressFullquerystringNoThe full address string.
IsPhysicalquerybool?NoTrue if the address is a physical location.
NotesquerystringNoNotes about the address.
AutoMapCoordinatesquerybool?NoIf true, the address is eligible for having its coordinates calculated/updated.
LocationCoordinatesqueryLocationCoordinatesNoLocation Coordinates for the address.
LocationCoordinatesModel Parameters:
NameParameterData TypeRequiredDescription
LatitudequeryDouble?YesThe latitude of an address - geographic coordinates specifying the north-south position of a point on the Earth's surface.
LongitudequeryDouble?YesThe longitude of an address - geographic coordinates specifying the east-west position of a point on the Earth's surface.
AltitudequeryDouble?NoThe altitude of an address - the altitude above sea level.
AccuracyqueryDouble?NoAccuracy of the latitude and longitude.
AltitudeAccuracyqueryDouble?NoAccurancy of the Altitude.
HeadingqueryDouble?NoDirection you are heading.
SpeedqueryDouble?NoSpeed you are going.
VerticalSpeedqueryDouble?NoSpeed your altitude is ascending/descending at.
PhoneModel Parameters:
NameParameterData TypeRequiredDescription
CountryCodeformstringNo
AreaCodeformstringNo
LocalNumberformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/GetContact HTTP/1.1 
Host: production-eros-platform-apisubscription.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"AlternateKey":"String","IgnoreValidation":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"MaritalStatus":"00000000-0000-0000-0000-000000000000","Gender":"00000000-0000-0000-0000-000000000000","FirstName":"String","MiddleName":"String","Surname":"String","FullName":"String","ShortName":"String","BirthDate":"0001-01-01T00:00:00.0000000","Title":"String","Salutation":"String","Abn":"String","Acn":"String","Arbn":"String","TradingName":"String","LegalName":"String","Notes":"String","EmploymentIndustry":"String","EmploymentRole":"String","EmploymentGeographicArea":"String","DriversLicence":"String","GstRegistered":false,"RecordStatus":"String","ContactRoles":[{"AlternateKey":"String"}],"ContactDetails":[{"ContactMethodName":"String","ContactAddress":{"Address":{"DistanceAway":0,"Latitude":0,"Longitude":0,"SuburbName":"String","StateShortName":"String","PostCode":"String","CountryName":"String","ISOCountryCode":"String","LotNumber":"String","SubUnit":"String","BuildingNumber":"String","StreetNumber":"String","StreetName":"String","AddressLineOne":"String","AddressLineTwo":"String","AddressFull":"String","IsPhysical":false,"Notes":"String","AutoMapCoordinates":false,"LocationCoordinates":{"Latitude":0,"Longitude":0,"Altitude":0,"Accuracy":0,"AltitudeAccuracy":0,"Heading":0,"Speed":0,"VerticalSpeed":0}},"IsPostal":false,"IsPrimaryLocation":false,"IsRegisteredLocation":false,"SuburbName":"String","StateName":"String","CountryName":"String"},"ContactPhone":{"CountryCode":"String","AreaCode":"String","LocalNumber":"String"},"CountryId":"00000000-0000-0000-0000-000000000000","ContactDetails":"String","Notes":"String","ContactDetailsCode":"String","OrderContactMethod":0,"IsPrimaryContactMethod":false,"IsAddress":true}],"CustomContentXML":"String","BlobImageURLPrimary":"String","BlobImageURLPrimaryThumbnail":"String","PrimaryMobile":"String","PrimaryEmail":"String"}