Approval can come by hand or automatically after the approval delay. A refund through POST /v2/transactions/{id}/refund doesn’t fire it: you get transaction.updated, so refetch that transaction’s commissions.
Every webhook is delivered as JSON with the same envelope, commission.updated carries the commission in data:
string
The event name, commission.updated.
object
The commission this event is about.
Hide data
string
Unique id for the commission.
string | null
What the partner earns, in cents, serialized as a string, e.g. "980".
string | null
The sale amount the commission was calculated from, in cents, serialized as a string.
string | null
ISO currency code, e.g. usd.
string | null
Typically pending, approved, paid, rejected, or refunded.
string | null
How it was earned, e.g. sale.
string | null
Where the underlying sale came from, e.g. stripe.
string | null
The partner who earned it.
string | null
The transaction it was calculated from.
string | null
The customer whose payment triggered it.
string | null
The payout it was paid in, once paid.
string | null
The program it belongs to.
string
Your organization id.
string
ISO 8601 timestamp when the commission was created.
string
ISO 8601 timestamp when it was last updated.
string
ISO 8601 time the event was emitted.
Deliveries can carry more fields than listed here, and the example below is shortened, so ignore fields you don't use.