API Search endpoints…⌘K Get API credentialsGet access

Correct an attribution

POST/lokta-lms/api/v1/loan-attributions/{id}/corrections

Moves a loan to a different partner, or back to Direct.

Move a loan to a different partner, or, with partner_id: null, back to Direct.

One verb for both, because they are one event: the loan's introducer changed. Two verbs would give one fact two audit trails, and the trail is the entire reason corrections are allowed at all.

reason is mandatory (422 sourcing/correction_reason_required). This changes who is paid for a loan, so a correction with no stated cause is indistinguishable from fraud when someone reads it back. A correction that leaves the attribution unchanged is refused rather than recorded; a reason logged against an event that never happened is worse than no record, because a later reader cannot tell it from a real change.

Path parameters

idpath · string · required

Opaque attribution id, spa_…

Header parameters

Idempotency-Keyheader · string · optional

Per-intent key

Request body application/json

reasonstring · required

Required. A correction with no stated cause is refused.

partner_idstring · optional

The partner the loan moves to. Null moves it back to Direct.

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