ICON Developer Center

Guides and reference

Consent and TCPA

Show each result's consent statement as ICON gives it, and send the consumer's decision with the lead.

ICON records, for every lead, the consent statement the consumer saw and their decision. You show the statement; ICON keeps the record.

#What to show

Each result carries its statement in offer.tcpa_text. Show it next to the button that submits the lead, word for word. Do not shorten or rephrase it.

The statement may contain tokens:

TokenBecomesFilled by
{{BUTTON}}the label of the button the visitor clicksYou: replace it with your submit button's label, and send that label as consent_button_label.
{{PHONE}}the phone number they enteredICON, from the phone number on the lead.
{{OFFER NAME}}the school the offer sends the lead toICON, with the name of the school the result sends the lead to.
  • offer.needs_checkbox: true: show an unticked checkbox with the statement; the consumer must tick it. Otherwise clicking the button is the consent.
  • offer.consent_checkboxes: extra boxes an offer asks for (field, text, required, and optionally required_when / asked_when), e.g. a school's own "Allow text messages from …" opt-in. Show each unticked, with its text exactly. required: true: required for every program. required_when: { "program_ids": [...] }: required only when the chosen program is one of them. asked_when: { "program_ids": [...] }: show the box only for those programs (send nothing for it otherwise). Do not let the consumer submit to that offer until every box required for the chosen program is ticked; ICON refuses such a submit with CONSENT_REQUIRED naming the box's field. A box is never ticked on the consumer's behalf.

#What to send

FieldWhenValue
tracking.ip_addressRequired on every search and every direct post. A result submit uses the search's unless you send it.The consumer's own IP address: a real public IPv4 or IPv6 address, the one the consumer used on your page (not your server's). Private, shared and reserved addresses are refused.
tcpa_consentEvery submit, and on search when you collected consent before it.The boolean true when the consumer agreed.
consent_button_labelEvery submit whose statement had {{BUTTON}}.The label of your submit button (at most 80 characters).
additional_consentsWhen the result had consent_checkboxes.One entry per ticked box: {"field": "<field>", "text": "<text as shown>", "checked": true}.
xxTrustedFormCertUrl, xxTrustedFormToken, trusted_form_cert_urlWhen you use TrustedForm; required by an offer that requires TrustedForm.The full certificate URL, https://cert.trustedform.com/<id>.
universal_leadid, universalLeadId, jornaya_lead_idWhen you use Jornaya; required by an offer that requires Jornaya.The 36-character LeadiD token.

An offer can require a Jornaya LeadiD, a TrustedForm certificate, or both. Send them on every lead you have them for: a lead without a valid one is refused for such an offer before it is delivered (see below), and resending it with the token is the fix.

json
{
  "icon_result_id": "…",
  "tracking": {
    "ip_address": "203.0.113.9"
  },
  "tcpa_consent": true,
  "consent_button_label": "Request information",
  "additional_consents": [
    {
      "field": "sms_opt_in",
      "text": "Text me about my application.",
      "checked": true
    }
  ]
}

#The consumer's IP

ICON records the consumer's IP address in the consent record and on the lead. Your call comes from your server, so ICON takes the consumer's IP only from tracking.ip_address (ip is accepted too) and never treats the connection's address as the consumer's:

  • A valid consumer IP is recorded as the consumer's; your server's address is kept separately, for audit.
  • On a search or a direct post, a missing, private, shared or reserved address is not used: the call is still processed, but the lead and its consent record hold your server's address, marked as a server address. That is weaker consent evidence, so always send the consumer's.
  • A result submit uses the IP of its search, unless you send one.
  • The examples on this site use documentation addresses (203.0.113.x), which ICON refuses: send the real one.

Send the consent fields with every submit: each submit is checked on its own. A new phone number withdraws the consent given for the old one: collect consent again for the new number.

codereasonWhen
CONSENT_REQUIREDMissing TCPA consentThe offer needs consent and none was sent, or the statement shown does not cover the offer.
CONSENT_INVALIDInvalid TCPA consentThe consent sent cannot be matched to a statement ICON knows.
JORNAYA_MISSINGMissing Jornaya IDThe offer requires Jornaya and the lead has no valid LeadiD (36 characters).
TRUSTEDFORM_MISSINGMissing TrustedForm tokenThe offer requires TrustedForm and the lead has no valid certificate URL (https://cert.trustedform.com/…).

All four have status invalid: fix the request and submit again.

Generated 2026-11-09 from ICON's API definitions. Every page is also available as Markdown; the index is llms.txt.