How to pass data to iContact

December 26, 2016 - 15:41

The article Introduction to iContact API describes a small introduction for iContact. Actually the data passed to iContact is in JSON format or in XML format. Mainly contact information and emails are passed to iContact. Data are passed to iContact in the following format.

You can add custom fields through iContact API. The XML format for contact information in iContact :

<contacts>
  <contact>
     <email></email>
     <prefix></prefix>
     <firstName></firstName>
     <lastName></lastName>
     <suffix></suffix>
     <street></street>
     <city></city>
     <state></state>
     <postalCode></postalCode>
     <phone></phone>
     <business></business>
     <status></status>
     <pagetag></pagetag>
  </contact>
</contacts>

XML format to subscribe to a list.

<subscriptions>
		<subscription>
			<contactId></contactId>
			<listId></listId>
			<status></status>
		</subscription>
	</subscriptions>

Hope, this piece of information is useful for you. Please get in touch with us if any queries.

Post your comments / questions