survey


Click here for a complete list of operations.

returnSurveyApplications

This method is used to return a a list of survey applications.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /survey.asmx HTTP/1.1
Host: api.peoplevine.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://api.peoplevine.com/survey.asmx/returnSurveyApplications"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <returnSurveyApplications xmlns="https://api.peoplevine.com/survey.asmx">
      <auth>
        <api_username>string</api_username>
        <api_password>string</api_password>
        <api_key>string</api_key>
        <company_no>double</company_no>
        <username>string</username>
        <password>string</password>
        <referenceTypes>
          <referenceType>
            <reference_type>string</reference_type>
            <reference_no>double</reference_no>
          </referenceType>
          <referenceType>
            <reference_type>string</reference_type>
            <reference_no>double</reference_no>
          </referenceType>
        </referenceTypes>
        <timezone_id>string</timezone_id>
        <locale>
          <currency>string</currency>
          <language>string</language>
          <country>string</country>
        </locale>
        <business_no>double</business_no>
        <customer_no>double</customer_no>
        <auth_method>string</auth_method>
        <timezone_offset>double</timezone_offset>
        <auth_type>string</auth_type>
        <system_name>string</system_name>
        <system_company_no>double</system_company_no>
        <ip_address>string</ip_address>
        <session_id>string</session_id>
        <device_type>string</device_type>
        <referrer>string</referrer>
        <user_info>string</user_info>
      </auth>
      <fields>
        <mobile_number>string</mobile_number>
        <customer_reference>string</customer_reference>
        <email>string</email>
        <invoiceOnFailure>boolean</invoiceOnFailure>
        <chargeDues>boolean</chargeDues>
        <membership_id>string</membership_id>
        <subscription_rate>double</subscription_rate>
        <payment_type>string</payment_type>
        <subscription_frequency>string</subscription_frequency>
        <autoSetup>boolean</autoSetup>
        <initiation_fee>double</initiation_fee>
        <chargeFees>boolean</chargeFees>
        <next_date>dateTime</next_date>
        <application_fee>double</application_fee>
        <transaction_no>double</transaction_no>
        <reference_title>string</reference_title>
        <reference_type>string</reference_type>
        <reference_no>double</reference_no>
        <survey_group_name>string</survey_group_name>
        <business_no>double</business_no>
        <card_no>double</card_no>
        <survey_application_no>double</survey_application_no>
        <survey_group_no>double</survey_group_no>
        <response_id>string</response_id>
        <account_user_no>double</account_user_no>
        <user_no>double</user_no>
        <affiliate_no>double</affiliate_no>
        <customer_no>double</customer_no>
        <company_no>double</company_no>
        <created_on>dateTime</created_on>
        <application_number>string</application_number>
        <expiration_date>dateTime</expiration_date>
        <application_notes>string</application_notes>
        <application_status>string</application_status>
        <customer>
          <lastVisit>dateTime</lastVisit>
          <totalVisits>double</totalVisits>
          <totalSpent>double</totalSpent>
          <isMember>boolean</isMember>
          <wasMember>boolean</wasMember>
          <hasApplied>boolean</hasApplied>
          <when_applied>dateTime</when_applied>
          <social>
            <linkedIn>string</linkedIn>
            <twitter>string</twitter>
            <facebook>string</facebook>
            <instagram>string</instagram>
            <tiktok>string</tiktok>
          </social>
          <mobile_number_cc>string</mobile_number_cc>
          <phone_number_cc>string</phone_number_cc>
          <member_since>dateTime</member_since>
          <middle_name>string</middle_name>
          <membership_sku>string</membership_sku>
          <card_status>string</card_status>
          <membership_title>string</membership_title>
          <member_discount>double</member_discount>
          <points>double</points>
          <tag>string</tag>
          <cc_email>string</cc_email>
          <customer_source>string</customer_source>
          <username>string</username>
          <gender>string</gender>
          <company_title>string</company_title>
          <anniversary_date>dateTime</anniversary_date>
          <affiliate_no>double</affiliate_no>
          <membership_id>string</membership_id>
          <password>string</password>
          <passbook_enabled>string</passbook_enabled>
          <birthdate>dateTime</birthdate>
          <enableHouseAccount>boolean</enableHouseAccount>
          <opt_in_email>boolean</opt_in_email>
          <opt_in_sms>boolean</opt_in_sms>
          <customer_no>double</customer_no>
          <first_name>string</first_name>
          <last_name>string</last_name>
          <address>string</address>
          <address2>string</address2>
          <address3>string</address3>
          <city>string</city>
          <state>string</state>
          <zip_code>string</zip_code>
          <country>string</country>
          <company_name>string</company_name>
          <mobile_number>string</mobile_number>
          <phone_number>string</phone_number>
          <email>string</email>
          <latitude>string</latitude>
          <longitude>string</longitude>
          <profile_photo>string</profile_photo>
          <customer_reference>string</customer_reference>
        </customer>
      </fields>
    </returnSurveyApplications>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <returnSurveyApplicationsResponse xmlns="https://api.peoplevine.com/survey.asmx">
      <returnSurveyApplicationsResult />
    </returnSurveyApplicationsResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /survey.asmx HTTP/1.1
