curl --location 'https://api.opensylo.com/webhooks/outbound/loan.approved' \
--header 'X-OpenSylo-Signature: sha256=f1e2d3c4b5a6f7e8d9c0b1a2f3e4d5c6b7a8f9e0d1c2b3a4f5e6d7c8b9a0f1e2' \
--header 'X-OpenSylo-Timestamp: 1712495400' \
--header 'X-OpenSylo-Event-Id: evt_oa_20260407_001' \
--header 'Content-Type: application/json' \
--data '{
"event": "loan.approved",
"event_id": "evt_oa_20260407_001",
"timestamp": "2026-04-07T09:00:00.000Z",
"loan": {
"id": "loan_f1e2d3c4-b5a6-7890-1234-567890abcdef",
"reference": "OSL-2026-00142",
"status": "approved"
},
"merchant": {
"opensylo_id": "mch_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"marketplace_id": "PLT_MERCH_001"
},
"lender": {
"id": "lnd_abc123",
"name": "Sterling MFB"
},
"terms": {
"principal_amount": 1500000,
"interest_rate": 15,
"tenor_days": 180,
"total_repayment": 1725000,
"currency": "NGN"
},
"repayment": {
"method": "sales_deduction",
"deduction_percentage": 10,
"minimum_deduction": 500,
"start_date": "2026-04-10",
"due_date": "2026-09-15"
},
"schedule": [
{
"installment": 1,
"due_date": "2026-05-10",
"amount": 287500,
"status": "pending"
},
{
"installment": 2,
"due_date": "2026-06-10",
"amount": 287500,
"status": "pending"
}
]
}'