EMUN1 ASP.NET

<back to all web services

UploadContacts

The following routes are available for this service:
All Verbs/service/UploadContacts
UploadContacts Parameters:
NameParameterData TypeRequiredDescription
ContactIdsquerystring[]No
ContactsUploaded Parameters:
NameParameterData TypeRequiredDescription
ContactsformList<Contacts>No
Contacts Parameters:
NameParameterData TypeRequiredDescription
ConIDformstringNo
strCustomerIDformstringNo
strContactNameformstringNo
strEmailformstringNo
strPhoneformstringNo
ysnPrimaryformbool?No
strTitleformstringNo
strMobilePhoneformstringNo
strFAXformstringNo
ysnNewformbool?No
ysnModifiedformbool?No
strExtensionformstringNo
ysnNotificationformbool?No
strNotificationTypeformstringNo
strNotificationMethodformstringNo
ysnExportedformbool?No
strPhoneOtherformstringNo
strCustom1formstringNo
strCustom2formstringNo
strCustom3formstringNo
strCustom4formstringNo
strCustom5formstringNo
strCustom6formstringNo
strCustom7formstringNo
strCustom8formstringNo
strCustom9formstringNo
strCustom10formstringNo
strCustom11formstringNo
strCustom12formstringNo
strCustom13formstringNo
strCustom14formstringNo
strCustom15formstringNo
strCreatedByformstringNo
dtmCreatedformDateTime?No
ysnShipToPrimaryformboolNo
ysnSoldToPrimaryformboolNo
ysnActiveformboolNo
ysnBillToformboolNo
ysnSoldToformboolNo
ysnShipToformboolNo
ysnNonEditableformbool?No

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

HTTP + XML

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

POST /service/UploadContacts HTTP/1.1 
Host: www.bernhardthospitality.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<UploadContacts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Data">
  <ContactIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </ContactIds>
</UploadContacts>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ContactsUploaded xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Data">
  <Contacts xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun.Data.Models">
    <d2p1:Contacts>
      <d2p1:ConID>String</d2p1:ConID>
      <d2p1:dtmCreated>0001-01-01T00:00:00</d2p1:dtmCreated>
      <d2p1:strContactName>String</d2p1:strContactName>
      <d2p1:strCreatedBy>String</d2p1:strCreatedBy>
      <d2p1:strCustom1>String</d2p1:strCustom1>
      <d2p1:strCustom10>String</d2p1:strCustom10>
      <d2p1:strCustom11>String</d2p1:strCustom11>
      <d2p1:strCustom12>String</d2p1:strCustom12>
      <d2p1:strCustom13>String</d2p1:strCustom13>
      <d2p1:strCustom14>String</d2p1:strCustom14>
      <d2p1:strCustom15>String</d2p1:strCustom15>
      <d2p1:strCustom2>String</d2p1:strCustom2>
      <d2p1:strCustom3>String</d2p1:strCustom3>
      <d2p1:strCustom4>String</d2p1:strCustom4>
      <d2p1:strCustom5>String</d2p1:strCustom5>
      <d2p1:strCustom6>String</d2p1:strCustom6>
      <d2p1:strCustom7>String</d2p1:strCustom7>
      <d2p1:strCustom8>String</d2p1:strCustom8>
      <d2p1:strCustom9>String</d2p1:strCustom9>
      <d2p1:strCustomerID>String</d2p1:strCustomerID>
      <d2p1:strEmail>String</d2p1:strEmail>
      <d2p1:strExtension>String</d2p1:strExtension>
      <d2p1:strFAX>String</d2p1:strFAX>
      <d2p1:strMobilePhone>String</d2p1:strMobilePhone>
      <d2p1:strNotificationMethod>String</d2p1:strNotificationMethod>
      <d2p1:strNotificationType>String</d2p1:strNotificationType>
      <d2p1:strPhone>String</d2p1:strPhone>
      <d2p1:strPhoneOther>String</d2p1:strPhoneOther>
      <d2p1:strTitle>String</d2p1:strTitle>
      <d2p1:ysnActive>false</d2p1:ysnActive>
      <d2p1:ysnBillTo>false</d2p1:ysnBillTo>
      <d2p1:ysnExported>false</d2p1:ysnExported>
      <d2p1:ysnModified>false</d2p1:ysnModified>
      <d2p1:ysnNew>false</d2p1:ysnNew>
      <d2p1:ysnNonEditable>false</d2p1:ysnNonEditable>
      <d2p1:ysnNotification>false</d2p1:ysnNotification>
      <d2p1:ysnPrimary>false</d2p1:ysnPrimary>
      <d2p1:ysnShipTo>false</d2p1:ysnShipTo>
      <d2p1:ysnShipToPrimary>false</d2p1:ysnShipToPrimary>
      <d2p1:ysnSoldTo>false</d2p1:ysnSoldTo>
      <d2p1:ysnSoldToPrimary>false</d2p1:ysnSoldToPrimary>
    </d2p1:Contacts>
  </Contacts>
</ContactsUploaded>