Platform API

<back to all web services

GetProjectContacts

Returns a projects contacts (customer and project connected).

Requires Authentication
The following routes are available for this service:
All Verbs/api/project/{ProjectId}/contacts
GetProjectContacts Parameters:
NameParameterData TypeRequiredDescription
ProjectIdqueryGuidNoGuid representing the object that is the project in Eros.
CustomerGroupIdqueryGuidNoGuid representing the projects contact customer group Id.
ProjectContactModel Parameters:
NameParameterData TypeRequiredDescription
ProjectContactsquery List<ProjectContact>NoObject containing all details of the project to be inserted or updated.
CustomerContactsquery List<ProjectContact>NoObject containing all details of the project to be inserted or updated.
ProjectContact Parameters:
NameParameterData TypeRequiredDescription
ContactIdqueryGuidNoGuid of the contact object within Eros.
ContactAlternateKeyquerystringYesThe unique key that represents the contact on the external system.
RoleIdqueryGuidYesGuid of the Role List Item object within Eros.
RoleNamequerystringNoRole Name.
RoleAlternateKeyquerystringNoThe unique key that represents the role type on the external system. Note: Use of this is not currently implemented
ContactqueryContactModelNoThe object that contains details of the contact
IndexqueryintNoThe order this contact is in priority. 1 would be the primary contact, 2 the secondary and so forth.
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

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

HTTP + OTHER

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

POST /api/project/{ProjectId}/contacts HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"ProjectId":"00000000-0000-0000-0000-000000000000","CustomerGroupId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ProjectContacts":[{"ContactId":"00000000-0000-0000-0000-000000000000","ContactAlternateKey":"String","RoleId":"00000000-0000-0000-0000-000000000000","RoleName":"String","RoleAlternateKey":"String","Contact":{"ContactId":"00000000-0000-0000-0000-000000000000","ContactType":"00000000-0000-0000-0000-000000000000","MaritalStatus":"00000000000000000000000000000000","Gender":"00000000000000000000000000000000","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":[{"RoleId":"00000000-0000-0000-0000-000000000000","AlternateKey":"String"}],"ContactDetails":[{"ContactMethodId":"00000000-0000-0000-0000-000000000000","ContactMethodName":"String","ContactAddress":{"Address":{"DistanceAway":0,"Latitude":0,"Longitude":0,"AddressFormatId":"00000000-0000-0000-0000-000000000000","SuburbId":"00000000-0000-0000-0000-000000000000","SuburbName":"String","StateShortName":"String","PostCode":"String","CountryId":"00000000-0000-0000-0000-000000000000","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":"00000000000000000000000000000000","ContactDetails":"String","Notes":"String","ContactDetailsCode":"String","OrderContactMethod":0,"IsPrimaryContactMethod":false,"IsAddress":true}],"CustomContentXML":"String","BlobImageURLPrimary":"String","BlobImageURLPrimaryThumbnail":"String","PrimaryMobile":"String","PrimaryEmail":"String"},"Index":0}],"CustomerContacts":[{"ContactId":"00000000-0000-0000-0000-000000000000","ContactAlternateKey":"String","RoleId":"00000000-0000-0000-0000-000000000000","RoleName":"String","RoleAlternateKey":"String","Contact":{"ContactId":"00000000-0000-0000-0000-000000000000","ContactType":"00000000-0000-0000-0000-000000000000","MaritalStatus":"00000000000000000000000000000000","Gender":"00000000000000000000000000000000","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":[{"RoleId":"00000000-0000-0000-0000-000000000000","AlternateKey":"String"}],"ContactDetails":[{"ContactMethodId":"00000000-0000-0000-0000-000000000000","ContactMethodName":"String","ContactAddress":{"Address":{"DistanceAway":0,"Latitude":0,"Longitude":0,"AddressFormatId":"00000000-0000-0000-0000-000000000000","SuburbId":"00000000-0000-0000-0000-000000000000","SuburbName":"String","StateShortName":"String","PostCode":"String","CountryId":"00000000-0000-0000-0000-000000000000","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":"00000000000000000000000000000000","ContactDetails":"String","Notes":"String","ContactDetailsCode":"String","OrderContactMethod":0,"IsPrimaryContactMethod":false,"IsAddress":true}],"CustomContentXML":"String","BlobImageURLPrimary":"String","BlobImageURLPrimaryThumbnail":"String","PrimaryMobile":"String","PrimaryEmail":"String"},"Index":0}]}