Approve a draft invoice
/lokta-lms/api/v1/draft-invoices/{id}/approvalApproves a draft invoice, which creates the invoice and gives it an invoice number.
Mints the gap-free GST invoice number, creates the invoice already approved (GST from the partner's treatment at approval), links it to the draft and marks the accruals invoiced. Refused with 409 sourcing/draft_already_decided once decided, and with 422 sourcing/checker_is_maker when the caller produced the draft (never for a batch draft). Requires an Idempotency-Key.
When to use it
Approve a draft once you have checked its evidence. Approval creates the invoice.
Worth knowing
- The person who produced a draft cannot approve it: 422 sourcing/checker_is_maker. A draft produced by the monthly batch is never refused for this.
- A draft that was already decided returns 409 sourcing/draft_already_decided.
- Send an Idempotency-Key header.
Path parameters
idpath · string · requiredHeader parameters
Idempotency-Keyheader · string · optionalPer-intent key
Responses
defaultdefault responseEvery 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