# Update Document Customization Replaces the document customization of the account (or of one série, with serie_name). This is a full replace: every customization field that is not sent (or is sent blank) is set to null. Send all the values you want to keep, not only the ones you change. See the request body for the list of fields. Endpoint: PUT /api/v3/accounts/document_customization Version: 3.1.0 Security: apiKeyAuth ## Query parameters: - `api_key` (string, required) Your API Key. Example: "YOUR_API_KEY" ## Request fields (application/json): - `email` (string) Must be a valid email address ("email_invalid"). Example: "billing@example.com" - `phone` (string) Example: "213456789" - `website` (string) Example: "https://example.com" - `phone_country_id` (integer) Id of the phone calling code (see Phone Calling Codes). Example: 1 - `tax_exemption_code` (string) Default tax exemption code. Account level only. Example: "M07" - `remarks` (string) Default document observations. Maximum 400 characters ("observations_too_long"). Account level only. Example: "Thank you for your business." - `footer` (string) Document footer. Maximum 200 characters ("invoice_footer_too_long"). Example: "Company registered in Lisbon." - `document_copies` (integer) Number of document copies. Account level only. Example: 2 - `payment_days` (integer) Default payment days. Account level only. Example: 15 - `bank_data_type_1` (string) When set, bank_data_value_1 is required ("bank_data1_blank"). Example: "IBAN" - `bank_data_value_1` (string) Example: "PT50000201231234567890154" - `bank_data_type_2` (string) When set, bank_data_value_2 is required ("bank_data2_blank"). Example: "SWIFT" - `bank_data_value_2` (string) Example: "CGDIPTPL" - `bank_data_type_3` (string) When set, bank_data_value_3 is required ("bank_data3_blank"). - `bank_data_value_3` (string) - `serie_name` (string) Name of a série of the account. When present, the customization of that série is replaced instead of the account's. Example: "2026" - `file` (string) Logo image (multipart/form-data only). PNG, JPEG or JPG, at most 200 KB and 1000x1000 pixels; otherwise 422 "The image is not valid. It must be in 'png', 'jpeg' or 'jpg' format, and have a maximum of 1000 pixels." ## Response 200 fields (application/json): - `success` (boolean) Example: true - `logo_error` (string) Present only when the logo could not be stored. The other fields of the request were saved and the previous logo was kept; send the logo again. Enum: "logo_upload_failed" ## Response 401 fields (application/json): - `errors` (array) Example: [{"error":"Authentication Error"}] - `errors.error` (string) ## Response 422 fields (application/json): - `errors` (array) Example: [{"error":"observations_too_long"},{"error":"bank_data1_blank"}] - `errors.error` (string)