# Export Account Data Exports account data in XLS, CSV, or XML format. An email will be sent when the export is ready. Both data_type and data_format are required; account can only be exported as xml. Endpoint: POST /api/v3/accounts/export Version: 3.1.0 Security: apiKeyAuth ## Query parameters: - `api_key` (string, required) Your API Key. Example: "YOUR_API_KEY" - `data_type` (string, required) Data type to export. Missing returns 400; any other value returns 422. Enum: "account", "contacts", "invoices", "items", "inventory" - `data_format` (string, required) Export file format. Missing returns 400; any other value returns 422. With data_type=account only xml is accepted (any other format returns 422). Enum: "csv", "xls", "xml" ## Response 200 fields (application/json): - `message` (string) Example: "We'll send you an email when it's done to: info@test.com." ## Response 400 fields (application/json): - `errors` (array) Example: [{"error":"An unexpected error occurred"}] - `errors.error` (string) ## Response 401 fields (application/json): - `errors` (array) Example: [{"error":"Authentication Error"}] - `errors.error` (string) ## 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)