Skip to main content

Payload format

The request body is a single JSON object with the following fields:
string
required
Event name that indicates what happened.
string
required
ISO-8601 timestamp of the underlying record update.
integer
required
Internal ID of the campaign-creator association record.
integer
required
Campaign ID.
integer
required
Organization ID.
integer
required
Creator’s user ID.
string
required
The raw status value on the record (e.g., active, removed, left).
string
Campaign name, when available.
string
Brand slug, when available.
string
Creator email, when available.
string
Creator name, when available.
string
Default affiliate tag for the creator on this campaign, when available. For code_updated, this is the new code.
string
Present on campaign_affiliate.code_updated only. The affiliate code before the change.
string
Stable key for deduplicating redelivered events (delivery is at-least-once).
object
Present when the creator was submitted through the campaign applications API. Echoes the marketing attribution you sent with the applicant — fbp, fbc, fbclid, event_id, event_source_url, UTM parameters, your external_id, and TikTok enrichment — so you can match the creator in your ad platform (for example, forwarding to Meta Conversions API).
Optional fields are omitted when values are not present. For status events, occurred_at uses the campaign affiliation record’s updated_at timestamp. For code_updated, it is the time the code change was committed.

Sale events

affiliate_sale.created fires when a sale is attributed to one of your creators (Shopify, website/API conversions, and app sales). On top of the shared fields above (campaign_name, organization_slug, user_email, user_name, tag, attribution), the payload carries:
integer
required
Growi’s id for the sale.
string
required
The external order id (e.g. the Shopify order).
integer
required
Order total in cents.
integer
Order subtotal in cents.
integer
The creator’s commission in cents.
string
required
ISO currency code (lowercase, e.g. usd).
string
required
shopify, website, ios, or android.
string
one_time or subscription.
string
initial for the customer’s first attributed sale, recurring for later purchases.
string
Payout status of the sale (e.g. unpaid).