DataPass
Overview
This document describes how to use DataPass functionality for Full Funnel and Direct Click campaigns. DataPass enables publishers to transmit user data for form pre-population, facilitating seamless data transfer between systems and improving user experience through automated form completion.
DataPass Modes
There are two ways to pass data to us:
-
DataPassGet
- Requires an encryption key
- Uses a GET request to send data
-
DataPassPost (recommended)
- Does not require an encryption key
- Uses a POST request to send data
DataPassGet
Request
- Method: GET
- Url Parameters:
campaign_id(required)payload(required)
- Example:
https://form.quotewizard.com/?c={campaign_id}payload={encrypted_data}
Implementation Steps
-
Obtain Encryption Key
- Contact our account managers to receive your unique encryption key
- The key uses AES-128-ECB encryption algorithm
- This key is specific to your integration and should be kept secure
-
Prepare Your Data
- Format your data as a JSON string. Refer to the Schema section to see the required data structure.
-
Encrypt the Payload
- Use the provided secret key to encrypt your JSON payload using AES-128-ECB algorithm
-
URL Encode
- URL encode the encrypted payload to ensure safe transmission in the query string
-
Add to Query String
- Include the encoded payload in the query string as the
payloadparameter
- Include the encoded payload in the query string as the
Result
Router will decrypt the payload and use the data to pre-populate the destination form with the provided information.
DataPassPost
Request
- Method: POST
- Url Parameters:
campaign_id(required)datapassv2=true(required)
- Example Url:
https://form.quotewizard.com/?c={campaign_id}&datapassv2=true - Body: JSON payload with user data (refer to Schema section for structure)
Implementation Steps
DataPassPost is much simpler than DataPassGet - simply send a POST request and handle the response. No encryption key is required.
-
Prepare Your Data
- Format your data as a JSON object in the request body
- Refer to the Schema section to see the required data structure
-
Send POST Request
- Make a POST request to the router endpoint with
datapassv2=trueparameter - Include your campaign ID in the
cparameter - Send your JSON data in the request body
- Make a POST request to the router endpoint with
-
Handle Response
You will receive a JSON response containing a redirect URL to our funnel. You can do one of the following:- Automatic Redirect: Configure your request to follow 302 redirects automatically for immediate user redirection to the form with pre-populated data
- Manual Redirect: Use the returned
redirectUrlfrom the JSON response if you need to perform additional processing before directing users to the form
Response sample
{
"redirectUrl": "https://form.quotewizard.com/router/?c={campaign_id}&datapassv2=true&datapassv2id=lAcNZhResPtl740qWyEpxCPWqzXmxw8abcd1k"
}
Related Documentation
- Schema Requirements - Complete schema definitions and payload examples for all supported product types