# Guides

Walkthroughs for the jobs a lender does with the API, in the order you do them.

- [Quickstart: a borrower to a first repayment](https://developer.lokta.ai/guides/quickstart.md): Authenticate, create a client, apply for a loan, approve it, disburse it and record a repayment against the Lokta API.
- [Handle errors: what each status means and what to do](https://developer.lokta.ai/guides/handle-errors.md): What each Lokta API status code means, what to do about it, when a retry is safe, and the error codes the partner endpoints return.
- [Repayments, refunds and write-offs](https://developer.lokta.ai/guides/loan-transactions.md): Every money movement on a loan is a command on its transactions. See which commands exist, how to send them and how to undo one.
- [Set up your ledger and post a journal entry](https://developer.lokta.ai/guides/accounting-setup.md): Create ledger accounts, map financial activities to them and post a balanced journal entry with the Lokta API.
- [Close a period: accruals, provisioning and closure](https://developer.lokta.ai/guides/close-the-period.md): Run periodic accruals, generate provisioning entries and close accounting for a period with the Lokta API.
- [Onboard a sourcing partner](https://developer.lokta.ai/guides/onboard-sourcing-partner.md): Create a sourcing partner, add its agreement, activate it and attribute a loan to it with the Lokta API.
- [Run partner fees and record a payment](https://developer.lokta.ai/guides/partner-fees-and-invoices.md): Compute partner fees for a period, approve the draft invoice and record the payment with the Lokta API.
