# Create Account for Existing User Creates a new account for an existing InvoiceXpress user, authenticated by the email and password in the body. The response shape depends on whether it is an API or a web request (see the response schema). Endpoint: POST /api/v3/accounts/create_already_user Version: 3.1.0 Security: ## Request fields (application/json): - `email` (string, required) Email (login) of the existing user. Example: "john.doe@example.com" - `password` (string, required) Current password of the existing user. Example: "Fa8aVs.B!~k+" - `account` (object, required) - `account.organization_name` (string, required) Values longer than 100 characters are rejected with HTTP 422. Example: "Strong Security" - `account.fiscal_id` (string, required) Required. Missing or blank is rejected with 422 ("VAT Number can't be blank"). Example: "123456789" - `account.address` (string, required) Required. Missing or blank is rejected with 422 ("Address can't be blank"); values longer than 210 characters are rejected with HTTP 422. Example: "Avenida da Liberdade" - `account.postal_code` (string, required) Required. Missing or blank is rejected with 422 ("Postal code can't be blank"). Example: "1250-144" - `account.city` (string, required) Required. Missing or blank is rejected with 422 ("City can't be blank"); values longer than 50 characters are rejected with HTTP 422. Example: "Lisboa" - `account.language` (string) Example: "pt" ## Response 201 fields (application/json): - `success` (boolean, required) Example: true - `token` (string, required) Example: "a41f5ef81ad1a93f6e362ef94818ef6497f857745346dba064d081229102e28593818d4496d70fdfe436195a4eed6ed813cd560e043c8fd9aa5889b044d47848" - `url` (string) API requests only. Home URL of the new account. Example: "https://strongsecurity.app.invoicexpress.com" - `api_key` (string) API requests only. API key of the user on the new account. Example: "d8117512267a1d84ebb64c65b6294b0719e78134" - `redirect` (string) Web requests only. Home URL of the new account (replaces url and api_key). Example: "https://strongsecurity.app.invoicexpress.com" ## Response 422 fields (application/json): - `errors` (array) Example: [{"error":"An unexpected error occurred"}] - `errors.error` (string) ## Response 500 fields (application/json): - `errors` (array) Example: [{"error":"An unexpected error occurred"}] - `errors.error` (string)