API Search endpoints…⌘K Get API credentialsGet access

Retrieve one invoice, with its lines

GET/lokta-lms/api/v1/invoices/{id}

Returns one partner invoice with its lines.

gst_treatment and gst_rate_pct are snapshotted onto the document. A partner who registers for GST next month must not retrospectively change the tax on an invoice already issued; the rate that applied is a fact about this document, not about the partner today. Do not re-derive tax from the partner's current details.

Under reverse charge, gst_rate_pct is null and gst_amount is "0.00": the recipient bears the tax, so the invoice carries none. That is different from a zero rate, and rendering it as "GST 0%" would state something false.

Lines are grouped by fee line, not by loan; "Sourcing fee · 26,250", not a thousand loan-level rows. Every loan-level figure survives in /fee-runs/{id}/accruals, so the summary can always be opened up: the invoice is the statement, the accruals are the evidence.

invoice_number is gap-free within its financial year and is kept on cancellation; GST requires a consecutive series, so a cancelled number stays spent rather than being reissued to a different document.

Path parameters

idpath · string · required

Opaque invoice id, spi_…

Responses

defaultdefault response

Every request authenticates with HTTP Basic and carries a Tenant-Identifier header. See the conventions for dates, commands, pagination and errors. Open this operation in the interactive explorer, or read it as Markdown.

This is the API reference for Lokta, the agentic loan servicing platform. Go to lokta.ai