Skip to main content

purchase.created

Published when a contact successfully completes a purchase via a referral link.

Event type: in.org.quicko.cliq.purchase.created

Event Schema

FieldTypeDescription
idstring (uuid)Unique event ID
timestring (ISO 8601)Time the event occurred
specversionstringCloudEvents spec version
datacontenttypestringapplication/json
program_idstring (uuid)Program the purchase belongs to
promoter_idstring (uuid)Promoter who owns the referral link
sourcestringOriginating endpoint
typestringEvent type identifier
dataobjectEvent data (see below)
subjectstring (uuid)Purchase ID

data

FieldTypeDescription
@entitystringin.org.quicko.cliq.purchase
trigger_typestringpurchase
purchase_idstring (uuid)ID of the purchase
contact_idstring (uuid)ID of the contact who made the purchase
promoter_idstring (uuid)Promoter who owns the referral link
link_idstring (uuid)Referral link used for the purchase
item_idstringIdentifier of the purchased item
amountnumberPurchase amount
created_atstring (ISO 8601)Purchase creation timestamp
updated_atstring (ISO 8601)Purchase last updated timestamp
utm_paramsobjectUTM tracking parameters (optional)

utm_params

FieldTypeDescription
utm_idstringUTM ID
utm_sourcestringUTM source (e.g. instagram)
utm_mediumstringUTM medium (e.g. social)
utm_campaignstringUTM campaign name
utm_termstringUTM term
utm_contentstringUTM content

Example Payload

{
"id": "fbae5207-0cc7-4a42-8dd3-b58aa6a44f8c",
"time": "2026-04-06T06:23:54.991Z",
"specversion": "1.0",
"datacontenttype": "application/json",
"program_id": "930433e7-591c-4dda-a300-d3bfe17bd03d",
"promoter_id": "c06d4f0f-ccfb-4d6e-8bed-eea28460b698",
"source": "urn:POST:/purchases",
"type": "in.org.quicko.cliq.purchase.created",
"data": {
"@entity": "in.org.quicko.cliq.purchase",
"trigger_type": "purchase",
"purchase_id": "9aafd54c-03f5-40c0-8dba-df50e974e731",
"contact_id": "6a3e05ae-a0c1-4d09-9d8c-112929601246",
"promoter_id": "c06d4f0f-ccfb-4d6e-8bed-eea28460b698",
"link_id": "92f75eee-ecc8-47c4-87d9-dea983114fef",
"item_id": "item1",
"amount": 420,
"created_at": "2026-04-06T06:23:54.793Z",
"updated_at": "2026-04-06T06:23:54.793Z",
"utm_params": {
"utm_id": "email_apr_newsletter",
"utm_source": "newsletter",
"utm_medium": "email",
"utm_campaign": "product_update_april",
"utm_term": "existing_users",
"utm_content": "cta_button_top"
}
},
"subject": "9aafd54c-03f5-40c0-8dba-df50e974e731"
}