Define a SplitConfig once, then reference it by ID at checkout. Coal distributes funds to each recipient at settlement.
Split preview
How it works
Create once, reference by ID
// 1. Create split config
POST /api/console/splits
{
name: "Creator Split",
recipients: [
{ address: "0x...", percent: 80 },
{ address: "0x...", percent: 20 }
]
}
// 2. Reference at checkout
POST /api/checkouts
{
amount: 100,
productName: "Course",
splitConfigId: "cm9x4k..."
}
// Coal distributes on settlement