Host: api.peoplevine.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <returnSurveyApplications xmlns="https://api.peoplevine.com/survey.asmx">
      <auth>
        <api_username>string</api_username>
        <api_password>string</api_password>
        <api_key>string</api_key>
        <company_no>double</company_no>
        <username>string</username>
        <password>string</password>
        <referenceTypes>
          <referenceType>
            <reference_type>string</reference_type>
            <reference_no>double</reference_no>
          </referenceType>
          <referenceType>
            <reference_type>string</reference_type>
            <reference_no>double</reference_no>
          </referenceType>
        </referenceTypes>
        <timezone_id>string</timezone_id>
        <locale>
          <currency>string</currency>
          <language>string</language>
          <country>string</country>
        </locale>
        <business_no>double</business_no>
        <customer_no>double</customer_no>
        <auth_method>string</auth_method>
        <timezone_offset>double</timezone_offset>
        <auth_type>string</auth_type>
        <system_name>string</system_name>
        <system_company_no>double</system_company_no>
        <ip_address>string</ip_address>
        <session_id>string</session_id>
        <device_type>string</device_type>
        <referrer>string</referrer>
        <user_info>string</user_info>
      </auth>
      <fields>
        <mobile_number>string</mobile_number>
        <customer_reference>string</customer_reference>
        <email>string</email>
        <invoiceOnFailure>boolean</invoiceOnFailure>
        <chargeDues>boolean</chargeDues>
        <membership_id>string</membership_id>
        <subscription_rate>double</subscription_rate>
        <payment_type>string</payment_type>
        <subscription_frequency>string</subscription_frequency>
        <autoSetup>boolean</autoSetup>
        <initiation_fee>double</initiation_fee>
        <chargeFees>boolean</chargeFees>
        <next_date>dateTime</next_date>
        <application_fee>double</application_fee>
        <transaction_no>double</transaction_no>
        <reference_title>string</reference_title>
        <reference_type>string</reference_type>
        <reference_no>double</reference_no>
        <survey_group_name>string</survey_group_name>
        <business_no>double</business_no>
        <card_no>double</card_no>
        <survey_application_no>double</survey_application_no>
        <survey_group_no>double</survey_group_no>
        <response_id>string</response_id>
        <account_user_no>double</account_user_no>
        <user_no>double</user_no>
        <affiliate_no>double</affiliate_no>
        <customer_no>double</customer_no>
        <company_no>double</company_no>
        <created_on>dateTime</created_on>
        <application_number>string</application_number>
        <expiration_date>dateTime</expiration_date>
        <application_notes>string</application_notes>
        <application_status>string</application_status>
        <customer>
          <lastVisit>dateTime</lastVisit>
          <totalVisits>double</totalVisits>
          <totalSpent>double</totalSpent>
          <isMember>boolean</isMember>
          <wasMember>boolean</wasMember>
          <hasApplied>boolean</hasApplied>
          <when_applied>dateTime</when_applied>
          <social>
            <linkedIn>string</linkedIn>
            <twitter>string</twitter>
            <facebook>string</facebook>
            <instagram>string</instagram>
            <tiktok>string</tiktok>
          </social>
          <mobile_number_cc>string</mobile_number_cc>
          <phone_number_cc>string</phone_number_cc>
          <member_since>dateTime</member_since>
          <middle_name>string</middle_name>
          <membership_sku>string</membership_sku>
          <card_status>string</card_status>
          <membership_title>string</membership_title>
          <member_discount>double</member_discount>
          <points>double</points>
          <tag>string</tag>
          <cc_email>string</cc_email>
          <customer_source>string</customer_source>
          <username>string</username>
          <gender>string</gender>
          <company_title>string</company_title>
          <anniversary_date>dateTime</anniversary_date>
          <affiliate_no>double</affiliate_no>
          <membership_id>string</membership_id>
          <password>string</password>
          <passbook_enabled>string</passbook_enabled>
          <birthdate>dateTime</birthdate>
          <enableHouseAccount>boolean</enableHouseAccount>
          <opt_in_email>boolean</opt_in_email>
          <opt_in_sms>boolean</opt_in_sms>
          <customer_no>double</customer_no>
          <first_name>string</first_name>
          <last_name>string</last_name>
          <address>string</address>
          <address2>string</address2>
          <address3>string</address3>
          <city>string</city>
          <state>string</state>
          <zip_code>string</zip_code>
          <country>string</country>
          <company_name>string</company_name>
          <mobile_number>string</mobile_number>
          <phone_number>string</phone_number>
          <email>string</email>
          <latitude>string</latitude>
          <longitude>string</longitude>
          <profile_photo>string</profile_photo>
          <customer_reference>string</customer_reference>
        </customer>
      </fields>
    </returnSurveyApplications>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <returnSurveyApplicationsResponse xmlns="https://api.peoplevine.com/survey.asmx">
      <returnSurveyApplicationsResult />
    </returnSurveyApplicationsResponse>
  </soap12:Body>
</soap12:Envelope>