PureSpectrum
PureSpectrum websiteHelp center
PureSpectrum websiteHelp center
    • Intro
    • API Overview
    • Definitions
    • Survey Lifecycle
    • Create Your First Survey
    • Redirect URLs
    • Changelog
    • HTTP Status Codes
    • General Reference Codes
      • Survey Status Codes
      • Respondent Status Codes
      • Survey Category Codes
      • Age Unit Codes
      • Currency Codes
      • Survey Localization Codes
    • Guides
      • Getting Started
      • Create Survey Examples
      • Multi-Country Surveys
      • Children Age & Gender
      • Append Respondent Demographics to the Survey Entry Link
      • Test Survey Flow
      • Supplier Blends & Groups
      • Respondent Exclusion / Recontact
      • Survey Exclusion Group
      • Quotas on Clicks
      • Field Evenly Over Time (FEOT)
      • Quota Based Pricing (QBP)
      • Quota Level Complete (QLC)
      • Quota Throttling
      • Templates
      • Bypassing Automatic Variable Mapping
      • Research Defender's Predupe
      • Subscriber Emails
      • Real-Time Notifications (SNS)
    • API Reference
    • Schemas
      • Feasibility
        • Feasibility request schema
        • Feasibility response schema
      • Surveys
        • Create survey full request schema
        • Create survey minimum request schema
        • Create survey response schema
        • Update survey status request schema
        • Update survey status response schema
        • Get survey status response
      • Qualifications
        • Qualification Schema
        • Create qualification request schema
      • Quotas
        • Quota Schema
        • Create quota request schema
        • Create quota response schema
      • Attributes
        • Get attributes response
      • Supplier management
        • Supplier
        • List of all suppliers response
        • List of all suppliers per survey response
        • Update the list of suppliers for a Survey request
        • Update the list of suppliers for a Survey response
      • Other
        • Generic error response

    Redirect URLs

    Overview#

    Once having completed a survey, the respondents must be registered with PureSpectrum via a callback URL.
    When returning the respondent back to PureSpectrum, the redirect URL should contain the transaction_id & appropriate status st query parameters.
    Format:
    Staging:
    https://staging.spectrumsurveys.com/surveydone?st={STATUS_CODE}&transaction_id={TRANSACTION_ID}
    Production:
    https://spectrumsurveys.com/surveydone?st={STATUS_CODE}&transaction_id={TRANSACTION_ID}

    Definitions#

    transaction_id is the unique, per session transaction ID. A respondent can have multiple transactions, i.e. attempting to take the survey from different devices or at different times. This will be appended as a query parameter to the client's survey entry URL, when sending the respondent to the survey.
    For example http://yoursurvey.com/survey1 will become http://yoursurvey.com/survey1?transaction_id=123456.
    st is the status code for Complete, Term, Overquota, or other redirects, defined by the buyer's survey.
    Map transaction ID (UI only)
    If you need to receive transaction_id in a different form, you can map this variable to yours in the menu option for “Buyer Settings” under your buyer account.
    If you run multiple surveys on different platforms, you may check the boxes for additional transaction variables, just ensure that the presence of unknown variables is compatible with all active systems.

    Status Codes to be Used in the Redirect URL#

    TypeStatus code (st)Description
    Complete21Respondent completed the survey and registered as Complete
    Over quota17Number of required respondents has already been reached for that quota
    Termination18Respondent is not qualified for the survey
    Quality20Quality concern, e.g. Speeding, straight-lining, trap questions
    Buyer Security30Duplicate, respondent has already taken survey
    Buyer Hash Security31Respondent has tampered with the Buyer’s URL

    Examples#

    StatusRedirect URL
    Completeshttps://spectrumsurveys.com/surveydone?st=21&transaction_id={TRANSACTION_ID}
    Over Quotahttps://spectrumsurveys.com/surveydone?st=17&transaction_id={TRANSACTION_ID}
    Terminationhttps://spectrumsurveys.com/surveydone?st=18&transaction_id={TRANSACTION_ID}
    Qualityhttps://spectrumsurveys.com/surveydone?st=20&transaction_id={TRANSACTION_ID}
    Dedupehttps://spectrumsurveys.com/surveydone?st=30&transaction_id={TRANSACTION_ID}

    Qualtrics Example#

    StatusRedirect URL
    Completeshttps://spectrumsurveys.com/surveydone?st=21&transaction_id=${e://Field/transaction_id}
    Over Quotahttps://spectrumsurveys.com/surveydone?st=17&transaction_id=${e://Field/transaction_id}
    Terminationhttps://spectrumsurveys.com/surveydone?st=18&transaction_id=${e://Field/transaction_id}
    Qualityhttps://spectrumsurveys.com/surveydone?st=20&transaction_id=${e://Field/transaction_id}
    Dedupehttps://spectrumsurveys.com/surveydone?st=30&transaction_id=${e://Field/transaction_id}
    More information on Redirects can be found on the Finalize and Launch page.
    Modified at 2025-09-16 19:41:21
    Previous
    Create Your First Survey
    Next
    Changelog