Account Structure Service REST Endpoints

Account Services/Account Structure Service
This service is used to create Virtual Account Structure. Through this service, Virtual accounts can be mapped to a real account and the structure can be linked to various virtual accounts as per the customer requirement.
Adds a new accountstructures
Method: post
Path: /service/accountstructures
Close the AccountStructure by given Natural Key
Method: patch
Path: /service/accountstructures/{virtualMainAcc}/close
Fetches the list of linked child account's Number by given Virtual Account Number
Method: get
Path: /service/accountstructures/linkedChildAccounts/{virtualAccountNo}
Get all valid accountstructures
Method: get
Path: /service/accountstructures
Get all valid accountstructures by customer
Method: get
Path: /service/accountstructures/getByCustomer
Linking or Delinking a virtualAccount in the existing Account Strcuture. Linking and Delinking can be done at the Leaf Node.
Method: put
Path: /service/accountstructures/modifystructure
Retrieves the accountstructures by ID
Method: get
Path: /service/accountstructures/download
Retrieves the accountstructures by virtualMainAcc with account balances
Method: get
Path: /service/accountstructures/{virtualMainAcc}/withAccountBalance
Retrieves the accountstructures by virtualMainAcc with account balances and child count
Method: get
Path: /service/accountstructures/{virtualMainAcc}/viewaccountstructure
returns all VA that is part of the given customer and structure code
Method: get
Path: /service/accountstructures/viewvainstructure
Update an existing account structures
Method: put
Path: /service/accountstructures/{virtualMainAcc}