---
title: "PATCH /loan/{loan_id}"
method: PATCH
path: "/loan/{loan_id}"
tags: ["Loan"]
---

# PATCH /loan/{loan_id}

`PATCH /loan/{loan_id}`

Updates a loan.
- When the loan is SUBMITTED or TO_VALIDATE, all the below fields can be updated.
- When the loan is VALIDATED or SCHEDULED, the references and to_repay_at fields can be updated.
- When the loan is TO_REPAY, only the to_repay_at change be changed. The earliest acceptable date being loan.earliest_to_repay_at.

This operation is not available when the loan is in another status.

## Path parameters

- `loan_id` string, required

## Request body

- APIPatchLoan
  - `amount` integer, nullable — Loan amount in cents. Maximum: 200,000 €.
  - `loan_to` AccountCreation
    - `account_holder` BusinessIdentifierRequired
      - `identifier` string, required
      - `identifier_type` 'belgium_registration_number' | 'bsn' | 'cif' | 'hr_nummer' | 'kvk' | 'name' | 'nif' | 'siren' | 'siret' | 'steuernummer' | 'vat_number', required
    - `account_number` string, required
    - `account_number_type` 'account_number' | 'iban' | 'internal_id'
    - `bank_identifier` string, nullable
    - `bank_identifier_type` 'bic' | 'name' | 'routing_number' | 'undefined'
    - `source` AccountSourceInformation
      - `datasource_unique_id` string, nullable
      - `id` string, required
      - `name` 'AXONAUT_DEFACTO_API' | 'BRIDGE' | 'CEFIN_DEFACTO_API' | 'FINAPI' | 'IRMA_DEFACTO_API' | 'LEANO_DEFACTO_API' | 'LIBEO_DEFACTO_API' | 'PENNYLANE_DEFACTO_API' | 'PENNYLANE_REDSHIFT' | 'QONTO' | 'STEMSCAPE_DEFACTO_API' | 'SUPER_DEFACTO_API', required
  - `loan_to_references` string[], nullable — References in the transfer of the loan payment, on the account receiving the money
  - `metadata` object, nullable
  - `repayment_method` 'DIRECT_DEBIT' | 'SCT' | 'null', nullable — Payment method that should be used to repay this loan. Possible values: ['DIRECT_DEBIT', 'SCT']
  - `repayment_to_references` string[] — References in the transfer of the loan repayment, on the account receiving the money
  - `to_pay_at` string, date-time, nullable — Loan disbursement estimated date
  - `to_repay_at` string, date-time, nullable — Loan reimbursement estimated date

## Response `200`

OK

---

[API](https://skmtc.net/getdefacto/apis/api-reference.md) · [All operations](https://skmtc.net/getdefacto/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getdefacto/api-reference/revisions/0a9c1f8784f2/schema)
