API Search endpoints…⌘K Get API credentialsGet access

Approve a draft invoice

POST/lokta-lms/api/v1/draft-invoices/{id}/approval

Approves 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

Path parameters

idpath · string · required

Header parameters

Idempotency-Keyheader · string · optional

Per-intent key

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