Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
SuiteDataSourceInstanceId | query | Guid | Yes | Guid representing the external systems datasource information. |
AlternateKey | query | string | Yes | The unique key that represents the contact on the external system. |
ObjectId | query | Guid | No | Guid of the contact object within Eros. If ObjectId is known, the external system may pass this instead of the alternate key. |
IgnoreHash | query | bool | No | If set to true, the object will be updated/refreshed. If false, the hash representation of the Contact model and its data will be compared with the current Contact to determine if there are any changes to save. |
IgnoreValidation | query | bool | No | |
MarkAsDeleted | query | bool | No | Set this to be true if the contact is to be deleted |
Contact | query | SubscriptionContactModel | Yes | Object containing all details of the contact to be inserted or updated. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ValidationErrors | form | List<RuleValidationResult> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
RuleCode | form | string | No | |
Message | form | string | No | |
Key | form | string | No | |
Tag | form | string | No | |
ErrorCode | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ContactId | query | Guid | No | Guid of the contact object within Eros. |
ContactType | query | Guid | Yes | Guid of the Contact Type List Item object within Eros. |
MaritalStatus | query | Guid? | No | Guid of the Marital Status List Item object within Eros. |
Gender | query | Guid? | No | Guid of the Gender List Item object within Eros. |
FirstName | query | string | No | The first given name for the contact. Applies to a person contact type. |
MiddleName | query | string | No | The middle name(s) for the contact. Applies to a person contact type. |
Surname | query | string | No | The surname for the contact. Applies to a person contact type. |
FullName | query | string | No | The full name for the contact. |
ShortName | query | string | No | A short name for the contact. |
BirthDate | query | DateTime? | No | The birth date for the contact. Applies to a person contact type. |
Title | query | string | No | The title for the contact. Applies to a person contact type. |
Salutation | query | string | No | A salutation for the contact. |
Abn | query | string | No | The A.B.N for the contact. |
Acn | query | string | No | The A.C.N for the contact. |
Arbn | query | string | No | The A.R.B.N for the contact. |
TradingName | query | string | No | A trading name for the contact. |
LegalName | query | string | No | A legal name for the contact. |
Notes | query | string | No | Any notes/description for the contact. |
EmploymentIndustry | query | string | No | Contact Employment Industry. |
EmploymentRole | query | string | No | Contact Employment Role. |
EmploymentGeographicArea | query | string | No | Contact Employment Geographic Area. |
DriversLicence | query | string | No | The Contacts Drivers Licence Number |
GstRegistered | query | bool | No | Indicates if the Contact is registered for GST |
RecordStatus | query | string | No | The status of the contact in EROS |
ContactRoles | query | List<ContactRole> | Yes | A list of roles this contact has. |
ContactDetails | query | List<ContactDetailModel> | Yes | A list of the contact details for the contact. |
CustomContentXML | query | string | No | Custom Content XML for the contact. |
BlobImageURLPrimary | form | string | No | |
BlobImageURLPrimaryThumbnail | form | string | No | |
PrimaryMobile | query | string | No | The primary mobile for the contact. |
PrimaryEmail | query | string | No | The primary email for the contact. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
RoleId | query | Guid | Yes | Guid of the Role List Item object within Eros. |
AlternateKey | query | string | No | The unique key that represents the role type on the external system. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ContactMethodId | form | Guid | No | |
ContactMethodName | form | string | No | |
ContactAddress | form | ContactAddressModel | No | |
ContactPhone | form | PhoneModel | No | |
CountryId | form | Guid? | No | |
ContactDetails | form | string | No | |
Notes | form | string | No | |
ContactDetailsCode | form | string | No | |
OrderContactMethod | form | int | No | |
IsPrimaryContactMethod | form | bool | No | |
IsAddress | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Address | form | AddressModel | No | |
IsPostal | form | bool | No | |
IsPrimaryLocation | form | bool | No | |
IsRegisteredLocation | form | bool | No | |
SuburbName | form | string | No | |
StateName | form | string | No | |
CountryName | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
DistanceAway | query | double | No | The distance between this project and another specified set of gps coordinates. |
Latitude | query | Double? | Yes | The latitude of an address - geographic coordinates specifying the north-south position of a point on the Earth's surface. |
Longitude | query | Double? | Yes | The longitude of an address - geographic coordinates specifying the east-west position of a point on the Earth's surface. |
AddressFormatId | query | Guid | No | Address Format Id Guid - this will be determined by the service. |
SuburbId | query | Guid | No | Suburb Id Guid - this will attempt to be determined by the SuburbName, StateShortName and Postcode entered. |
SuburbName | query | string | No | The suburb name. |
StateShortName | query | string | No | The shortened State Name e.g Vic for Victoria. |
PostCode | query | string | No | The suburb postcode. |
CountryId | query | Guid | No | Country Id Guid - this will be determined by the CountrName or ISOCountryCode entered. |
CountryName | query | string | No | the name of the country the address is within. |
ISOCountryCode | query | string | No | A 2 digit ISO Country Code representing the country. |
LotNumber | query | string | No | The address Lot number. |
SubUnit | query | string | No | The address Sub Unit number. |
BuildingNumber | query | string | No | The address building number. |
StreetNumber | query | string | No | The address street number. |
StreetName | query | string | No | The address street name including street type. |
AddressLineOne | query | string | No | A formatted address Line 1. |
AddressLineTwo | query | string | No | A formatted address Line 2. |
AddressFull | query | string | No | The full address string. |
IsPhysical | query | bool? | No | True if the address is a physical location. |
Notes | query | string | No | Notes about the address. |
AutoMapCoordinates | query | bool? | No | If true, the address is eligible for having its coordinates calculated/updated. |
LocationCoordinates | query | LocationCoordinates | No | Location Coordinates for the address. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Latitude | query | Double? | Yes | The latitude of an address - geographic coordinates specifying the north-south position of a point on the Earth's surface. |
Longitude | query | Double? | Yes | The longitude of an address - geographic coordinates specifying the east-west position of a point on the Earth's surface. |
Altitude | query | Double? | No | The altitude of an address - the altitude above sea level. |
Accuracy | query | Double? | No | Accuracy of the latitude and longitude. |
AltitudeAccuracy | query | Double? | No | Accurancy of the Altitude. |
Heading | query | Double? | No | Direction you are heading. |
Speed | query | Double? | No | Speed you are going. |
VerticalSpeed | query | Double? | No | Speed your altitude is ascending/descending at. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CountryCode | form | string | No | |
AreaCode | form | string | No | |
LocalNumber | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /xml/reply/SaveContact HTTP/1.1
Host: production-eros-platform-apisubscription.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SaveContact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eros.Subtle.Canvara.WebAPIModel.ServiceModelSubscription">
<ValidationErrors xmlns="http://schemas.datacontract.org/2004/07/Eros.Saguna.Common.Library.ValidationEngine">
<RuleValidationResult>
<_x003C_ErrorCode_x003E_k__BackingField>String</_x003C_ErrorCode_x003E_k__BackingField>
<_x003C_Key_x003E_k__BackingField>String</_x003C_Key_x003E_k__BackingField>
<_x003C_Message_x003E_k__BackingField>String</_x003C_Message_x003E_k__BackingField>
<_x003C_RuleCode_x003E_k__BackingField>String</_x003C_RuleCode_x003E_k__BackingField>
<_x003C_Tag_x003E_k__BackingField>String</_x003C_Tag_x003E_k__BackingField>
</RuleValidationResult>
</ValidationErrors>
<AlternateKey>String</AlternateKey>
<Contact xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eros.Saguna.Common.WebAPI.ServiceModel">
<d2p1:_x003C_Abn_x003E_k__BackingField>String</d2p1:_x003C_Abn_x003E_k__BackingField>
<d2p1:_x003C_Acn_x003E_k__BackingField>String</d2p1:_x003C_Acn_x003E_k__BackingField>
<d2p1:_x003C_Arbn_x003E_k__BackingField>String</d2p1:_x003C_Arbn_x003E_k__BackingField>
<d2p1:_x003C_BirthDate_x003E_k__BackingField>0001-01-01T00:00:00</d2p1:_x003C_BirthDate_x003E_k__BackingField>
<d2p1:_x003C_BlobImageURLPrimaryThumbnail_x003E_k__BackingField>String</d2p1:_x003C_BlobImageURLPrimaryThumbnail_x003E_k__BackingField>
<d2p1:_x003C_BlobImageURLPrimary_x003E_k__BackingField>String</d2p1:_x003C_BlobImageURLPrimary_x003E_k__BackingField>
<d2p1:_x003C_ContactDetails_x003E_k__BackingField>
<d2p1:ContactDetailModel>
<d2p1:_x003C_ContactAddress_x003E_k__BackingField>
<d2p1:_x003C_Address_x003E_k__BackingField>
<d2p1:_addressFull>String</d2p1:_addressFull>
<d2p1:_x003C_AddressFormatId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_AddressFormatId_x003E_k__BackingField>
<d2p1:_x003C_AddressLineOne_x003E_k__BackingField>String</d2p1:_x003C_AddressLineOne_x003E_k__BackingField>
<d2p1:_x003C_AddressLineTwo_x003E_k__BackingField>String</d2p1:_x003C_AddressLineTwo_x003E_k__BackingField>
<d2p1:_x003C_AutoMapCoordinates_x003E_k__BackingField>false</d2p1:_x003C_AutoMapCoordinates_x003E_k__BackingField>
<d2p1:_x003C_BuildingNumber_x003E_k__BackingField>String</d2p1:_x003C_BuildingNumber_x003E_k__BackingField>
<d2p1:_x003C_CountryId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_CountryId_x003E_k__BackingField>
<d2p1:_x003C_CountryName_x003E_k__BackingField>String</d2p1:_x003C_CountryName_x003E_k__BackingField>
<d2p1:_x003C_DistanceAway_x003E_k__BackingField>0</d2p1:_x003C_DistanceAway_x003E_k__BackingField>
<d2p1:_x003C_ISOCountryCode_x003E_k__BackingField>String</d2p1:_x003C_ISOCountryCode_x003E_k__BackingField>
<d2p1:_x003C_IsPhysical_x003E_k__BackingField>false</d2p1:_x003C_IsPhysical_x003E_k__BackingField>
<d2p1:_x003C_Latitude_x003E_k__BackingField>0</d2p1:_x003C_Latitude_x003E_k__BackingField>
<d2p1:_x003C_LocationCoordinates_x003E_k__BackingField>
<d2p1:_x003C_Accuracy_x003E_k__BackingField>0</d2p1:_x003C_Accuracy_x003E_k__BackingField>
<d2p1:_x003C_AltitudeAccuracy_x003E_k__BackingField>0</d2p1:_x003C_AltitudeAccuracy_x003E_k__BackingField>
<d2p1:_x003C_Altitude_x003E_k__BackingField>0</d2p1:_x003C_Altitude_x003E_k__BackingField>
<d2p1:_x003C_Heading_x003E_k__BackingField>0</d2p1:_x003C_Heading_x003E_k__BackingField>
<d2p1:_x003C_Latitude_x003E_k__BackingField>0</d2p1:_x003C_Latitude_x003E_k__BackingField>
<d2p1:_x003C_Longitude_x003E_k__BackingField>0</d2p1:_x003C_Longitude_x003E_k__BackingField>
<d2p1:_x003C_Speed_x003E_k__BackingField>0</d2p1:_x003C_Speed_x003E_k__BackingField>
<d2p1:_x003C_VerticalSpeed_x003E_k__BackingField>0</d2p1:_x003C_VerticalSpeed_x003E_k__BackingField>
</d2p1:_x003C_LocationCoordinates_x003E_k__BackingField>
<d2p1:_x003C_Longitude_x003E_k__BackingField>0</d2p1:_x003C_Longitude_x003E_k__BackingField>
<d2p1:_x003C_LotNumber_x003E_k__BackingField>String</d2p1:_x003C_LotNumber_x003E_k__BackingField>
<d2p1:_x003C_Notes_x003E_k__BackingField>String</d2p1:_x003C_Notes_x003E_k__BackingField>
<d2p1:_x003C_PostCode_x003E_k__BackingField>String</d2p1:_x003C_PostCode_x003E_k__BackingField>
<d2p1:_x003C_StateShortName_x003E_k__BackingField>String</d2p1:_x003C_StateShortName_x003E_k__BackingField>
<d2p1:_x003C_StreetName_x003E_k__BackingField>String</d2p1:_x003C_StreetName_x003E_k__BackingField>
<d2p1:_x003C_StreetNumber_x003E_k__BackingField>String</d2p1:_x003C_StreetNumber_x003E_k__BackingField>
<d2p1:_x003C_SubUnit_x003E_k__BackingField>String</d2p1:_x003C_SubUnit_x003E_k__BackingField>
<d2p1:_x003C_SuburbId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_SuburbId_x003E_k__BackingField>
<d2p1:_x003C_SuburbName_x003E_k__BackingField>String</d2p1:_x003C_SuburbName_x003E_k__BackingField>
</d2p1:_x003C_Address_x003E_k__BackingField>
<d2p1:_x003C_CountryName_x003E_k__BackingField>String</d2p1:_x003C_CountryName_x003E_k__BackingField>
<d2p1:_x003C_IsPostal_x003E_k__BackingField>false</d2p1:_x003C_IsPostal_x003E_k__BackingField>
<d2p1:_x003C_IsPrimaryLocation_x003E_k__BackingField>false</d2p1:_x003C_IsPrimaryLocation_x003E_k__BackingField>
<d2p1:_x003C_IsRegisteredLocation_x003E_k__BackingField>false</d2p1:_x003C_IsRegisteredLocation_x003E_k__BackingField>
<d2p1:_x003C_StateName_x003E_k__BackingField>String</d2p1:_x003C_StateName_x003E_k__BackingField>
<d2p1:_x003C_SuburbName_x003E_k__BackingField>String</d2p1:_x003C_SuburbName_x003E_k__BackingField>
</d2p1:_x003C_ContactAddress_x003E_k__BackingField>
<d2p1:_x003C_ContactDetailsCode_x003E_k__BackingField>String</d2p1:_x003C_ContactDetailsCode_x003E_k__BackingField>
<d2p1:_x003C_ContactDetails_x003E_k__BackingField>String</d2p1:_x003C_ContactDetails_x003E_k__BackingField>
<d2p1:_x003C_ContactMethodId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_ContactMethodId_x003E_k__BackingField>
<d2p1:_x003C_ContactMethodName_x003E_k__BackingField>String</d2p1:_x003C_ContactMethodName_x003E_k__BackingField>
<d2p1:_x003C_ContactPhone_x003E_k__BackingField>
<d2p1:_x003C_AreaCode_x003E_k__BackingField>String</d2p1:_x003C_AreaCode_x003E_k__BackingField>
<d2p1:_x003C_CountryCode_x003E_k__BackingField>String</d2p1:_x003C_CountryCode_x003E_k__BackingField>
<d2p1:_x003C_LocalNumber_x003E_k__BackingField>String</d2p1:_x003C_LocalNumber_x003E_k__BackingField>
</d2p1:_x003C_ContactPhone_x003E_k__BackingField>
<d2p1:_x003C_CountryId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_CountryId_x003E_k__BackingField>
<d2p1:_x003C_IsPrimaryContactMethod_x003E_k__BackingField>false</d2p1:_x003C_IsPrimaryContactMethod_x003E_k__BackingField>
<d2p1:_x003C_Notes_x003E_k__BackingField>String</d2p1:_x003C_Notes_x003E_k__BackingField>
<d2p1:_x003C_OrderContactMethod_x003E_k__BackingField>0</d2p1:_x003C_OrderContactMethod_x003E_k__BackingField>
</d2p1:ContactDetailModel>
</d2p1:_x003C_ContactDetails_x003E_k__BackingField>
<d2p1:_x003C_ContactId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_ContactId_x003E_k__BackingField>
<d2p1:_x003C_ContactRoles_x003E_k__BackingField>
<d2p1:ContactRole>
<d2p1:_x003C_AlternateKey_x003E_k__BackingField>String</d2p1:_x003C_AlternateKey_x003E_k__BackingField>
<d2p1:_x003C_RoleId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_RoleId_x003E_k__BackingField>
</d2p1:ContactRole>
</d2p1:_x003C_ContactRoles_x003E_k__BackingField>
<d2p1:_x003C_ContactType_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_ContactType_x003E_k__BackingField>
<d2p1:_x003C_CustomContentXML_x003E_k__BackingField>String</d2p1:_x003C_CustomContentXML_x003E_k__BackingField>
<d2p1:_x003C_DriversLicence_x003E_k__BackingField>String</d2p1:_x003C_DriversLicence_x003E_k__BackingField>
<d2p1:_x003C_EmploymentGeographicArea_x003E_k__BackingField>String</d2p1:_x003C_EmploymentGeographicArea_x003E_k__BackingField>
<d2p1:_x003C_EmploymentIndustry_x003E_k__BackingField>String</d2p1:_x003C_EmploymentIndustry_x003E_k__BackingField>
<d2p1:_x003C_EmploymentRole_x003E_k__BackingField>String</d2p1:_x003C_EmploymentRole_x003E_k__BackingField>
<d2p1:_x003C_FirstName_x003E_k__BackingField>String</d2p1:_x003C_FirstName_x003E_k__BackingField>
<d2p1:_x003C_FullName_x003E_k__BackingField>String</d2p1:_x003C_FullName_x003E_k__BackingField>
<d2p1:_x003C_Gender_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_Gender_x003E_k__BackingField>
<d2p1:_x003C_GstRegistered_x003E_k__BackingField>false</d2p1:_x003C_GstRegistered_x003E_k__BackingField>
<d2p1:_x003C_LegalName_x003E_k__BackingField>String</d2p1:_x003C_LegalName_x003E_k__BackingField>
<d2p1:_x003C_MaritalStatus_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_MaritalStatus_x003E_k__BackingField>
<d2p1:_x003C_MiddleName_x003E_k__BackingField>String</d2p1:_x003C_MiddleName_x003E_k__BackingField>
<d2p1:_x003C_Notes_x003E_k__BackingField>String</d2p1:_x003C_Notes_x003E_k__BackingField>
<d2p1:_x003C_PrimaryEmail_x003E_k__BackingField>String</d2p1:_x003C_PrimaryEmail_x003E_k__BackingField>
<d2p1:_x003C_PrimaryMobile_x003E_k__BackingField>String</d2p1:_x003C_PrimaryMobile_x003E_k__BackingField>
<d2p1:_x003C_RecordStatus_x003E_k__BackingField>String</d2p1:_x003C_RecordStatus_x003E_k__BackingField>
<d2p1:_x003C_Salutation_x003E_k__BackingField>String</d2p1:_x003C_Salutation_x003E_k__BackingField>
<d2p1:_x003C_ShortName_x003E_k__BackingField>String</d2p1:_x003C_ShortName_x003E_k__BackingField>
<d2p1:_x003C_Surname_x003E_k__BackingField>String</d2p1:_x003C_Surname_x003E_k__BackingField>
<d2p1:_x003C_Title_x003E_k__BackingField>String</d2p1:_x003C_Title_x003E_k__BackingField>
<d2p1:_x003C_TradingName_x003E_k__BackingField>String</d2p1:_x003C_TradingName_x003E_k__BackingField>
</Contact>
<IgnoreHash>false</IgnoreHash>
<MarkAsDeleted>false</MarkAsDeleted>
<ObjectId>00000000-0000-0000-0000-000000000000</ObjectId>
<SuiteDataSourceInstanceId>00000000-0000-0000-0000-000000000000</SuiteDataSourceInstanceId>
</SaveContact>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ResponseStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types"> <ErrorCode>String</ErrorCode> <Message>String</Message> <StackTrace>String</StackTrace> <Errors> <ResponseError> <ErrorCode>String</ErrorCode> <FieldName>String</FieldName> <Message>String</Message> <Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfstringstring> <d4p1:Key>String</d4p1:Key> <d4p1:Value>String</d4p1:Value> </d4p1:KeyValueOfstringstring> </Meta> </ResponseError> </Errors> <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringstring> <d2p1:Key>String</d2p1:Key> <d2p1:Value>String</d2p1:Value> </d2p1:KeyValueOfstringstring> </Meta> </ResponseStatus>