Skip to main content
POST
/
account-service
/
v2
/
accounts
/
{id}
/
status
Change account status
curl --request POST \
  --url https://api.pgw-sandbox.finventi.com/account-service/v2/accounts/{id}/status \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": "CLOSED"
}
'
{
  "id": 1,
  "clientAccountId": "acc_001",
  "iban": "LT121000011111111111",
  "accountType": "PRIVATE",
  "accountHolderName": "Jane Doe",
  "status": "OPEN",
  "createdAt": "2025-09-10T13:43:40.758Z",
  "updatedAt": "2025-09-10T13:55:40.758Z",
  "ibanMetadata": {
    "countryCode": "LT",
    "bankCode": "70440",
    "accountCode": "1869"
  },
  "accountHolderNameAliases": [
    "HGRP"
  ],
  "organisationIdentification": {
    "lei": "3423455234Y45D34",
    "bic": "DEUTDEFFXXX",
    "other": {
      "identification": "123-AS-323",
      "schemeNameCode": "BANK",
      "schemeNameProprietary": "LocalRegistry",
      "issuer": "ChamberOfCommerce"
    }
  }
}

Overview

Toggle status of an existing account between OPEN and CLOSED.

Path Parameters

id
integer<int64>
required

ID

Body

application/json

Request to change account status

status
enum<string>
required

New account status (OPEN or CLOSED)

Available options:
OPEN,
CLOSED
Example:

"CLOSED"

Response

Account status changed successfully

Account information response

id
integer<int64>
required

Internal account identifier

Example:

1

clientAccountId
string
required

Client's internal account ID

Example:

"acc_001"

iban
string
required

International Bank Account Number

Example:

"LT121000011111111111"

accountType
enum<string>
required

Type of account

Available options:
PRIVATE,
LEGAL
Example:

"PRIVATE"

accountHolderName
string
required

Name of the account holder

Example:

"Jane Doe"

status
enum<string>
required

Account status

Available options:
OPEN,
CLOSED
Example:

"OPEN"

createdAt
string
required

Account creation timestamp

Example:

"2025-09-10T13:43:40.758Z"

updatedAt
string
required

Last update timestamp

Example:

"2025-09-10T13:55:40.758Z"

ibanMetadata
object

International Bank Account Generation Metadata

accountHolderNameAliases
string[] | null

Optional alternative names or identifiers to improve matching (e.g., acronyms, short forms like "IBM" for "International Business Machines")

Example:
["HGRP"]
organisationIdentification
object

Organisation identification details (for LEGAL accounts)