# Reject a draft invoice

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

Rejects a draft invoice, with a reason.

The draft keeps its tracking number and full basis; its accruals are reversed so the (loan, line, period) is uncovered again and the next run recomputes it from current terms. No invoice number is spent. It is refused in the same cases as an approval.

## Parameters
- `id` (path, string, required)
- `Idempotency-Key` (header, string): Per-intent key

## Request body (application/json)
- `reason` (string, required): Required.

## Responses
- `default`: default response

## Example request (cURL)
```bash
curl -X POST \
  'https://default.lokta.tech/lokta-lms/api/v1/draft-invoices/{id}/rejection' \
  -u '{username}:{password}' \
  -H 'Tenant-Identifier: default' \
  -H 'Content-Type: application/json' \
  -d '{
  "reason": "string"
}'
```

Interactive: https://developer.lokta.ai/reference#operation/reject
