Last Update: 2024-03-21

Form: Add participate

Request:

<?xml version="1.0" encoding="utf-8"?>
<formparticipate id="" source="">

  <!-- Salutation //-->
  <formitem id="">Herr</formitem>

  <!-- Textfield //-->
  <formitem id="">John</formitem>
  <formitem id="">Doe</formitem>
  <formitem id="">john.doe@eyepin.com</formitem>

  <!-- Textarea //-->
  <formitem id=""><![CDATA[...]]></formitem>

  <!-- RadioList //-->
  <formitem id="">
    <option id="">1</option>
  </formitem>

  <!-- CheckboxList //-->
  <formitem id="">
    <option id="">1</option>
    <option id=""><![CDATA[Other answer]]></option>
  </formitem>  
  
  <!-- Selectbox/Dropdown (single select) <select size="1" ...> //-->
    <formitem id="">
        <!-- same elements as for type="CheckboxList", but only one option //-->
    </formitem>
    
  <!-- Checkbox/Term //-->
  <formitem id="">1</formitem>
  <formitem id="">1</formitem>
  
  <!-- NewsletterSignIn //-->
    <formitem id="">
        <customer id="">
           <topic id="">1</topic> 
           <topic id="">1</topic>
           ...
        </customer>
      <customer id=""></customer>
        ...
    </formitem>
    
    <!-- Extra user data (optional to set address fields) //-->
    <address>
         <mobile><![CDATA[...]]></mobile>
         <fax><![CDATA[...]]></fax>
           ...
    </address>

</formparticipate>
Description of XML-Tags:
Element Format Mandatory Description
formparticipate
↳ @idintyesID of form
↳ @sourceEvent|Landingpage|Sweepstake|SurveyyesDetermines the type of form
↳ formitem
 ↳ @idyesID of formitem
 ↳ optionoption of the formitem
  ↳ @idyesID of the option
 ↳ customercustomer of the NewsletterSignIn
  ↳ @idyesID of the customer
  ↳ topicID of the topic
  ↳ @idyesID of the topic
↳ addressFor adding extra address information that does not exist in the form
 ↳ faxfax of the user
 ↳ mobilemobile number of the user

Response:

<?xml version="1.0"?>
<response>
    <code>2000</code>
    <description>
        <![CDATA[OK]]>
    </description>
    <data>
        On success the ID of the created form.
    </data>
</response>
Description of XML-Tags:
Element Format Description
data
Possible Response-Codes
Code Description
2000 OK
3011 Error: id missing
3013 Error: Parameter invalid
3015 Error: Form or Item not found
Für Rückfragen stehen wir Ihnen jederzeit gerne unter support@eyepin.com zur Verfügung.