Skip to developer documentation
Browse developer documentation
API documentation / Browser tracking

Browser tracking

Record a checkout survey answer

The tracker transport for a post-checkout self-reported source answer.

POST/api/v1/poll

Access: Public · no authentication · Permission details

JSON request body

JSON request fields
FieldTypeDescription
siteIdRequiredstringWebsite ID.
sourceRequiredstringSurvey answer, stored up to 120 characters.
visitorIdstringVisitor whose latest transaction receives the answer; required unless txId is supplied.
txIdstringExternal transaction ID; used instead of visitorId when supplied.

Request examples

Examples run from your server or terminal. Configure ATTRIBOO_TOKEN privately for authenticated requests. Replace example website IDs and values with your own. The examples make real requests when you run them.

cURL request
curl -X POST "https://www.attriboo.com/api/v1/poll" \
  -H "Content-Type: application/json" \
  --data '{
  "siteId": "site_example",
  "visitorId": "v_example",
  "source": "A colleague"
}'

Response

Illustrative response. This endpoint returns raw JSON. Optional coverage, notes and continuation fields vary by report.

Response fields
FieldTypeDescription
okbooleanWhether the request succeeded.
matchedbooleanWhether a transaction was found.
JSON response
{
  "ok": true,
  "matched": true
}

Behavior and limits

Prefer the built-in post-checkout survey. Supply visitorId or txId. The answer is attached to the latest matching website transaction.

matched: false means no transaction was found; it does not create a sale. Self-reported source is separate from observed attribution credit.

HTTP statusMeaning
400Missing fields or answer could not be recorded.