mirror of
https://github.com/hanzoai/commerce.git
synced 2026-10-30 15:08:42 +00:00
Multi-tenant commerce and billing: orders, subscriptions, invoices, plans, usage metering and a credit ledger. One Go binary. MIT OR Apache-2.0. Claude-Session: https://claude.ai/code/session_01SAtaDFm8VDiWrhYHNNtxMw
109 lines
2.6 KiB
JSON
109 lines
2.6 KiB
JSON
{
|
|
"id": "hanzo-referral-v1",
|
|
"name": "Hanzo Referral Program",
|
|
"version": 2,
|
|
"active": true,
|
|
"tiers": [
|
|
{
|
|
"id": "starter",
|
|
"name": "Starter Affiliate",
|
|
"minReferrals": 0,
|
|
"maxReferrals": 9,
|
|
"rewards": {
|
|
"referrerCreditCents": 2000,
|
|
"refereeCreditCents": 2000,
|
|
"revenueSharePercent": 15,
|
|
"creditCurrency": "USD"
|
|
},
|
|
"limits": {
|
|
"maxTotalCreditsCents": 2000000,
|
|
"creditExpiryDays": 365
|
|
}
|
|
},
|
|
{
|
|
"id": "growth",
|
|
"name": "Growth Affiliate",
|
|
"minReferrals": 10,
|
|
"maxReferrals": 49,
|
|
"rewards": {
|
|
"referrerCreditCents": 3000,
|
|
"refereeCreditCents": 2000,
|
|
"revenueSharePercent": 15,
|
|
"creditCurrency": "USD"
|
|
},
|
|
"limits": {
|
|
"maxTotalCreditsCents": 5000000,
|
|
"creditExpiryDays": 365
|
|
}
|
|
},
|
|
{
|
|
"id": "pro",
|
|
"name": "Pro Partner",
|
|
"minReferrals": 50,
|
|
"maxReferrals": 199,
|
|
"rewards": {
|
|
"referrerCreditCents": 5000,
|
|
"refereeCreditCents": 2000,
|
|
"revenueSharePercent": 20,
|
|
"creditCurrency": "USD"
|
|
},
|
|
"limits": {
|
|
"maxTotalCreditsCents": 10000000,
|
|
"creditExpiryDays": 365
|
|
}
|
|
},
|
|
{
|
|
"id": "partner",
|
|
"name": "Strategic Partner",
|
|
"minReferrals": 200,
|
|
"maxReferrals": null,
|
|
"rewards": {
|
|
"referrerCreditCents": 10000,
|
|
"refereeCreditCents": 2000,
|
|
"revenueSharePercent": 25,
|
|
"creditCurrency": "USD"
|
|
},
|
|
"limits": {
|
|
"maxTotalCreditsCents": 50000000,
|
|
"creditExpiryDays": -1
|
|
}
|
|
}
|
|
],
|
|
"templateKickback": {
|
|
"baseCommissionPercent": 15,
|
|
"supportBonusPercent": 10,
|
|
"totalKickbackPercent": 25,
|
|
"poolStatus": "active",
|
|
"heldPoolEnabled": true,
|
|
"minPayoutCreditsCents": 1,
|
|
"minPayoutCashCents": 5000,
|
|
"payoutChannels": ["credits", "crypto", "stripe_connect"]
|
|
},
|
|
"ossContributors": {
|
|
"revenueSharePercent": 25,
|
|
"basePoolFraction": 0.25,
|
|
"componentWeights": {
|
|
"@hanzo/bot": 2.0,
|
|
"@hanzo/agents": 2.0,
|
|
"@hanzo/mcp": 1.5,
|
|
"@hanzo/gateway": 1.5,
|
|
"@hanzo/commerce": 1.5,
|
|
"@hanzo/tasks": 1.5,
|
|
"@hanzo/auto": 1.0,
|
|
"@hanzo/ui": 1.0,
|
|
"@hanzo/flow": 1.0,
|
|
"@hanzo/studio": 1.0,
|
|
"@hanzo/search": 1.0
|
|
},
|
|
"minPayoutCents": 100,
|
|
"payoutSchedule": "monthly"
|
|
},
|
|
"fraud": {
|
|
"requireEmailVerification": true,
|
|
"blockSelfReferral": true,
|
|
"cooldownDays": 7,
|
|
"maxReferralsPerDay": 50,
|
|
"blacklistSameIP": true
|
|
}
|
|
}
|