Accept a loan offer and receive funds
cURL
curl --request POST \ --url https://api.example.com/lending/borrow \ --header 'Content-Type: application/json' \ --data ' { "offerId": "<string>" } '
curl -X POST https://api.midasprotocol.org/lending/borrow \ -H "Authorization: Bearer pp_your_key" \ -H "Content-Type: application/json" \ -d '{ "offerId": "offer-uuid" }'
{ "id": "uuid", "borrowerId": "your-uuid", "lenderId": "lender-uuid", "amount": "100.00", "currency": "USDC", "interestRate": 5, "collateralAmount": "50.00", "dueAt": "2026-02-01T00:00:00.000Z", "status": "ACTIVE" }