---
title: "Update account by ID"
method: PUT
path: "/accounts/{id}"
tags: ["Accounts"]
---

# Update account by ID

`PUT /accounts/{id}`

Updates credit account details in PayCredit

## Path parameters

- `id` integer, required

## Headers

- `unique-request-id` string

## Request body

- UpdateAccountRequestDto
  - `status` string — Changes account status A Active C Closed D Deleted H Hold I Inactive L Over Limit M Matured P Over Paid Q Delinquency R Arrears T Dept_Collection W Written Off
  - `balance_limit` number — Updates credit limit with new value
  - `account_reference` string — Updates client account reference
  - `repayment_type_id` string — C - Calculated minimum, F - Fixed amount, H - Higher of product minimum or calculated, O - Outstanding balance
  - `repayment_method_id` string — C - Debit card, D - Direct debit, M - Manual
  - `statement_cycle_parameter` integer — Overrides statement cycle parameter of the linked product. It can be 1 - 28 for monthly and bi-monthly statement cycle types, 1 - 7 for weekly and bi-weekly statement cycle types, 1 - 250 for fixed number of days statement cycle type
  - `repayment_fixed_amount` number
  - `delinquency_config_id` integer

## Response `200`

Account successfully updated

- AccountResponseDto
  - `account` AccountData
    - `id` integer — Account ID
    - `account_reference` string — Client account reference if provided
    - `customer_id` integer — Customer ID
    - `status` string — Account status: A - Active C - Closed D - Deleted H - Hold I - Inactive L - Over Limit M - Matured P - Over Paid Q - Delinquency R - Arrears T - Dept_Collection W - Written Off
    - `product_id` integer — Credit product identifier
    - `balance_settled` number — Balance for settled transactions only
    - `balance_authorised` number — Balance authorised including settled and pending transactions
    - `balance_used_for_instalments` number — Balance used for instalments
    - `balance_limit` number — Credit limit of the account
    - `date_created` string — Date the account was created
    - `date_closed` string — Date closed, if the account has been closed
    - `statement_cycle_parameter` integer — Statement Day for the account if no account specific statement_cycle_parameter isincluded at time of account creation.
    - `pending_statement_id` integer — Statement ID of the current billing cycle
    - `last_released_statement_id` integer — Statement ID of the last completed billing cycle
    - `repayment_fixed_amount` number — Fixed repayment amount, if configured for the account
    - `pending_statement_start_date` string — Start date of the current billing cycle
    - `pending_statement_end_date` string — End date of the current billing cycle
    - `next_statement_id` integer — Statement ID of the next billing cycle
    - `repayment_status` string — The repayment status of the last released statement: A - In arrears D - Repayment due E - Overpaid F - Repaid in full L - Late payment O - Overdue R - Repaid minimum S - Statemented amount repaid
    - `repayment_overdue` number — Amount overdue for the last released statement
    - `repayment_type_id` string — Repayment amount configuration, defines repayment_minimum_actual_due: C = Calculated minimum H = Higher of product minimum or calculated O = Outstanding balance F = Fixed amount
    - `statements_update_date` string — The date of the last account and statement update. Processing would have been for the previous day.
    - `outstanding_principal` number — The total of outstanding debt, excluding fees and posted interest
    - `outstanding_interest` number — Total outstanding posted interest
    - `calculated_interest` number — The total accrued interest not yet posted to the account.
  - `response_status` StatusDto
    - `status_code` string
    - `status_message` string

## Other responses

- `400` — Invalid Account Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Server Error

---

[API](https://skmtc.net/paymentology/apis/payapi-docs.md) · [All operations](https://skmtc.net/paymentology/apis/payapi-docs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/paymentology/payapi-docs/revisions/a675891b0365/schema)
