# updateSupplierAccount

## Overview

Updates account name/currency/default expense account and adds, patches or removes address/bank usages. An omitted header field is unchanged; blank currency or default expense account clears it, while a blank account name is rejected. The default expense account must be an active EXPENSE account in the supplier account's company and is used to prefill non-PO supplier invoices. The command validates ownership and purposes and switches defaults atomically per purpose.

## Modules Commands Used

- [business-partner] UpdateSupplierAccount

## Exception Handling

| Error Code | Description |
| --- | --- |
| UNAUTHENTICATED | Authentication is required |
| INSUFFICIENT_PERMISSION | The user lacks the required module permission |
| Domain validation errors | The module's validation message is returned; failed transactions roll back |
