Platform Subscription API

<back to all web services

GetContacts

Returns a list of contacts with specified roles. There are options to include custom and also to include each contacts connected contacts

Requires Authentication
GetContacts Parameters:
NameParameterData TypeRequiredDescription
SuiteDataSourceInstanceIdbodyGuidYesGuid representing the external system datasource requesting the contact information. This is required to return any existing object subscription details for each contact.
ContactRolesbodyList<Guid>YesA list of 1 or more roles that a contact must have in order to be returned. (Roles are treated as OR not AND, ie a contact may have one or the other to be returned, but not necessarily both)
ContactTypesbodyList<Guid>NoA list of contact types that we want returned. If no contact types are specified all 4 major contact types are eligible to be returned. (organisation/person - real/virtual)
IncludeStaffbodyboolYesSet to true if you want to include the any linked staff for each contact.
CustomContentViewIdbodyGuidNoTo include custom content then you need to specify the view Id of the content to include.
ModifiedSincebodyDateTimeNoSet the date to return only contacts that have been modified since a particular date.
GetContactsModel Parameters:
NameParameterData TypeRequiredDescription
ContactsbodystringNoList of Contacts with details.
ContactStaffbodystringNoList of contact-staff details.
SubscriptionContactModel Parameters:
NameParameterData TypeRequiredDescription
ContactIdbodyGuidNoGuid of the contact object within PSTPF.
ContactTypebodyGuidNoGuid of the Contact Type List Item object within PSTPF.
MaritalStatusbodyGuid?NoGuid of the Marital Status List Item object within PSTPF.
GenderbodyGuid?NoGuid of the Gender List Item object within PSTPF.
FirstNamebodystringNoThe first given name for the contact. Applies to a person contact type.
MiddleNamebodystringNoThe middle name(s) for the contact. Applies to a person contact type.
SurnamebodystringNoThe surname for the contact. Applies to a person contact type.
FullNamebodystringNoThe full name for the contact.
ShortNamebodystringNoA short name for the contact.
BirthDatebodyDateTime?NoThe birth date for the contact. Applies to a person contact type.
TitlebodystringNoThe title for the contact. Applies to a person contact type.
SalutationbodystringNoA salutation for the contact.
AbnbodystringNoThe A.B.N for the contact.
AcnbodystringNoThe A.C.N for the contact.
ArbnbodystringNoThe A.R.B.N for the contact.
TradingNamebodystringNoA trading name for the contact.
LegalNamebodystringNoA legal name for the contact.
NotesbodystringNoAny notes/description for the contact.
EmploymentIndustrybodystringNoContact Employment Industry.
EmploymentRolebodystringNoContact Employment Role.
EmploymentGeographicAreabodystringNoContact Employment Geographic Area.
DriversLicencebodystringNoThe Contacts Drivers Licence Number
GstRegisteredbodyboolNoIndicates if the Contact is registered for GST
RecordStatusbodystringNoThe status of the contact in PSTPF
ContactRolesbodyList<ContactRole>NoA list of roles this contact has.
ContactDetailsbodyList<ContactDetailModel>NoA list of the contact details for the contact.
CustomContentXMLbodystringNoCustom Content XML for the contact.
BlobImageURLPrimarybodystringNoURL to the Primary Image.
BlobImageURLPrimaryThumbnailbodystringNoURL to the Primary Image thumbnail.
PrimaryMobilebodystringNoThe primary mobile for the contact.
PrimaryEmailbodystringNoThe primary email for the contact.
ContactRole Parameters:
NameParameterData TypeRequiredDescription
RoleIdbodyGuidNoGuid of the Role List Item object within PSTPF.
AlternateKeybodystringNoThe unique key that represents the role type on the external system.
ContactDetailModel Parameters:
NameParameterData TypeRequiredDescription
ContactMethodIdbodyGuidNoId of the Contact Method
ContactMethodNamebodystringNoContact Method Name
ContactAddressbodyContactAddressModelNoIf the contact method is an address, this will contain the address details.
ContactPhonebodyPhoneModelNoIf the contact method is a phone, this will contain the phone details
CountryIdbodyGuid?NoId of the country
ContactDetailsbodystringNoA summary string representing the contact details
NotesbodystringNoNotes about the contact details
ContactDetailsCodebodystringNoArea Code if contact details are a phone number
OrderContactMethodbodyintNoOrder number of the contact method
IsPrimaryContactMethodbodyboolNoTrue if this is the primary contact method
IsAddressbodyboolNoTrue if this contact method is an address
ContactAddressModel Parameters:
NameParameterData TypeRequiredDescription
AddressbodyAddressModelNoAddress Details
IsPostalbodyboolNoTrue if this is a postal address.
IsPrimaryLocationbodyboolNoTrue if this is the primary address.
IsRegisteredLocationbodyboolNoTrue if this address is the registered tax address.
SuburbNamebodystringNoSuburb Name
StateNamebodystringNoState Name
CountryNamebodystringNoCountry Name
AddressModel Parameters:
NameParameterData TypeRequiredDescription
DistanceAwaybodydoubleNoThe distance between this project and another specified set of gps coordinates.
LatitudebodyDouble?NoThe latitude of an address - geographic coordinates specifying the north-south position of a point on the Earth's surface.
LongitudebodyDouble?NoThe longitude of an address - geographic coordinates specifying the east-west position of a point on the Earth's surface.
AddressFormatIdbodyGuidNoAddress Format Id Guid - this will be determined by the service.
SuburbIdbodyGuidNoSuburb Id Guid - this will attempt to be determined by the SuburbName, StateShortName and Postcode entered.
SuburbNamebodystringNoThe suburb name.
StateShortNamebodystringNoThe shortened State Name e.g Vic for Victoria.
PostCodebodystringNoThe suburb postcode.
CountryIdbodyGuidNoCountry Id Guid - this will be determined by the CountrName or ISOCountryCode entered.
CountryNamebodystringNothe name of the country the address is within.
ISOCountryCodequerystringNoISO Country Code.
LotNumberbodystringNoThe address Lot number.
SubUnitbodystringNoThe address Sub Unit number.
BuildingNumberbodystringNoThe address building number.
StreetNumberbodystringNoThe address street number.
StreetNamebodystringNoThe address street name including street type.
AddressLineOnebodystringNoA formatted address Line 1.
AddressLineTwobodystringNoA formatted address Line 2.
AddressFullbodystringNoThe full address string.
IsPhysicalbodybool?NoTrue if the address is a physical location.
NotesformstringNoNotes about the address.
AutoMapCoordinatesbodybool?NoIf true, the address is eligible for having its coordinates calculated/updated.
LocationCoordinatesbodyLocationCoordinatesNoLocation Coordinates for the address.
LocationCoordinatesModel Parameters:
NameParameterData TypeRequiredDescription
LatitudequerydoubleNoThe latitude of an address - geographic coordinates specifying the north-south position of a point on the Earth's surface.
LongitudequerydoubleNoThe 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
CountryCodebodystringNoCountry Code
AreaCodebodystringNoArea Code
LocalNumberbodystringNoLocal Number
ContactsStaff Parameters:
NameParameterData TypeRequiredDescription
ContactIdformGuidNo
ContactStaffIdformGuidNo

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/GetContacts HTTP/1.1 
Host: production-eros-platform-apisubscription.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ContactRoles":["00000000-0000-0000-0000-000000000000"],"ContactTypes":["00000000-0000-0000-0000-000000000000"],"IncludeStaff":false,"ModifiedSince":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}