Docs
commission.created
A commission is recorded: a referred customer paid, a signup rule paid, a prorated part came due, or one was added by hand or through the API.
A commission is recorded: a referred customer paid, a signup rule paid, a prorated part came due, or one was added by hand or through the API. It starts pending until its hold passes.
Every event is POSTed as JSON to each endpoint subscribed to it, signed with the endpoint’s secret. See Webhooks for verifying the signature and for retries.
Example
{
"created": 1793600000000,
"data": {
"amount": 1470,
"approve_after": 1796192000000,
"created_at": 1793600000000,
"currency": "usd",
"id": "com_1c6d8e52",
"kind": "sale",
"object": "commission",
"partner_id": "aff_3f9c2e81",
"referral_id": "ref_7d1a40b2",
"revenue": 4900,
"source_id": "in_1QxNorthWind",
"status": "pending"
},
"id": "evt_8f3b2c1d9e4a4b6f8c2d1e0a9b8c7d6e",
"program_id": "prg_northwind",
"type": "commission.created"
}
Money is in minor units (4900 is $49.00) and times are milliseconds since the Unix epoch. Use id to skip an event you already handled: an event can arrive more than once, and out of order.