How to Pass data to IContact

| | 1 min read

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 you have any queries.