Documentation
Earnings & Transactions API
Manage earnings and transaction history.
Endpoints
GET
/business/earnings/overviewGet earnings summary and statistics
curl https://api.insurlink.com/v1/business/earnings/overview \
-H "Authorization: Bearer YOUR_API_KEY"bash
GET
/business/earnings/transactionsGet all earnings transactions
curl https://api.insurlink.com/v1/business/earnings/transactions \
-H "Authorization: Bearer YOUR_API_KEY"bash
POST
/business/earnings/withdrawRequest a withdrawal of earnings
curl -X POST https://api.insurlink.com/v1/business/earnings/withdraw \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 200000,
"bankAccountId": "bank-123"
}'bash
GET
/business/earnings/withdrawalsGet withdrawal transaction history
curl https://api.insurlink.com/v1/business/earnings/withdrawals \
-H "Authorization: Bearer YOUR_API_KEY"bash