# Partner Invoicing

Partner fee runs, draft invoices and invoices: generate, approve, pay and reverse.

A fee run computes what each partner earned in a period and produces draft invoices. Approving a draft creates the invoice, and a payment is recorded once the money has moved.

## Most used

- [Run fees for a period and produce draft invoices](https://developer.lokta.ai/api/partner-invoicing/compute.md): POST `/v1/fee-runs`
- [Approve a draft invoice](https://developer.lokta.ai/api/partner-invoicing/approve.md): POST `/v1/draft-invoices/{id}/approval`
- [Record a payment](https://developer.lokta.ai/api/partner-invoicing/record-payment.md): POST `/v1/invoices/{id}/payments`
- [List invoices](https://developer.lokta.ai/api/partner-invoicing/list-invoices.md): GET `/v1/invoices`

## All operations

- [List draft invoices](https://developer.lokta.ai/api/partner-invoicing/list.md): GET `/v1/draft-invoices`
- [Retrieve one draft invoice, with its lines](https://developer.lokta.ai/api/partner-invoicing/retrieve-draft-invoices.md): GET `/v1/draft-invoices/{id}`
- [Approve a draft invoice](https://developer.lokta.ai/api/partner-invoicing/approve.md): POST `/v1/draft-invoices/{id}/approval`
- [The loan-level evidence behind a draft](https://developer.lokta.ai/api/partner-invoicing/evidence.md): GET `/v1/draft-invoices/{id}/evidence`
- [Reject a draft invoice](https://developer.lokta.ai/api/partner-invoicing/reject.md): POST `/v1/draft-invoices/{id}/rejection`
- [List fee runs](https://developer.lokta.ai/api/partner-invoicing/list-fee-runs.md): GET `/v1/fee-runs`
- [Run fees for a period and produce draft invoices](https://developer.lokta.ai/api/partner-invoicing/compute.md): POST `/v1/fee-runs`
- [Retrieve one fee run](https://developer.lokta.ai/api/partner-invoicing/retrieve-fee-runs.md): GET `/v1/fee-runs/{id}`
- [List the accruals a fee run produced](https://developer.lokta.ai/api/partner-invoicing/accruals.md): GET `/v1/fee-runs/{id}/accruals`
- [List invoices](https://developer.lokta.ai/api/partner-invoicing/list-invoices.md): GET `/v1/invoices`
- [Retrieve one invoice, with its lines](https://developer.lokta.ai/api/partner-invoicing/retrieve-invoices.md): GET `/v1/invoices/{id}`
- [Cancel an invoice](https://developer.lokta.ai/api/partner-invoicing/cancel.md): POST `/v1/invoices/{id}/cancellation`
- [List the payments recorded against an invoice](https://developer.lokta.ai/api/partner-invoicing/payments.md): GET `/v1/invoices/{id}/payments`
- [Record a payment](https://developer.lokta.ai/api/partner-invoicing/record-payment.md): POST `/v1/invoices/{id}/payments`
- [Reverse a recorded payment](https://developer.lokta.ai/api/partner-invoicing/reverse-payment.md): POST `/v1/invoices/{invoiceId}/payments/{paymentId}/reversal`
