# Update Account Endpoint: PUT /api/accounts/{account-id}/update.json Version: 2.0.0 Security: apiKeyAuth ## Path parameters: - `account-id` (integer, required) Example: 1 ## Query parameters: - `api_key` (string, required) Your API Key. Example: "YOUR_API_KEY" ## Request fields (application/json): - `account` (object, required) - `account.first_name` (string) Example: "My New Company Name" - `account.last_name` (string) Example: "My New Company Name" - `account.organization_name` (string, required) Example: "My New Company Name" - `account.phone` (string) Example: "210000000" - `account.email` (string, required) Example: "billing@company.com" - `account.password` (string, required) Example: "secret123" - `account.fiscal_id` (string) Cannot be changed Example: "500100200" - `account.address` (string) Example: "Main Street, 123" - `account.city` (string) Example: "Lisbon" - `account.postal_code` (string) Example: "1000-001" - `account.website` (string) Example: "www.company.com" - `account.fax` (string) Example: "210000001" - `account.terms` (string, required) Enum: "1", "0" - `account.credentials` (object) AT Credentials. - `account.credentials.username` (string, required) Example: "500100200/1" - `account.credentials.type` (string) Enum: "AT" - `account.credentials.context` (string) Enum: "Sequences" ## Response 401 fields (application/json): - `errors` (object) - `errors.error` (string) Example: "Invalid API key" ## Response 200 fields ## Response 404 fields