{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/api/analytics/daily-usage":{"get":{"tags":["Analytics"],"summary":"[Internal] Get daily usage","operationId":"get_daily_usage_api_analytics_daily_usage_get","parameters":[{"name":"date_from","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Date From"}},{"name":"date_to","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Date To"}},{"name":"usage_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/UsageType"},{"type":"null"}],"title":"Usage Type"}},{"name":"business_unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyUsageResponseDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/trends":{"get":{"tags":["Analytics"],"summary":"[Internal] Get usage trends","operationId":"get_usage_trends_api_analytics_trends_get","parameters":[{"name":"months","in":"query","required":false,"schema":{"type":"integer","default":12,"title":"Months"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageTrendsResponseDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/approvals/eligible-approvers":{"get":{"tags":["Approvals"],"summary":"Users and roles that may be named as approvers","operationId":"list_eligible_approvers_api_approvals_eligible_approvers_get","parameters":[{"name":"document_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Narrow the list to principals who can open this document -- its business unit and its protected tags. Cannot be combined with business_unit_id.","title":"Document Id"},"description":"Narrow the list to principals who can open this document -- its business unit and its protected tags. Cannot be combined with business_unit_id."},{"name":"business_unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Narrow the list to principals authorized on this business unit. Cannot be combined with document_id.","title":"Business Unit Id"},"description":"Narrow the list to principals authorized on this business unit. Cannot be combined with document_id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EligibleApproversDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/api-keys":{"post":{"tags":["Api keys"],"summary":"[Internal] Create api key","operationId":"api_key_create_api_api_keys_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Api keys"],"summary":"[Internal] List api keys","operationId":"list_api_keys_api_api_keys_get","parameters":[{"name":"business_unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"}},{"name":"active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListApiKeysResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/api-keys/{api_key_id}":{"get":{"tags":["Api keys"],"summary":"[Internal] Get api key by id","operationId":"api_key_get_by_id_api_api_keys__api_key_id__get","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Api Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Api keys"],"summary":"[Internal] Delete api key","operationId":"api_key_delete_api_api_keys__api_key_id__delete","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Api Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Api keys"],"summary":"[Internal] Update api key","operationId":"api_key_update_api_api_keys__api_key_id__patch","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Api Key Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateApiKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/api-keys/{api_key_id}/status":{"patch":{"tags":["Api keys"],"summary":"[Internal] Update api key status","operationId":"api_key_update_status_api_api_keys__api_key_id__status_patch","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Api Key Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateApiKeyStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/background-tasks/{task_id}":{"get":{"tags":["Background Tasks"],"summary":"Get the status of a background task by id","operationId":"get_background_task_api_background_tasks__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackgroundTaskStatusDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/batch/upload-url":{"get":{"tags":["Processing entities"],"summary":"[External] Upload batch url","operationId":"batch_upload_url_api_v1_batch_upload_url_get","parameters":[{"name":"file_name","in":"query","required":true,"schema":{"type":"string","title":"File Name"}},{"name":"content_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchUploadUrlDto"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/batch/download-urls":{"get":{"tags":["Processing entities"],"summary":"[External] Download batch url","operationId":"batch_download_url_api_v1_batch_download_urls_get","parameters":[{"name":"poll_key","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Poll Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchDownloadUrlDto"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/batch/process-document":{"post":{"tags":["Processing entities"],"summary":"[External] Process batch document","operationId":"batch_process_document_api_v1_batch_process_document_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchProcessDocumentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/batch/process-document/upload":{"post":{"tags":["Processing entities"],"summary":"[External] Process batch document (multipart upload)","operationId":"batch_process_document_upload_api_v1_batch_process_document_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_batch_process_document_upload_api_v1_batch_process_document_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/batch/poll-document":{"get":{"tags":["Processing entities"],"summary":"[External] Poll batch document","operationId":"batch_poll_document_api_v1_batch_poll_document_get","parameters":[{"name":"poll_key","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Poll Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchPollDocumentQueryResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business-units":{"get":{"tags":["Business Units"],"summary":"[Internal] List business units","operationId":"list_business_units_api_business_units_get","parameters":[{"name":"active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}},{"name":"count_invoices_waiting_review","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Count Invoices Waiting Review"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBusinessUnitsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Business Units"],"summary":"[Internal] Create business unit","operationId":"business_unit_create_api_business_units_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBusinessUnitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business-units/simple":{"post":{"tags":["Business Units"],"summary":"[External] Create a simple business unit","operationId":"business_unit_create_simple_api_business_units_simple_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSimpleBusinessUnitRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business-units/validate-email":{"get":{"tags":["Business Units"],"summary":"[Internal] Validate business unit email","operationId":"validate_business_unit_email_api_business_units_validate_email_get","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","title":"Email"}},{"name":"business_unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateEmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business-units/{business_unit_id}/delete-async":{"post":{"tags":["Business Units"],"summary":"[Internal] Delete business unit","operationId":"business_unit_delete_async_api_business_units__business_unit_id__delete_async_post","parameters":[{"name":"business_unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Business Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business-units/{business_unit_id}":{"get":{"tags":["Business Units"],"summary":"[Internal] Get business unit by id","operationId":"business_unit_get_by_id_api_business_units__business_unit_id__get","parameters":[{"name":"business_unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Business Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Business Units"],"summary":"[Internal] Update business unit","operationId":"update_business_unit_api_business_units__business_unit_id__patch","parameters":[{"name":"business_unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Business Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBusinessUnitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business-units/{business_unit_id}/list-minimax-suppliers":{"get":{"tags":["Business Units"],"summary":"[Internal] List Minimax suppliers for business unit","operationId":"list_minimax_suppliers_for_business_unit_api_business_units__business_unit_id__list_minimax_suppliers_get","parameters":[{"name":"business_unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Business Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMinimaxSuppliersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business-units/{business_unit_id}/create-minimax-supplier":{"post":{"tags":["Business Units"],"summary":"[Internal] Create Minimax supllier","operationId":"create_minimax_supplier_api_business_units__business_unit_id__create_minimax_supplier_post","parameters":[{"name":"business_unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Business Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMinimaxSupplierRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinimaxCustomer"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business-units/{business_unit_id}/status":{"patch":{"tags":["Business Units"],"summary":"[Internal] Update business unit state","operationId":"state_change_business_unit_api_business_units__business_unit_id__status_patch","parameters":[{"name":"business_unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Business Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBusinessUnitStateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business-units/{business_unit_id}/waiting-review":{"get":{"tags":["Business Units"],"summary":"List invoices waiting review for business unit","operationId":"list_invoices_waiting_review_api_business_units__business_unit_id__waiting_review_get","parameters":[{"name":"business_unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Business Unit Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDocumentsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/campaigns/active":{"get":{"tags":["Campaigns"],"summary":"[Internal] Get the active announcement campaign","description":"Serve the active campaign, or 204 when none is running.\nNo `get_authorization_context` dependency: campaigns are global","operationId":"get_active_campaign_api_campaigns_active_get","parameters":[{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":35},{"type":"null"}],"title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveCampaignResponse"}}}},"204":{"description":"No campaign is currently active."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/campaigns":{"post":{"tags":["Campaigns"],"summary":"[Internal] Create a campaign","operationId":"create_campaign_api_campaigns_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCampaignRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/campaigns/{slug}":{"patch":{"tags":["Campaigns"],"summary":"[Internal] Update a campaign","description":"Partially update a campaign. Platform admins only.\n\nDeactivating a live campaign is `{\"is_active\": false}`; the slug itself is\nimmutable, see UpdateCampaignRequest.","operationId":"update_campaign_api_campaigns__slug__patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCampaignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/document-types":{"post":{"tags":["DocumentTypes"],"summary":"[Internal] Create document_type","operationId":"document_type_create_api_document_types_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDocumentTypeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypeDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["DocumentTypes"],"summary":"[Internal] List document_types","operationId":"list_document_types_api_document_types_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":10,"title":"Limit"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}},{"name":"sort_ascending","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Sort Ascending"}},{"name":"order_by_column","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Order By Column"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDocumentTypesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/document-types/{document_type_id}":{"get":{"tags":["DocumentTypes"],"summary":"[Internal] Get document_type by id","operationId":"document_type_get_by_id_api_document_types__document_type_id__get","parameters":[{"name":"document_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Type Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypeDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["DocumentTypes"],"summary":"[Internal] Delete document_type","operationId":"document_type_delete_api_document_types__document_type_id__delete","parameters":[{"name":"document_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Type Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["DocumentTypes"],"summary":"[Internal] Update document_type","operationId":"document_type_update_api_document_types__document_type_id__patch","parameters":[{"name":"document_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Type Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDocumentTypeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypeDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events":{"get":{"tags":["Events"],"summary":"[Internal] Events","operationId":"list_events_api_events_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"aggregate_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEventsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fields":{"post":{"tags":["Fields"],"summary":"[Internal] Create field","operationId":"field_create_api_fields_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFieldRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Fields"],"summary":"[Internal] List fields","operationId":"list_fields_api_fields_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":10,"title":"Limit"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}},{"name":"sort_ascending","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Sort Ascending"}},{"name":"order_by_column","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Order By Column"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListFieldsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fields/{field_id}":{"get":{"tags":["Fields"],"summary":"[Internal] Get field by id","operationId":"field_get_by_id_api_fields__field_id__get","parameters":[{"name":"field_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Field Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Fields"],"summary":"[Internal] Delete field","operationId":"field_delete_api_fields__field_id__delete","parameters":[{"name":"field_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Field Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Fields"],"summary":"[Internal] Update field","operationId":"field_update_api_fields__field_id__patch","parameters":[{"name":"field_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Field Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFieldRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/integrations":{"get":{"tags":["Integrations"],"summary":"List tenant integrations","operationId":"integration_list_api_v2_integrations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListIntegrationsResponse"}}}}}},"post":{"tags":["Integrations"],"summary":"Create tenant integration","operationId":"integration_create_api_v2_integrations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntegrationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/integrations/{integration_type}":{"patch":{"tags":["Integrations"],"summary":"Update tenant integration","operationId":"integration_update_api_v2_integrations__integration_type__patch","parameters":[{"name":"integration_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/IntegrationName"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIntegrationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Integrations"],"summary":"Delete tenant integration","operationId":"integration_delete_api_v2_integrations__integration_type__delete","parameters":[{"name":"integration_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/IntegrationName"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/bank/aspsps":{"get":{"tags":["Finances - Bank"],"summary":"List available banks (ASPSPs)","operationId":"get_aspsps_api_finances_bank_aspsps_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"name":"psu_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Psu Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AspspDTO"},"title":"Response Get Aspsps Api Finances Bank Aspsps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/bank/connect":{"post":{"tags":["Finances - Bank"],"summary":"Start bank connection auth flow","operationId":"connect_bank_api_finances_bank_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectBankRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartAuthDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/bank/callback":{"post":{"tags":["Finances - Bank"],"summary":"Handle bank auth callback","operationId":"bank_callback_api_finances_bank_callback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankCallbackRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankConnectionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/bank/callback/failure":{"post":{"tags":["Finances - Bank"],"summary":"Report a failed bank authorization","operationId":"bank_callback_failure_api_finances_bank_callback_failure_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAuthFailureRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAuthFailureDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/bank/connections":{"get":{"tags":["Finances - Bank"],"summary":"List bank connections","operationId":"list_connections_api_finances_bank_connections_get","parameters":[{"name":"business_unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BankConnectionDTO"},"title":"Response List Connections Api Finances Bank Connections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/bank/connections/{connection_id}":{"get":{"tags":["Finances - Bank"],"summary":"Get bank connection details","operationId":"get_connection_api_finances_bank_connections__connection_id__get","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankConnectionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Finances - Bank"],"summary":"Delete bank connection","operationId":"delete_connection_api_finances_bank_connections__connection_id__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Connection Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/bank/connections/{connection_id}/reauth":{"post":{"tags":["Finances - Bank"],"summary":"Start re-authentication flow","operationId":"start_reauth_api_finances_bank_connections__connection_id__reauth_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReauthRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartAuthDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/bank/blocked-ibans":{"get":{"tags":["Finances - Bank"],"summary":"List a business unit's blocked IBANs","operationId":"list_blocked_ibans_api_finances_bank_blocked_ibans_get","parameters":[{"name":"business_unit_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Business Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BlockedIbanDTO"},"title":"Response List Blocked Ibans Api Finances Bank Blocked Ibans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Finances - Bank"],"summary":"Replace a business unit's blocked IBANs with the given full list","operationId":"update_blocked_ibans_api_finances_bank_blocked_ibans_put","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBlockedIbansRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BlockedIbanDTO"},"title":"Response Update Blocked Ibans Api Finances Bank Blocked Ibans Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/bank/blocked-transactions/summary":{"get":{"tags":["Finances - Bank"],"summary":"Count of a business unit's hidden transactions, per blocked category","operationId":"get_blocked_transactions_summary_api_finances_bank_blocked_transactions_summary_get","parameters":[{"name":"business_unit_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Business Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockedTransactionsSummaryDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/cash-flow":{"get":{"tags":["Finances - Cash Flow"],"summary":"Get cash flow data","operationId":"get_cash_flow_api_finances_cash_flow_get","parameters":[{"name":"period_days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Period Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CashFlowDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/documents/{document_id}/match":{"post":{"tags":["Finances"],"summary":"Manually match document to transaction","operationId":"manual_match_api_finances_documents__document_id__match_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualMatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRecordDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/documents/{document_id}/match/{record_id}":{"delete":{"tags":["Finances"],"summary":"Remove a payment record (unmatch)","operationId":"unmatch_api_finances_documents__document_id__match__record_id__delete","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Record Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/documents/{document_id}/payment":{"post":{"tags":["Finances"],"summary":"Record a payment for a document","operationId":"record_payment_api_finances_documents__document_id__payment_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordPaymentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRecordDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/documents/{document_id}/mark-as-not-applicable":{"post":{"tags":["Finances"],"summary":"Mark document payment as not applicable","operationId":"mark_as_not_applicable_api_finances_documents__document_id__mark_as_not_applicable_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/documents/{document_id}/mark-as-scheduled":{"post":{"tags":["Finances"],"summary":"Mark document payment as scheduled","operationId":"mark_as_scheduled_api_finances_documents__document_id__mark_as_scheduled_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/transactions/filter":{"post":{"tags":["Finances"],"summary":"Filter transactions","operationId":"filter_transactions_api_finances_transactions_filter_post","parameters":[{"name":"business_unit_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Business Unit Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":10,"title":"Limit"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}},{"name":"sort_ascending","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Sort Ascending"}},{"name":"order_by_column","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Order By Column"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilterTransactionsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTransactionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/finances/overview":{"get":{"tags":["Finances - Overview"],"summary":"Get finance overview KPIs","operationId":"get_finance_overview_api_finances_overview_get","parameters":[{"name":"business_unit_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Business Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceOverviewDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/logs":{"post":{"tags":["Logs"],"summary":"[Internal] Post logs","operationId":"upload_tauri_logs_api_logs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogUploadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications":{"get":{"tags":["Notifications"],"summary":"List notifications","operationId":"list_notifications_api_notifications_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"default":50,"title":"Limit"}},{"name":"include_superseded","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Superseded"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListNotificationsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/unread-count":{"get":{"tags":["Notifications"],"summary":"Get unread notification count","operationId":"get_unread_count_api_notifications_unread_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Unread Count Api Notifications Unread Count Get"}}}}}}},"/api/notifications/{notification_id}/download":{"get":{"tags":["Notifications"],"summary":"Get a fresh download URL for a notification's file","operationId":"get_download_url_api_notifications__notification_id__download_get","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationDownloadUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/{notification_id}/read":{"patch":{"tags":["Notifications"],"summary":"Mark notification as read","operationId":"mark_as_read_api_notifications__notification_id__read_patch","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/{notification_id}/unread":{"patch":{"tags":["Notifications"],"summary":"Mark notification as unread","operationId":"mark_as_unread_api_notifications__notification_id__unread_patch","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/{notification_id}":{"delete":{"tags":["Notifications"],"summary":"Delete notification","operationId":"delete_notification_api_notifications__notification_id__delete","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/mark-all-read":{"post":{"tags":["Notifications"],"summary":"Mark all notifications as read","operationId":"mark_all_read_api_notifications_mark_all_read_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Mark All Read Api Notifications Mark All Read Post"}}}}}}},"/api/v1/invoice/text-blocks":{"get":{"tags":["Processing entities"],"summary":"[External] Invoice text blocks","operationId":"invoice_text_blocks_api_v1_invoice_text_blocks_get","parameters":[{"name":"inv_key","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Inv Key"}},{"name":"page_number","in":"query","required":true,"schema":{"type":"integer","maximum":100,"exclusiveMinimum":0,"title":"Page Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/{endpoint_version}/poll-invoice":{"get":{"tags":["Processing entities"],"summary":"[External] Poll invoice","operationId":"poll_invoice_api__endpoint_version__poll_invoice_get","parameters":[{"name":"endpoint_version","in":"path","required":true,"schema":{"enum":["v1","v2"],"type":"string","title":"Endpoint Version"}},{"name":"inv_key","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Inv Key"}},{"name":"eslog","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Eslog"}},{"name":"number_of_pages","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Number Of Pages"}},{"name":"add_candidates","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Add Candidates"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/poll-invoice/blocks":{"get":{"tags":["Processing entities"],"summary":"[External] Poll invoice blocks","operationId":"poll_invoice_blocks_api_v1_poll_invoice_blocks_get","parameters":[{"name":"inv_key","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Inv Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/{endpoint_version}/process-invoice":{"post":{"tags":["Processing entities"],"summary":"[External] Process invoice","operationId":"process_invoice_api__endpoint_version__process_invoice_post","parameters":[{"name":"endpoint_version","in":"path","required":true,"schema":{"enum":["v1","v2"],"type":"string","title":"Endpoint Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessDocumentRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/{endpoint_version}/process-invoice/upload":{"post":{"tags":["Processing entities"],"summary":"[External] Process invoice (multipart upload)","operationId":"process_invoice_upload_api__endpoint_version__process_invoice_upload_post","parameters":[{"name":"endpoint_version","in":"path","required":true,"schema":{"enum":["v1","v2"],"type":"string","title":"Endpoint Version"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_process_invoice_upload_api__endpoint_version__process_invoice_upload_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/learn":{"post":{"tags":["Processing entities"],"summary":"[External] Feedback polled invoice","operationId":"feedback_polled_invoice_api_v1_learn_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackPolledDocumentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/report-error":{"post":{"tags":["Processing entities"],"summary":"[External] Report error","operationId":"report_error_api_v1_report_error_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportErrorRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices":{"get":{"tags":["Received invoices"],"summary":"[Internal] List received invoices","operationId":"list_documents_api_received_invoices_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentStatus"},{"type":"null"}],"title":"Status"}},{"name":"business_unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To Date"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From Date"}},{"name":"file_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"}},{"name":"supplier_vat_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Vat Id"}},{"name":"supplier_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Name"}},{"name":"document_id_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id Number"}},{"name":"sort_ascending","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Sort Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDocumentsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/filter":{"post":{"tags":["Received invoices"],"summary":"[Internal] Filter received invoices by field values","operationId":"filter_documents_api_received_invoices_filter_post","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":10,"title":"Limit"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}},{"name":"sort_ascending","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Sort Ascending"}},{"name":"order_by_column","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Order By Column"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilterDocumentsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDocumentsWithDetailsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/count":{"post":{"tags":["Received invoices"],"summary":"[Internal] Count received invoices by field values","operationId":"count_documents_api_received_invoices_count_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilterDocumentsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountDocumentsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/waiting-export":{"get":{"tags":["Received invoices"],"summary":"[Internal] List received invoices waiting for export","operationId":"list_documents_waiting_export_api_received_invoices_waiting_export_get","parameters":[{"name":"business_unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"}},{"name":"business_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Unit"}},{"name":"business_unit_ident","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Unit Ident"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"sort_ascending","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Sort Ascending"}},{"name":"order_by_column","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order By Column"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDocumentsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/created-by-options":{"get":{"tags":["Received invoices"],"summary":"Get options for created_by.","operationId":"get_created_by_options_api_received_invoices_created_by_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCreatedByOptionsResponse"}}}}}}},"/api/received-invoices/{aggregate_id}":{"get":{"tags":["Received invoices"],"summary":"[Internal] Get received invoice by id","operationId":"get_document_api_received_invoices__aggregate_id__get","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}},{"name":"put_in_review","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Put In Review"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceivedDocumentDetailsDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Received invoices"],"summary":"[Internal] Delete received invoice by id","operationId":"delete_document_api_received_invoices__aggregate_id__delete","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/markdown":{"get":{"tags":["Received invoices"],"summary":"[Internal] Get received invoice markdown by id","operationId":"get_document_markdown_api_received_invoices__aggregate_id__markdown_get","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/notes":{"post":{"tags":["Received invoices"],"summary":"Add a note to a received invoice","operationId":"add_document_note_api_received_invoices__aggregate_id__notes_post","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDocumentNoteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentNoteDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Received invoices"],"summary":"List the note history of a received invoice","operationId":"list_document_notes_api_received_invoices__aggregate_id__notes_get","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDocumentNotesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/notes/{note_id}":{"patch":{"tags":["Received invoices"],"summary":"Edit a note on a received invoice","operationId":"edit_document_note_api_received_invoices__aggregate_id__notes__note_id__patch","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditDocumentNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentNoteDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Received invoices"],"summary":"Delete a note from a received invoice","operationId":"delete_document_note_api_received_invoices__aggregate_id__notes__note_id__delete","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/confirm":{"post":{"tags":["Received invoices"],"summary":"[Internal] Confirm received invoice","operationId":"confirm_document_api_received_invoices__aggregate_id__confirm_post","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmDocumentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceivedDocumentDetailsDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/approve":{"post":{"tags":["Received invoices"],"summary":"Approve a received invoice","operationId":"approve_document_api_received_invoices__aggregate_id__approve_post","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveDocumentRequest","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/reject-approval":{"post":{"tags":["Received invoices"],"summary":"Reject a received invoice's approval","operationId":"reject_document_approval_api_received_invoices__aggregate_id__reject_approval_post","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectDocumentApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/reassign-approval":{"post":{"tags":["Received invoices"],"summary":"Reassign a received invoice's approval","operationId":"reassign_document_approval_api_received_invoices__aggregate_id__reassign_approval_post","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReassignDocumentApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/approvals":{"get":{"tags":["Received invoices"],"summary":"Approval history of a received invoice","operationId":"list_document_approvals_api_received_invoices__aggregate_id__approvals_get","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentApprovalsDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/move":{"patch":{"tags":["Received invoices"],"summary":"[Internal] Move received invoice","operationId":"move_document_api_received_invoices__aggregate_id__move_patch","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}},{"name":"new_business_unit_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"New Business Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/bad-model":{"post":{"tags":["Received invoices"],"summary":"[Internal] Bad model notification","operationId":"bad_model_notification_api_received_invoices__aggregate_id__bad_model_post","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/put-to-waiting-review":{"post":{"tags":["Received invoices"],"summary":"[Internal] Put to waiting review","operationId":"put_to_waiting_review_api_received_invoices__aggregate_id__put_to_waiting_review_post","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/reject":{"post":{"tags":["Received invoices"],"summary":"[Internal] Reject received invoice","operationId":"reject_document_api_received_invoices__aggregate_id__reject_post","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectDocumentRequest","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/retry-extraction":{"post":{"tags":["Received invoices"],"summary":"[Internal] Retry extraction","operationId":"retry_extraction_api_received_invoices__aggregate_id__retry_extraction_post","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/status":{"patch":{"tags":["Received invoices"],"summary":"[Internal] Set invoice status","operationId":"set_document_status_api_received_invoices__aggregate_id__status_patch","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetInvoiceStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/partner":{"post":{"tags":["Received invoices"],"summary":"[Internal] Link partner to document","operationId":"link_partner_api_received_invoices__aggregate_id__partner_post","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkPartnerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/details":{"patch":{"tags":["Received invoices"],"summary":"[Internal] Update invoice details","operationId":"update_document_details_api_received_invoices__aggregate_id__details_patch","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDocumentDetailsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceivedDocumentDetailsDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/tags":{"put":{"tags":["Received invoices"],"summary":"[Internal] Set the tags on a received invoice","operationId":"set_document_tags_api_received_invoices__aggregate_id__tags_put","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetDocumentTagsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceivedDocumentDetailsDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/export-data":{"get":{"tags":["Received invoices"],"summary":"[Internal] Export invoice data","operationId":"export_document_data_api_received_invoices__aggregate_id__export_data_get","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}},{"name":"put_in_export","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Put In Export"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentExportDataDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/{aggregate_id}/reexport":{"post":{"tags":["Received invoices"],"summary":"[Internal] Reexport invoice","operationId":"reexport_document_api_received_invoices__aggregate_id__reexport_post","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/bulk-delete":{"post":{"tags":["Received invoices"],"summary":"Bulk Delete invoices","operationId":"bulk_delete_documents_api_received_invoices_bulk_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bulkdocumentactionquery"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionSubmittedDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/archive-export":{"post":{"tags":["Received invoices"],"summary":"ZIP Archive export invoices","operationId":"archive_export_documents_api_received_invoices_archive_export_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveExportDocumentsQuery"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionSubmittedDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/bulk-approve":{"post":{"tags":["Received invoices"],"summary":"Bulk approve invoices","operationId":"bulk_approve_documents_api_received_invoices_bulk_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkApproveDocumentsQuery"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionSubmittedDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/bulk-reject-approval":{"post":{"tags":["Received invoices"],"summary":"Bulk reject invoice approvals","operationId":"bulk_reject_approval_documents_api_received_invoices_bulk_reject_approval_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkRejectApprovalDocumentsQuery"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionSubmittedDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/bulk-reexport":{"post":{"tags":["Received invoices"],"summary":"Bulk re-export","operationId":"bulk_reexport_documents_api_received_invoices_bulk_reexport_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bulkdocumentactionquery"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionSubmittedDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/bulk-confirm":{"post":{"tags":["Received invoices"],"summary":"Bulk confirm invoices","operationId":"bulk_confirm_documents_api_received_invoices_bulk_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bulkdocumentactionquery"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionSubmittedDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/bulk-move-to-review":{"post":{"tags":["Received invoices"],"summary":"Bulk move to waiting review","operationId":"bulk_move_to_review_documents_api_received_invoices_bulk_move_to_review_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bulkdocumentactionquery"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionSubmittedDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/received-invoices/bulk-move-to-business-unit":{"post":{"tags":["Received invoices"],"summary":"Bulk move to another business unit","operationId":"bulk_move_to_business_unit_documents_api_received_invoices_bulk_move_to_business_unit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkMoveToBusinessUnitQuery"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionSubmittedDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/roles":{"get":{"tags":["Roles"],"summary":"[Internal] List roles","operationId":"role_list_api_roles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListRolesResponse"}}}}}},"post":{"tags":["Roles"],"summary":"[Internal] Create role","operationId":"role_create_api_roles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRoleRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/roles/{role_id}":{"get":{"tags":["Roles"],"summary":"[Internal] Get role by id","operationId":"role_get_by_id_api_roles__role_id__get","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Role Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Roles"],"summary":"[Internal] Update role","operationId":"role_update_api_roles__role_id__patch","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Role Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRoleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Roles"],"summary":"[Internal] Delete role","operationId":"role_delete_api_roles__role_id__delete","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Role Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscriptions":{"get":{"tags":["Subscriptions"],"summary":"[Internal] List subscriptions","operationId":"list_subscriptions_api_subscriptions_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionStatus"},{"type":"null"}],"title":"Status"}},{"name":"subscription_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionPlanType"},{"type":"null"}],"title":"Subscription Type"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSubscriptionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Subscriptions"],"summary":"[Internal] Create subscription","operationId":"subscription_create_api_subscriptions_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSubscriptionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscriptions/usage-packages-and-plans":{"get":{"tags":["Subscriptions"],"summary":"[Internal] List subscriptions","operationId":"get_subscriptions_pricing_api_subscriptions_usage_packages_and_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionUsagePackagesAndPlansDTO"}}}}}}},"/api/subscriptions/{subscription_id}/usage-package":{"patch":{"tags":["Subscriptions"],"summary":"[Internal] Update subscription usage package","operationId":"subscription_update_usage_package_api_subscriptions__subscription_id__usage_package_patch","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSubscriptionUsagePackageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscriptions/{subscription_id}/support-package":{"patch":{"tags":["Subscriptions"],"summary":"[Internal] Update subscription support package","operationId":"subscription_update_support_package_api_subscriptions__subscription_id__support_package_patch","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSubscriptionSupportPackageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscriptions/{subscription_id}/plan":{"patch":{"tags":["Subscriptions"],"summary":"[Internal] Update subscription plan","operationId":"subscription_update_plan_api_subscriptions__subscription_id__plan_patch","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSubscriptionPlanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscriptions/{subscription_id}":{"delete":{"tags":["Subscriptions"],"summary":"[Internal] Cancel subscription","operationId":"subscription_cancel_api_subscriptions__subscription_id__delete","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}},{"name":"cancellation_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Cancellation Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Subscriptions"],"summary":"[Internal] Get subscription by id","operationId":"subscription_get_by_id_api_subscriptions__subscription_id__get","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscriptions/{subscription_id}/page-credits":{"post":{"tags":["Subscriptions"],"summary":"[Internal] Grant free page credits to a subscription","operationId":"add_page_credits_api_subscriptions__subscription_id__page_credits_post","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPageCreditsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscriptions/{subscription_id}/usage":{"get":{"tags":["Subscriptions"],"summary":"[Internal] Get usage for subscription","operationId":"get_usage_for_subscription_api_subscriptions__subscription_id__usage_get","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionUsageApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Subscriptions"],"summary":"Add Usage","description":"Can only be used to add SUPPORT_MINUTES!","operationId":"add_usage_api_subscriptions__subscription_id__usage_post","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUsageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscriptions/v2/{subscription_id}/usage":{"get":{"tags":["Subscriptions"],"summary":"[Internal] Get delegation-aware usage breakdown for subscription","operationId":"get_usage_breakdown_for_subscription_api_subscriptions_v2__subscription_id__usage_get","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionUsageBreakdownApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tags":{"get":{"tags":["Tags"],"summary":"[Internal] List tags","operationId":"list_tags_api_tags_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTagsResponse"}}}}}},"post":{"tags":["Tags"],"summary":"[Internal] Create tag","operationId":"create_tag_api_tags_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTagRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tags/{tag_id}":{"patch":{"tags":["Tags"],"summary":"[Internal] Update tag","operationId":"update_tag_api_tags__tag_id__patch","parameters":[{"name":"tag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Tags"],"summary":"[Internal] Delete tag","operationId":"delete_tag_api_tags__tag_id__delete","parameters":[{"name":"tag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/partners":{"get":{"tags":["Partners"],"summary":"[Internal] List partners","operationId":"list_partners_api_partners_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}},{"name":"active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPartnersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Partners"],"summary":"[Internal] Create partner","operationId":"create_partner_api_partners_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePartnerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/partners/{partner_id}":{"get":{"tags":["Partners"],"summary":"[Internal] Get partner by id","operationId":"get_partner_api_partners__partner_id__get","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Partners"],"summary":"[Internal] Update partner","operationId":"update_partner_api_partners__partner_id__patch","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePartnerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/partners/{partner_id}/status":{"patch":{"tags":["Partners"],"summary":"[Internal] Update partner status","operationId":"set_partner_status_api_partners__partner_id__status_patch","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPartnerStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/partners/{partner_id}/aliases":{"get":{"tags":["Partners"],"summary":"[Internal] List partner recognition aliases","operationId":"list_partner_aliases_api_partners__partner_id__aliases_get","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PartnerAliasDTO"},"title":"Response List Partner Aliases Api Partners  Partner Id  Aliases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/partners/{partner_id}/aliases/{alias_id}":{"delete":{"tags":["Partners"],"summary":"[Internal] Delete a partner recognition alias","operationId":"delete_partner_alias_api_partners__partner_id__aliases__alias_id__delete","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}},{"name":"alias_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Alias Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/typless/supplier/{supplier_name}":{"get":{"tags":["Typless"],"summary":"[Internal] Typless supplier","operationId":"typless_supplier_api_typless_supplier__supplier_name__get","parameters":[{"name":"supplier_name","in":"path","required":true,"schema":{"type":"string","title":"Supplier Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/typless/supplier/{supplier_id}/lock":{"post":{"tags":["Typless"],"summary":"[Internal] Typless lock supplier","operationId":"typless_lock_supplier_api_typless_supplier__supplier_id__lock_post","parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"string","title":"Supplier Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/typless/supplier/{supplier_id}/unlock":{"post":{"tags":["Typless"],"summary":"[Internal] Typless unlock supplier","operationId":"typless_unlock_supplier_api_typless_supplier__supplier_id__unlock_post","parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"string","title":"Supplier Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenant/usage":{"get":{"tags":["Tenant"],"summary":"[Internal] Tenant usage","operationId":"tenant_usage_api_v1_tenant_usage_get","parameters":[{"name":"from_date","in":"query","required":true,"schema":{"type":"string","format":"date","title":"From Date"}},{"name":"to_date","in":"query","required":true,"schema":{"type":"string","format":"date","title":"To Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantUsageDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenant/storage":{"get":{"tags":["Tenant"],"summary":"[Internal] Tenant storage","operationId":"tenant_storage_api_v1_tenant_storage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageInformationDTO"}}}}}}},"/api/v1/tenant/me":{"get":{"tags":["Tenant"],"summary":"[Internal] Get current tenant","operationId":"tenant_get_current_api_v1_tenant_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantDTO"}}}}}}},"/api/v1/tenant/provider-login":{"get":{"tags":["Tenant"],"summary":"[Internal] Get provider name","operationId":"get_provider_name_api_v1_tenant_provider_login_get","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProviderNameResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenant":{"patch":{"tags":["Tenant"],"summary":"[Internal] Update tenant","operationId":"tenant_update_api_v1_tenant_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTenantRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenant/finish-sign-up":{"post":{"tags":["Tenant"],"summary":"[Internal] Finish sign up","operationId":"finish_sign_up_api_v1_tenant_finish_sign_up_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantDTO"}}}}}}},"/api/v1/tenant/confirm-social-sign-up":{"post":{"tags":["Tenant"],"summary":"[Internal] Finish sign up","operationId":"finish_sign_up_api_v1_tenant_confirm_social_sign_up_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantDTO"}}}}},"deprecated":true}},"/api/v1/tenant/waiting-export":{"get":{"tags":["Tenant"],"summary":"[Internal] List received invoices waiting for export","operationId":"list_documents_waiting_export_api_v1_tenant_waiting_export_get","parameters":[{"name":"order_by_column","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order By Column"}},{"name":"sort_ascending","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Sort Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/DocumentListItemDTO"}},"propertyNames":{"format":"uuid"},"title":"Response List Documents Waiting Export Api V1 Tenant Waiting Export Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenant/export-scopes":{"get":{"tags":["Tenant"],"summary":"[Internal] [Desktop] List export scopes across the caller's tenants","operationId":"list_tenant_export_scopes_api_v1_tenant_export_scopes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TenantExportScopeDTO"},"type":"array","title":"Response List Tenant Export Scopes Api V1 Tenant Export Scopes Get"}}}}}}},"/api/v1/tenant/validate-minimax-credentials":{"post":{"tags":["Tenant"],"summary":"[Internal] Validate Minimax credentials","operationId":"validate_minimax_credentials_api_v1_tenant_validate_minimax_credentials_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateMinimaxCredentialsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Validate Minimax Credentials Api V1 Tenant Validate Minimax Credentials Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenant/sync-minimax":{"get":{"tags":["Tenant"],"summary":"[Internal] List Minimax organizations","operationId":"list_minimax_organizations_api_v1_tenant_sync_minimax_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMinimaxOrganizationsResponse"}}}}}}},"/api/v1/tenant/{tenant_id}/profile":{"patch":{"tags":["Tenant"],"summary":"[Internal] Update tenant profile","operationId":"tenant_update_profile_api_v1_tenant__tenant_id__profile_patch","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTenantProfileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenant/validate-integration":{"post":{"tags":["Tenant"],"summary":"[Internal] Validate integration API key","operationId":"validate_integration_api_v1_tenant_validate_integration_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateIntegrationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/tenant/waiting-export":{"get":{"tags":["Tenant"],"summary":"[Internal] List received invoices waiting for export across the caller's home and client tenants","operationId":"list_accessible_tenants_documents_waiting_export_api_v2_tenant_waiting_export_get","parameters":[{"name":"order_by_column","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order By Column"}},{"name":"sort_ascending","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Sort Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/DocumentListItemDTO"}},"propertyNames":{"format":"uuid"}},"propertyNames":{"format":"uuid"},"title":"Response List Accessible Tenants Documents Waiting Export Api V2 Tenant Waiting Export Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant-managements/invitations/accept":{"get":{"tags":["Tenant Management"],"summary":"Preview a token-gated tenant management invitation (public, read-only)","operationId":"preview_tenant_management_invitation_api_tenant_managements_invitations_accept_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantManagementInvitationPreviewDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Tenant Management"],"summary":"Accept a token-gated tenant management invitation (public)","operationId":"accept_tenant_management_invitation_api_tenant_managements_invitations_accept_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptManagedTenantInvitationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptTenantManagementInvitationResultDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant-managements/clients":{"get":{"tags":["Tenant Management"],"summary":"List tenants the current user can access","operationId":"list_accessible_tenants_api_tenant_managements_clients_get","parameters":[{"name":"include_stats","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Stats"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"enum":["name","waiting_review_documents_count","last_activity_at"],"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_ascending","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Sort Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAccessibleTenantsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant-managements/invitations":{"post":{"tags":["Tenant Management"],"summary":"Invite a business unit to become a client tenant","operationId":"invite_bu_to_managed_tenant_api_tenant_managements_invitations_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteBuToClientTenantRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantManagementInvitationDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Tenant Management"],"summary":"List managed-tenant invitations for the current tenant","operationId":"list_tenant_management_invitations_api_tenant_managements_invitations_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/InvitationStatus"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TenantManagementInvitationDTO"},"title":"Response List Tenant Management Invitations Api Tenant Managements Invitations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant-managements/link-request":{"post":{"tags":["Tenant Management"],"summary":"Request management by a manager tenant","operationId":"request_manager_link_api_tenant_managements_link_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestManagerLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantManagementInvitationDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant-managements/invitations/invite-tenant":{"post":{"tags":["Tenant Management"],"summary":"Invite an existing client tenant to be managed (Scenario 3)","operationId":"invite_existing_tenant_api_tenant_managements_invitations_invite_tenant_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteExistingTenantRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantManagementInvitationDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant-managements/invitations/{invitation_id}":{"get":{"tags":["Tenant Management"],"summary":"Get a managed-tenant invitation","operationId":"get_tenant_management_invitation_api_tenant_managements_invitations__invitation_id__get","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantManagementInvitationDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant-managements/invitations/{invitation_id}/accept":{"post":{"tags":["Tenant Management"],"summary":"Accept a client-initiated link request and execute linking","operationId":"accept_manager_link_request_api_tenant_managements_invitations__invitation_id__accept_post","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantManagementInvitationDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant-managements/invitations/{invitation_id}/reject":{"post":{"tags":["Tenant Management"],"summary":"Reject a client-initiated link request","operationId":"reject_manager_link_request_api_tenant_managements_invitations__invitation_id__reject_post","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantManagementInvitationDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant-managements/manager":{"get":{"tags":["Tenant Management"],"summary":"Get the relationship with the current tenant's manager","operationId":"get_manager_relationship_api_tenant_managements_manager_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantManagementRelationshipDTO"}}}}}}},"/api/tenant-managements/{aggregate_id}":{"get":{"tags":["Tenant Management"],"summary":"Get a tenant management relationship","operationId":"get_tenant_management_relationship_api_tenant_managements__aggregate_id__get","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantManagementRelationshipDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Tenant Management"],"summary":"Update a tenant management relationship","operationId":"update_tenant_management_relationship_api_tenant_managements__aggregate_id__patch","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTenantManagementRelationshipRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantManagementRelationshipDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Tenant Management"],"summary":"Unlink a managed tenant from its manager","operationId":"unlink_tenant_management_relationship_api_tenant_managements__aggregate_id__delete","parameters":[{"name":"aggregate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aggregate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users":{"post":{"tags":["Users"],"summary":"[Internal] Create user","operationId":"user_create_api_users_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Users"],"summary":"[Internal] List users","operationId":"list_users_api_users_get","parameters":[{"name":"active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUsersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/validate-vat-id":{"get":{"tags":["Users"],"summary":"[Internal] Validate Vat ID","operationId":"validate_vat_id_api_users_validate_vat_id_get","parameters":[{"name":"vat_id","in":"query","required":true,"schema":{"type":"string","title":"Vat Id"}},{"name":"country_code","in":"query","required":true,"schema":{"type":"string","title":"Country Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateVatIdResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/sign-up":{"post":{"tags":["Users"],"summary":"[Internal] Sign up","operationId":"sign_up_api_users_sign_up_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignUpUserRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/confirm-sign-up":{"post":{"tags":["Users"],"summary":"[Internal] Confirm sign up","operationId":"confirm_sign_up_api_users_confirm_sign_up_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmSignUpUserRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/me":{"get":{"tags":["Users"],"summary":"[Internal] Get current user","operationId":"user_get_current_api_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDTO"}}}}}},"patch":{"tags":["Users"],"summary":"[Internal] Update current user","operationId":"user_update_current_api_users_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCurrentUserRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}":{"get":{"tags":["Users"],"summary":"[Internal] Get user by id","operationId":"user_get_by_id_api_users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Users"],"summary":"[Internal] Delete user","operationId":"user_delete_api_users__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Users"],"summary":"[Internal] Update user","operationId":"user_update_api_users__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/status":{"patch":{"tags":["Users"],"summary":"[Internal] Update user status","operationId":"user_update_status_api_users__user_id__status_patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/identity-providers/{provider_id}":{"delete":{"tags":["Users"],"summary":"[Internal] Unlink identity provider","operationId":"unlink_identity_provider_api_users__user_id__identity_providers__provider_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Provider Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks":{"post":{"tags":["Webhooks"],"summary":"[Internal] Create webhook","operationId":"webhook_create_api_webhooks_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Webhooks"],"summary":"[Internal] List webhooks","operationId":"list_webhooks_api_webhooks_get","parameters":[{"name":"active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWebhooksResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/{webhook_id}":{"get":{"tags":["Webhooks"],"summary":"[Internal] Get webhook by id","operationId":"webhook_get_by_id_api_webhooks__webhook_id__get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Webhooks"],"summary":"[Internal] Delete webhook","operationId":"webhook_delete_api_webhooks__webhook_id__delete","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Webhooks"],"summary":"[Internal] Update webhook","operationId":"webhook_update_api_webhooks__webhook_id__patch","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/{webhook_id}/status":{"patch":{"tags":["Webhooks"],"summary":"[Internal] Update webhook status","operationId":"webhook_update_status_api_webhooks__webhook_id__status_patch","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhook-invocations":{"get":{"tags":["Webhooks"],"summary":"List Webhook Invocations","operationId":"list_webhook_invocations_api_webhook_invocations_get","parameters":[{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"}},{"name":"invoice_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invoice Id"}},{"name":"webhook_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Webhook Id"}},{"name":"successful","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Successful"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To Date"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"start_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Key"}},{"name":"sort_ascending","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Sort Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWebhookInvocationsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhook-invocations/{invocation_id}/retry":{"post":{"tags":["Webhooks"],"summary":"Retry Webhook Invocation","operationId":"retry_webhook_invocation_api_webhook_invocations__invocation_id__retry_post","parameters":[{"name":"invocation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invocation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/health-check/":{"get":{"summary":"Health Check","operationId":"health_check_api_health_check__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/":{"get":{"summary":"Health Check","operationId":"health_check_api__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/graphql":{"post":{"summary":"Handle Http Post","operationId":"handle_http_post_api_graphql_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AcceptManagedTenantInvitationRequest":{"properties":{"token":{"type":"string","title":"Token"},"password":{"type":"string","format":"password","title":"Password","writeOnly":true}},"type":"object","required":["token","password"],"title":"AcceptManagedTenantInvitationRequest"},"AcceptTenantManagementInvitationResultDTO":{"properties":{"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"background_task_id":{"type":"string","format":"uuid","title":"Background Task Id"},"email":{"type":"string","title":"Email"}},"type":"object","required":["tenant_id","background_task_id","email"],"title":"AcceptTenantManagementInvitationResultDTO"},"AccessibleTagChildDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"is_protected":{"type":"boolean","title":"Is Protected"}},"type":"object","required":["id","name","color","is_protected"],"title":"AccessibleTagChildDTO"},"AccessibleTagParentDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"is_protected":{"type":"boolean","title":"Is Protected"},"accessible":{"type":"boolean","title":"Accessible"},"children":{"items":{"$ref":"#/components/schemas/AccessibleTagChildDTO"},"type":"array","title":"Children"}},"type":"object","required":["id","name","color","is_protected","accessible","children"],"title":"AccessibleTagParentDTO"},"AccessibleTagsDTO":{"properties":{"grants_all_tags":{"type":"boolean","title":"Grants All Tags"},"parents":{"items":{"$ref":"#/components/schemas/AccessibleTagParentDTO"},"type":"array","title":"Parents"}},"type":"object","required":["grants_all_tags","parents"],"title":"AccessibleTagsDTO"},"AccessibleTenantDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"name":{"type":"string","title":"Name"},"vat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Id"},"relationship_type":{"$ref":"#/components/schemas/RelationshipType"},"relationship_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Relationship Id"},"stats":{"anyOf":[{"$ref":"#/components/schemas/AccessibleTenantStatsDTO"},{"type":"null"}]}},"type":"object","required":["aggregate_id","name","vat_id","relationship_type"],"title":"AccessibleTenantDTO"},"AccessibleTenantStatsDTO":{"properties":{"waiting_review_documents_count":{"type":"integer","title":"Waiting Review Documents Count","default":0},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"total_documents_this_month":{"type":"integer","title":"Total Documents This Month","default":0},"subscription_plan":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionPlanType"},{"type":"null"}]},"business_unit_count":{"type":"integer","title":"Business Unit Count","default":0}},"type":"object","title":"AccessibleTenantStatsDTO"},"ActiveCampaignResponse":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"cta_label":{"type":"string","title":"Cta Label"},"cta_href":{"type":"string","title":"Cta Href"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"icon":{"type":"string","title":"Icon"},"locale":{"type":"string","title":"Locale"}},"type":"object","required":["id","title","body","cta_label","cta_href","image_url","icon","locale"],"title":"ActiveCampaignResponse"},"AddPageCreditsRequest":{"properties":{"amount":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount"},"valid_until":{"type":"string","format":"date","title":"Valid Until"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["amount","valid_until"],"title":"AddPageCreditsRequest"},"AddUsageRequest":{"properties":{"quantity":{"type":"integer","minimum":0.0,"title":"Quantity"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"issue_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issue Link"},"usage_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Usage Date"}},"type":"object","required":["quantity"],"title":"AddUsageRequest"},"ApiExportConfigurationDto":{"properties":{"name":{"type":"string","const":"ApiExportConfigurationDto","title":"Name","default":"ApiExportConfigurationDto"},"export_eslog_envelope":{"type":"boolean","title":"Export Eslog Envelope","default":false}},"type":"object","title":"ApiExportConfigurationDto"},"ApiKeyDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"processing_business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Processing Business Unit Id"},"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"},"role":{"$ref":"#/components/schemas/UserRole"},"active":{"type":"boolean","title":"Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"role_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Role Ids"},"authorized_business_unit_ids":{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array","title":"Authorized Business Unit Ids"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["aggregate_id","tenant_id","processing_business_unit_id","name","value","role","active","created_at","updated_at","role_ids","authorized_business_unit_ids","permissions"],"title":"ApiKeyDTO"},"ApiKeyListItemDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"processing_business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Processing Business Unit Id"},"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"},"role":{"$ref":"#/components/schemas/UserRole"},"active":{"type":"boolean","title":"Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"role_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Role Ids"},"authorized_business_unit_ids":{"items":{"type":"string"},"type":"array","title":"Authorized Business Unit Ids"}},"type":"object","required":["aggregate_id","tenant_id","processing_business_unit_id","name","value","role","active","created_at","updated_at","role_ids"],"title":"ApiKeyListItemDTO"},"AppLanguage":{"type":"string","enum":["en","sl"],"title":"AppLanguage"},"ApprovalConfigurationDto-Input":{"properties":{"name":{"type":"string","const":"ApprovalConfiguration","title":"Name","default":"ApprovalConfiguration"},"enabled":{"type":"boolean","title":"Enabled","default":false},"rules":{"items":{"$ref":"#/components/schemas/ApprovalRuleDto-Input"},"type":"array","title":"Rules","default":[]},"default_approvers":{"items":{"$ref":"#/components/schemas/ApproverRefDto"},"type":"array","title":"Default Approvers","default":[]}},"type":"object","title":"ApprovalConfigurationDto"},"ApprovalConfigurationDto-Output":{"properties":{"name":{"type":"string","const":"ApprovalConfiguration","title":"Name","default":"ApprovalConfiguration"},"enabled":{"type":"boolean","title":"Enabled","default":false},"rules":{"items":{"$ref":"#/components/schemas/ApprovalRuleDto-Output"},"type":"array","title":"Rules","default":[]},"default_approvers":{"items":{"$ref":"#/components/schemas/ApproverRefDto"},"type":"array","title":"Default Approvers","default":[]}},"type":"object","title":"ApprovalConfigurationDto"},"ApprovalDecisionStatus":{"type":"string","enum":["PENDING","APPROVED","REJECTED","SUPERSEDED"],"title":"ApprovalDecisionStatus"},"ApprovalRuleDto-Input":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"filters":{"items":{"$ref":"#/components/schemas/FilterDTO"},"type":"array","title":"Filters"},"filter_logic":{"$ref":"#/components/schemas/FilterLogic","default":"AND"},"approvers":{"items":{"$ref":"#/components/schemas/ApproverRefDto"},"type":"array","title":"Approvers","default":[]},"auto_approve":{"type":"boolean","title":"Auto Approve","default":false}},"type":"object","required":["filters"],"title":"ApprovalRuleDto"},"ApprovalRuleDto-Output":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"filters":{"items":{"$ref":"#/components/schemas/FilterDTO"},"type":"array","title":"Filters"},"filter_logic":{"$ref":"#/components/schemas/FilterLogic","default":"AND"},"approvers":{"items":{"$ref":"#/components/schemas/ApproverRefDto"},"type":"array","title":"Approvers","default":[]},"auto_approve":{"type":"boolean","title":"Auto Approve","default":false}},"type":"object","required":["filters"],"title":"ApprovalRuleDto"},"ApproveDocumentRequest":{"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"ApproveDocumentRequest"},"ApproverRefDto":{"properties":{"type":{"type":"string","enum":["user","role"],"title":"Type"},"id":{"type":"string","format":"uuid","title":"Id"},"identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identifier"}},"type":"object","required":["type","id"],"title":"ApproverRefDto"},"ArchiveExportDocumentsQuery":{"properties":{"filters":{"items":{"$ref":"#/components/schemas/FilterDTO"},"type":"array","title":"Filters","default":[]},"filter_logic":{"$ref":"#/components/schemas/FilterLogic","default":"AND"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"sort_ascending":{"type":"boolean","title":"Sort Ascending","default":true},"order_by_column":{"type":"string","title":"Order By Column","default":"invoice.created_at"},"aggregate_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Aggregate Ids","default":[]},"apply_to_all":{"type":"boolean","title":"Apply To All","default":false},"waiting_my_approval":{"type":"boolean","title":"Waiting My Approval","default":false},"export_type":{"type":"string","enum":["CSV","XLSX"],"title":"Export Type"},"include_pdfs":{"type":"boolean","title":"Include Pdfs"},"include_xmls":{"type":"boolean","title":"Include Xmls"},"columns":{"items":{"type":"string"},"type":"array","title":"Columns"},"email":{"type":"string","title":"Email"}},"type":"object","required":["export_type","include_pdfs","include_xmls","columns","email"],"title":"ArchiveExportDocumentsQuery"},"AspspDTO":{"properties":{"name":{"type":"string","title":"Name"},"country":{"type":"string","title":"Country"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"maximum_consent_validity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maximum Consent Validity"},"psu_types":{"items":{"type":"string"},"type":"array","title":"Psu Types","default":[]}},"type":"object","required":["name","country"],"title":"AspspDTO"},"AzureConfigurationCreateDto":{"properties":{"name":{"type":"string","const":"AzureConfigurationCreateDto","title":"Name","default":"AzureConfigurationCreateDto"},"azure_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Azure Client Id"},"azure_client_secret":{"anyOf":[{"type":"string","format":"password","writeOnly":true},{"type":"null"}],"title":"Azure Client Secret"},"azure_tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Azure Tenant Id"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","title":"AzureConfigurationCreateDto","description":"client_id, client_secret and tenant_id are nullable if\nwe want to update only email without user having to enter credentials at\nevery update"},"AzureConfigurationResponseDto":{"properties":{"name":{"type":"string","const":"AzureConfigurationResponseDto","title":"Name","default":"AzureConfigurationResponseDto"},"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"AzureConfigurationResponseDto"},"AzureSsoCreatePayload":{"properties":{"type":{"type":"string","const":"AZURE_SSO","title":"Type","default":"AZURE_SSO"},"azure_tenant_id":{"type":"string","title":"Azure Tenant Id"},"azure_client_id":{"type":"string","title":"Azure Client Id"},"azure_client_secret":{"type":"string","format":"password","title":"Azure Client Secret","writeOnly":true},"domain":{"type":"string","title":"Domain"},"mail_reading_enabled":{"type":"boolean","title":"Mail Reading Enabled","default":true},"mailbox_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mailbox Email"}},"type":"object","required":["azure_tenant_id","azure_client_id","azure_client_secret","domain"],"title":"AzureSsoCreatePayload"},"AzureSsoMailReadingDTO":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"mailbox_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mailbox Email"}},"type":"object","required":["enabled","mailbox_email"],"title":"AzureSsoMailReadingDTO"},"AzureSsoSettingsDTO":{"properties":{"name":{"type":"string","const":"AzureSsoSettings","title":"Name","default":"AzureSsoSettings"},"domain":{"type":"string","title":"Domain"},"provider_name":{"type":"string","title":"Provider Name"},"mail_reading":{"$ref":"#/components/schemas/AzureSsoMailReadingDTO"}},"type":"object","required":["domain","provider_name","mail_reading"],"title":"AzureSsoSettingsDTO"},"AzureSsoUpdateSettings":{"properties":{"name":{"type":"string","const":"AzureSsoSettings","title":"Name","default":"AzureSsoSettings"},"mail_reading_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mail Reading Enabled"},"mailbox_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mailbox Email"}},"type":"object","title":"AzureSsoUpdateSettings"},"BackgroundTaskStatus":{"type":"string","enum":["SUBMITTED","IN_PROGRESS","ERROR","SUCCESS"],"title":"BackgroundTaskStatus"},"BackgroundTaskStatusDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"$ref":"#/components/schemas/BackgroundTaskStatus"},"task_name":{"type":"string","title":"Task Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"bulk_action_result":{"anyOf":[{"$ref":"#/components/schemas/BulkActionResultDTO"},{"type":"null"}]}},"type":"object","required":["id","status","task_name","created_at","updated_at"],"title":"BackgroundTaskStatusDTO"},"BankAccount":{"properties":{"iban":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iban"},"swift_bic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Swift Bic"},"bank_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Name"}},"type":"object","title":"BankAccount"},"BankAccountDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"uid_external":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uid External"},"iban":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iban"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["id"],"title":"BankAccountDTO"},"BankAuthFailureDTO":{"properties":{"aspsp_name":{"type":"string","title":"Aspsp Name"},"aspsp_country":{"type":"string","title":"Aspsp Country"},"bank_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Display Name"},"psu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Psu Type"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"reauth_connection_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reauth Connection Id"}},"type":"object","required":["aspsp_name","aspsp_country"],"title":"BankAuthFailureDTO","description":"What the UI needs to start the failed bank authorization again."},"BankAuthFailureRequest":{"properties":{"state":{"type":"string","title":"State"},"error_class":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Error Class"},"provider_connection_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Provider Connection Id"}},"type":"object","required":["state"],"title":"BankAuthFailureRequest"},"BankCallbackRequest":{"properties":{"code":{"type":"string","title":"Code"},"state":{"type":"string","title":"State"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"}},"type":"object","required":["code","state"],"title":"BankCallbackRequest"},"BankConnectionDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"aspsp_name":{"type":"string","title":"Aspsp Name"},"aspsp_country":{"type":"string","title":"Aspsp Country"},"bank_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Display Name"},"status":{"type":"string","title":"Status"},"consent_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consent Expires At"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"accounts":{"items":{"$ref":"#/components/schemas/BankAccountDTO"},"type":"array","title":"Accounts","default":[]}},"type":"object","required":["aggregate_id","tenant_id","aspsp_name","aspsp_country","status","created_at","updated_at"],"title":"BankConnectionDTO"},"BaseProcessingConfigurationDto":{"oneOf":[{"$ref":"#/components/schemas/ProcessingConfigurationDto"},{"$ref":"#/components/schemas/MinimaxProcessingConfigurationDto"}],"discriminator":{"propertyName":"name","mapping":{"MinimaxProcessingConfigurationDto":"#/components/schemas/MinimaxProcessingConfigurationDto","ProcessingConfigurationDto":"#/components/schemas/ProcessingConfigurationDto"}}},"BatchDownloadUrlDto":{"properties":{"file_name":{"type":"string","title":"File Name"},"documents_in_file":{"anyOf":[{"items":{"$ref":"#/components/schemas/DocumentInFileDto"},"type":"array"},{"type":"null"}],"title":"Documents In File"}},"type":"object","required":["file_name"],"title":"BatchDownloadUrlDto"},"BatchPollDocumentQueryResult":{"properties":{"status":{"$ref":"#/components/schemas/BatchTaskStatus"},"results":{"anyOf":[{"items":{"$ref":"#/components/schemas/InvoiceInBatchDetailsDto"},"type":"array"},{"type":"null"}],"title":"Results"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["status"],"title":"BatchPollDocumentQueryResult"},"BatchProcessDocumentRequest":{"properties":{"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"file_name":{"type":"string","title":"File Name"},"file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"File"},"file_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"File Url"},"tag_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Tag Ids"}},"type":"object","required":["file_name"],"title":"BatchProcessDocumentRequest"},"BatchTaskStatus":{"type":"string","enum":["IN_PROGRESS","ERROR","SUCCESS"],"title":"BatchTaskStatus"},"BatchUploadUrlDto":{"properties":{"url":{"type":"string","title":"Url"},"x-amz-tagging":{"type":"string","title":"X-Amz-Tagging"},"poll_key":{"type":"string","format":"uuid","title":"Poll Key"}},"type":"object","required":["url","x-amz-tagging","poll_key"],"title":"BatchUploadUrlDto"},"BillingPayer":{"type":"string","enum":["MANAGER","CLIENT"],"title":"BillingPayer","description":"Who pays for a given concern on a managed tenant relationship."},"BlockedIbanDTO":{"properties":{"iban":{"type":"string","title":"Iban"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["iban","created_at"],"title":"BlockedIbanDTO"},"BlockedTransactionsSummaryDTO":{"properties":{"total":{"type":"integer","title":"Total"},"by_category":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Category"}},"type":"object","required":["total","by_category"],"title":"BlockedTransactionsSummaryDTO"},"Body_batch_process_document_upload_api_v1_batch_process_document_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"tag_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Tag Ids"}},"type":"object","required":["file"],"title":"Body_batch_process_document_upload_api_v1_batch_process_document_upload_post"},"Body_process_invoice_upload_api__endpoint_version__process_invoice_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"tag_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Tag Ids"},"transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"}},"type":"object","required":["file"],"title":"Body_process_invoice_upload_api__endpoint_version__process_invoice_upload_post"},"BulkActionFailureDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["id","reason"],"title":"BulkActionFailureDTO"},"BulkActionResultDTO":{"properties":{"ok_count":{"type":"integer","title":"Ok Count"},"failures":{"items":{"$ref":"#/components/schemas/BulkActionFailureDTO"},"type":"array","title":"Failures"}},"type":"object","required":["ok_count","failures"],"title":"BulkActionResultDTO"},"BulkActionSubmittedDTO":{"properties":{"task_id":{"type":"string","format":"uuid","title":"Task Id"},"skipped":{"items":{"$ref":"#/components/schemas/SkippedDocumentDTO"},"type":"array","title":"Skipped","default":[]}},"type":"object","required":["task_id"],"title":"BulkActionSubmittedDTO"},"BulkApproveDocumentsQuery":{"properties":{"filters":{"items":{"$ref":"#/components/schemas/FilterDTO"},"type":"array","title":"Filters","default":[]},"filter_logic":{"$ref":"#/components/schemas/FilterLogic","default":"AND"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"aggregate_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Aggregate Ids","default":[]},"apply_to_all":{"type":"boolean","title":"Apply To All","default":false},"waiting_my_approval":{"type":"boolean","title":"Waiting My Approval","default":false},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"BulkApproveDocumentsQuery"},"BulkMoveToBusinessUnitQuery":{"properties":{"filters":{"items":{"$ref":"#/components/schemas/FilterDTO"},"type":"array","title":"Filters","default":[]},"filter_logic":{"$ref":"#/components/schemas/FilterLogic","default":"AND"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"aggregate_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Aggregate Ids","default":[]},"apply_to_all":{"type":"boolean","title":"Apply To All","default":false},"waiting_my_approval":{"type":"boolean","title":"Waiting My Approval","default":false},"new_business_unit_id":{"type":"string","format":"uuid","title":"New Business Unit Id"}},"type":"object","required":["new_business_unit_id"],"title":"BulkMoveToBusinessUnitQuery"},"BulkRejectApprovalDocumentsQuery":{"properties":{"filters":{"items":{"$ref":"#/components/schemas/FilterDTO"},"type":"array","title":"Filters","default":[]},"filter_logic":{"$ref":"#/components/schemas/FilterLogic","default":"AND"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"aggregate_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Aggregate Ids","default":[]},"apply_to_all":{"type":"boolean","title":"Apply To All","default":false},"waiting_my_approval":{"type":"boolean","title":"Waiting My Approval","default":false},"note":{"type":"string","title":"Note"}},"type":"object","required":["note"],"title":"BulkRejectApprovalDocumentsQuery"},"Bulkdocumentactionquery":{"properties":{"filters":{"items":{"$ref":"#/components/schemas/FilterDTO"},"type":"array","title":"Filters","default":[]},"filter_logic":{"$ref":"#/components/schemas/FilterLogic","default":"AND"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"aggregate_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Aggregate Ids","default":[]},"apply_to_all":{"type":"boolean","title":"Apply To All","default":false},"waiting_my_approval":{"type":"boolean","title":"Waiting My Approval","default":false}},"type":"object","title":"Bulkdocumentactionquery"},"BusinessUnitDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"ident":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ident"},"vat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Id"},"integration_type":{"$ref":"#/components/schemas/IntegrationType"},"name":{"type":"string","title":"Name"},"active":{"type":"boolean","title":"Active"},"integration_configuration":{"anyOf":[{"$ref":"#/components/schemas/IntegrationConfigurationResponseDto"},{"type":"null"}]},"email_import_configuration":{"anyOf":[{"$ref":"#/components/schemas/BusinessUnitEmailImportConfigurationDto"},{"type":"null"}]},"processing_configuration":{"anyOf":[{"$ref":"#/components/schemas/ProcessingConfigurationDto"},{"type":"null"}]},"export_configuration":{"anyOf":[{"$ref":"#/components/schemas/ExportConfigurationDto"},{"type":"null"}]},"minimax_configuration":{"anyOf":[{"$ref":"#/components/schemas/MinimaxConfiguration"},{"type":"null"}]},"number_invoices_waiting_review":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Invoices Waiting Review"},"extract_line_items":{"type":"boolean","title":"Extract Line Items","default":false},"read_inbox":{"type":"boolean","title":"Read Inbox"},"inbox_email":{"type":"string","title":"Inbox Email"},"notification_configuration":{"anyOf":[{"$ref":"#/components/schemas/NotificationConfiguration"},{"type":"null"}]},"approval_configuration":{"anyOf":[{"$ref":"#/components/schemas/ApprovalConfigurationDto-Output"},{"type":"null"}]},"email_whitelist_configuration":{"$ref":"#/components/schemas/EmailWhitelistConfiguration"},"document_type_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Document Type Id"},"in_deletion_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"In Deletion Since"}},"type":"object","required":["aggregate_id","tenant_id","created_at","updated_at","ident","vat_id","integration_type","name","active","integration_configuration","email_import_configuration","processing_configuration","export_configuration","minimax_configuration","read_inbox","inbox_email","notification_configuration","approval_configuration","email_whitelist_configuration","document_type_id","in_deletion_since"],"title":"BusinessUnitDTO"},"BusinessUnitEmailImportConfigurationDto":{"properties":{"name":{"type":"string","const":"BusinessUnitEmailImportConfigurationDto","title":"Name","default":"BusinessUnitEmailImportConfigurationDto"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"proforma_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proforma Email"},"read_directly":{"type":"boolean","title":"Read Directly","default":false},"entries":{"items":{"$ref":"#/components/schemas/EmailImportEntryDto"},"type":"array","title":"Entries","default":[]}},"type":"object","title":"BusinessUnitEmailImportConfigurationDto"},"BusinessUnitExportFolderDTO":{"properties":{"business_unit_id":{"type":"string","format":"uuid","title":"Business Unit Id"},"folder_path":{"type":"string","title":"Folder Path"}},"type":"object","required":["business_unit_id","folder_path"],"title":"BusinessUnitExportFolderDTO"},"BusinessUnitMinimaxConfigurationDto":{"properties":{"name":{"type":"string","const":"MinimaxConfiguration","title":"Name","default":"MinimaxConfiguration"},"minimax_inbox_email_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Minimax Inbox Email Address"},"send_eslog_after_processing":{"type":"boolean","title":"Send Eslog After Processing","default":false},"allowed_inbox_types":{"anyOf":[{"items":{"$ref":"#/components/schemas/MinimaxInboxType"},"type":"array"},{"type":"null"}],"title":"Allowed Inbox Types"}},"type":"object","title":"BusinessUnitMinimaxConfigurationDto"},"BusinessUnitSummary":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"name":{"type":"string","title":"Name"},"total_size_in_bytes":{"type":"integer","title":"Total Size In Bytes"},"number_of_documents":{"type":"integer","title":"Number Of Documents"}},"type":"object","required":["aggregate_id","name","total_size_in_bytes","number_of_documents"],"title":"BusinessUnitSummary"},"BusinessUnitUsageDTO":{"properties":{"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"total_pages":{"type":"integer","title":"Total Pages"},"total_documents":{"type":"integer","title":"Total Documents"},"total_bytes":{"type":"integer","title":"Total Bytes"},"avg_pages_per_document":{"type":"number","title":"Avg Pages Per Document"},"percentage_of_total_pages":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percentage Of Total Pages"},"percentage_of_total_documents":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percentage Of Total Documents"},"is_client":{"type":"boolean","title":"Is Client","default":false},"client_tenant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Tenant Name"},"business_unit_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Unit Name"}},"type":"object","required":["total_pages","total_documents","total_bytes","avg_pages_per_document"],"title":"BusinessUnitUsageDTO","description":"Business unit usage summary"},"CampaignResponse":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"slug":{"type":"string","title":"Slug"},"title":{"additionalProperties":{"type":"string"},"type":"object","title":"Title"},"body":{"additionalProperties":{"type":"string"},"type":"object","title":"Body"},"cta_label":{"additionalProperties":{"type":"string"},"type":"object","title":"Cta Label"},"cta_href":{"type":"string","title":"Cta Href"},"icon":{"type":"string","title":"Icon"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"is_active":{"type":"boolean","title":"Is Active"},"valid_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid To"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["aggregate_id","slug","title","body","cta_label","cta_href","icon","image_url","is_active","valid_from","valid_to","created_at","updated_at","version"],"title":"CampaignResponse"},"CashFlowDTO":{"properties":{"bank_balance":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Bank Balance"},"account_count":{"type":"integer","title":"Account Count"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"paid_last_period":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Paid Last Period"},"cash_flow_series":{"items":{"$ref":"#/components/schemas/CashFlowDailyEntryDTO"},"type":"array","title":"Cash Flow Series"}},"type":"object","required":["bank_balance","account_count","last_synced_at","paid_last_period","cash_flow_series"],"title":"CashFlowDTO"},"CashFlowDailyEntryDTO":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"inflow":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Inflow"},"outflow":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Outflow"}},"type":"object","required":["date","inflow","outflow"],"title":"CashFlowDailyEntryDTO"},"ConfirmDocumentRequest":{"properties":{"details":{"$ref":"#/components/schemas/DocumentConfirmedDetails"},"is_proforma":{"type":"boolean","title":"Is Proforma","default":false},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"merge_attachments":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Merge Attachments","default":[]},"minimax_customer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimax Customer Id"},"ignore_duplicate_check":{"type":"boolean","title":"Ignore Duplicate Check","default":false},"partner_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Partner Id"}},"type":"object","required":["details"],"title":"ConfirmDocumentRequest"},"ConfirmSignUpUserRequest":{"properties":{"username":{"type":"string","title":"Username"},"confirmation_code":{"type":"string","title":"Confirmation Code"}},"type":"object","required":["username","confirmation_code"],"title":"ConfirmSignUpUserRequest"},"ConnectBankRequest":{"properties":{"aspsp_name":{"type":"string","title":"Aspsp Name"},"aspsp_country":{"type":"string","title":"Aspsp Country"},"bank_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Display Name"},"psu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Psu Type"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"locale":{"anyOf":[{"$ref":"#/components/schemas/AppLanguage"},{"type":"null"}]}},"type":"object","required":["aspsp_name","aspsp_country"],"title":"ConnectBankRequest"},"CountDocumentsResponse":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"CountDocumentsResponse"},"CreateApiKeyRequest":{"properties":{"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"name":{"type":"string","title":"Name"},"role":{"anyOf":[{"$ref":"#/components/schemas/UserRole"},{"type":"null"}]},"role_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Role Ids"},"authorized_business_unit_ids":{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array","minItems":1,"title":"Authorized Business Unit Ids"}},"type":"object","required":["business_unit_id","name","authorized_business_unit_ids"],"title":"CreateApiKeyRequest"},"CreateBusinessUnitRequest":{"properties":{"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"name":{"type":"string","title":"Name"},"vat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Id"},"ident":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ident"},"extract_line_items":{"type":"boolean","title":"Extract Line Items","default":false},"inbox_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inbox Email"},"notification_configuration":{"anyOf":[{"$ref":"#/components/schemas/NotificationConfiguration"},{"type":"null"}]},"email_whitelist_configuration":{"$ref":"#/components/schemas/EmailWhitelistConfiguration"},"document_type_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Document Type Id"},"read_inbox":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read Inbox"},"integration_configuration":{"anyOf":[{"$ref":"#/components/schemas/IntegrationConfigurationCreateDto"},{"type":"null"}]},"email_import_configuration":{"anyOf":[{"$ref":"#/components/schemas/BusinessUnitEmailImportConfigurationDto"},{"type":"null"}]},"processing_configuration":{"anyOf":[{"$ref":"#/components/schemas/ProcessingConfigurationDto"},{"type":"null"}]},"export_configuration":{"anyOf":[{"$ref":"#/components/schemas/ExportConfigurationDto"},{"type":"null"}]},"minimax_configuration":{"anyOf":[{"$ref":"#/components/schemas/BusinessUnitMinimaxConfigurationDto"},{"type":"null"}]},"integration_type":{"$ref":"#/components/schemas/IntegrationType"},"approval_configuration":{"anyOf":[{"$ref":"#/components/schemas/ApprovalConfigurationDto-Input"},{"type":"null"}]}},"type":"object","required":["name","notification_configuration","email_whitelist_configuration","integration_type"],"title":"CreateBusinessUnitRequest"},"CreateCampaignRequest":{"properties":{"slug":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","title":"Slug","description":"Stable public identifier, e.g. 'referral-2026'."},"title":{"additionalProperties":{"type":"string"},"type":"object","title":"Title"},"body":{"additionalProperties":{"type":"string"},"type":"object","title":"Body"},"cta_label":{"additionalProperties":{"type":"string"},"type":"object","title":"Cta Label"},"cta_href":{"type":"string","maxLength":2048,"title":"Cta Href"},"icon":{"type":"string","maxLength":32,"pattern":"^[a-z0-9-]+$","title":"Icon","default":"gift"},"image_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Image Url"},"is_active":{"type":"boolean","title":"Is Active","default":true},"valid_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid To"}},"type":"object","required":["slug","title","body","cta_label","cta_href"],"title":"CreateCampaignRequest"},"CreateDocumentNoteRequest":{"properties":{"text":{"type":"string","minLength":1,"title":"Text"}},"type":"object","required":["text"],"title":"CreateDocumentNoteRequest"},"CreateDocumentTypeRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"extract_vat_rates":{"type":"boolean","title":"Extract Vat Rates"},"is_system":{"type":"boolean","title":"Is System","default":false},"fields":{"items":{"$ref":"#/components/schemas/DocumentTypeCreateFieldDTO"},"type":"array","title":"Fields"}},"type":"object","required":["name","description","extract_vat_rates","fields"],"title":"CreateDocumentTypeRequest"},"CreateFieldRequest":{"properties":{"display_name":{"$ref":"#/components/schemas/NonEmptyStr"},"description":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]},"extractable":{"type":"boolean","title":"Extractable"},"field_type":{"$ref":"#/components/schemas/FieldType"},"required":{"type":"boolean","title":"Required","default":false},"unique":{"type":"boolean","title":"Unique","default":false},"default_value":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]},"multiple_values":{"type":"boolean","title":"Multiple Values","default":false},"preset":{"anyOf":[{"$ref":"#/components/schemas/ExtractionFieldPreset"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/FieldConfiguration-Input"},{"type":"null"}]}},"type":"object","required":["display_name","description","extractable","field_type"],"title":"CreateFieldRequest"},"CreateIntegrationRequest":{"oneOf":[{"$ref":"#/components/schemas/AzureSsoCreatePayload"},{"$ref":"#/components/schemas/MinimaxCreatePayload"},{"$ref":"#/components/schemas/InforCreatePayload"}],"title":"CreateIntegrationRequest","discriminator":{"propertyName":"type","mapping":{"AZURE_SSO":"#/components/schemas/AzureSsoCreatePayload","INFOR":"#/components/schemas/InforCreatePayload","MINIMAX":"#/components/schemas/MinimaxCreatePayload"}}},"CreateMinimaxSupplierRequest":{"properties":{"country_code":{"type":"string","pattern":"^\\w{2}$","title":"Country Code","default":"SI"},"street_and_number":{"type":"string","title":"Street And Number"},"city":{"type":"string","title":"City"},"postal_code":{"type":"string","title":"Postal Code"},"name":{"type":"string","title":"Name"},"tax_number":{"type":"string","title":"Tax Number"},"currency_code":{"type":"string","enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VED","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],"maxLength":3,"minLength":3,"title":"Currency Code","default":"EUR"}},"type":"object","required":["street_and_number","city","postal_code","name","tax_number"],"title":"CreateMinimaxSupplierRequest"},"CreatePartnerRequest":{"properties":{"name":{"type":"string","title":"Name"},"vat_id":{"type":"string","title":"Vat Id"},"registration_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registration Number"},"address_line_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"default_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Currency"},"is_vat_registered":{"type":"boolean","title":"Is Vat Registered","default":false},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"bank_accounts":{"items":{"$ref":"#/components/schemas/BankAccount"},"type":"array","title":"Bank Accounts","default":[]}},"type":"object","required":["name","vat_id"],"title":"CreatePartnerRequest"},"CreateRoleRequest":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["name"],"title":"CreateRoleRequest"},"CreateSimpleBusinessUnitRequest":{"properties":{"name":{"type":"string","title":"Name"},"vat_id":{"type":"string","title":"Vat Id"}},"type":"object","required":["name","vat_id"],"title":"CreateSimpleBusinessUnitRequest"},"CreateSubscriptionRequest":{"properties":{"subscription_plan_type":{"$ref":"#/components/schemas/SubscriptionPlanType"},"usage_package_type":{"$ref":"#/components/schemas/UsagePackageType"},"usage_package_pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Usage Package Pages"},"usage_package_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usage Package Price"},"usage_package_price_per_additional_page":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usage Package Price Per Additional Page"}},"type":"object","required":["subscription_plan_type","usage_package_type"],"title":"CreateSubscriptionRequest"},"CreateTagRequest":{"properties":{"name":{"type":"string","title":"Name"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description"},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Color"},"is_protected":{"type":"boolean","title":"Is Protected","default":false}},"type":"object","required":["name"],"title":"CreateTagRequest"},"CreateUserRequest":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"role":{"anyOf":[{"$ref":"#/components/schemas/UserRole"},{"type":"null"}]},"role_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Role Ids"},"authorized_business_unit_ids":{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array","minItems":1,"title":"Authorized Business Unit Ids"},"tag_ids":{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array","title":"Tag Ids"},"locale":{"type":"string","title":"Locale","default":"sl"},"can_export":{"type":"boolean","title":"Can Export","default":true},"notification_preferences":{"anyOf":[{"$ref":"#/components/schemas/NotificationPreferences"},{"type":"null"}]},"notification_business_unit_ids":{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array","title":"Notification Business Unit Ids"}},"type":"object","required":["name","email","authorized_business_unit_ids"],"title":"CreateUserRequest"},"CreateWebhookRequest":{"properties":{"event_names":{"items":{"type":"string"},"type":"array","title":"Event Names","default":["DocumentExtractionFinished","DocumentExtractionFailed"]},"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"business_unit_ids":{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array","minItems":1,"title":"Business Unit Ids","default":["*"]}},"type":"object","required":["url"],"title":"CreateWebhookRequest"},"DailyUsageResponseDTO":{"properties":{"usage_data":{"items":{"$ref":"#/components/schemas/UsageDataPointDTO"},"type":"array","title":"Usage Data"},"business_unit_breakdown":{"items":{"$ref":"#/components/schemas/BusinessUnitUsageDTO"},"type":"array","title":"Business Unit Breakdown"},"total_pages":{"type":"integer","title":"Total Pages"},"total_documents":{"type":"integer","title":"Total Documents"},"total_bytes":{"type":"integer","title":"Total Bytes"},"period_start":{"type":"string","format":"date","title":"Period Start"},"period_end":{"type":"string","format":"date","title":"Period End"}},"type":"object","required":["usage_data","business_unit_breakdown","total_pages","total_documents","total_bytes","period_start","period_end"],"title":"DailyUsageResponseDTO","description":"Daily usage data response"},"DiscountDetails":{"properties":{"business_units":{"$ref":"#/components/schemas/DiscountState","default":{"current_discount_percentage":0.0,"scheduled_discounts":[]}},"users":{"$ref":"#/components/schemas/DiscountState","default":{"current_discount_percentage":0.0,"scheduled_discounts":[]}},"package":{"$ref":"#/components/schemas/DiscountState","default":{"current_discount_percentage":0.0,"scheduled_discounts":[]}},"additional_usage":{"$ref":"#/components/schemas/DiscountState","default":{"current_discount_percentage":0.0,"scheduled_discounts":[]}},"line_item_usage":{"$ref":"#/components/schemas/DiscountState","default":{"current_discount_percentage":0.0,"scheduled_discounts":[]}},"additional_field_usage":{"$ref":"#/components/schemas/DiscountState","default":{"current_discount_percentage":0.0,"scheduled_discounts":[]}},"support_hours":{"$ref":"#/components/schemas/DiscountState","default":{"current_discount_percentage":0.0,"scheduled_discounts":[]}},"support_package":{"$ref":"#/components/schemas/DiscountState","default":{"current_discount_percentage":0.0,"scheduled_discounts":[]}},"storage":{"$ref":"#/components/schemas/DiscountState","default":{"current_discount_percentage":0.0,"scheduled_discounts":[]}}},"type":"object","title":"DiscountDetails"},"DiscountState":{"properties":{"current_discount_percentage":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Current Discount Percentage","default":0.0},"scheduled_discounts":{"items":{"$ref":"#/components/schemas/ScheduledDiscount"},"type":"array","title":"Scheduled Discounts"}},"type":"object","title":"DiscountState"},"DocumentApprovalDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"status":{"$ref":"#/components/schemas/ApprovalDecisionStatus"},"sequence":{"type":"integer","title":"Sequence"},"approver_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Approver User Id"},"approver_role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Approver Role Id"},"approver_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approver Name"},"matched_rule_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Matched Rule Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"decision_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Note"},"decided_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["aggregate_id","document_id","status","sequence","approver_user_id","approver_role_id","approver_name","matched_rule_id","reason","decision_note","decided_by","decided_at","created_at","updated_at"],"title":"DocumentApprovalDTO"},"DocumentApprovalStatus":{"type":"string","enum":["NOT_REQUIRED","PENDING_EVALUATION","WAITING_APPROVAL","APPROVED","REJECTED"],"title":"DocumentApprovalStatus","description":"The approval axis, orthogonal to ``DocumentStatus``."},"DocumentApprovalsDTO":{"properties":{"approvals":{"items":{"$ref":"#/components/schemas/DocumentApprovalDTO"},"type":"array","title":"Approvals"},"is_unassigned":{"type":"boolean","title":"Is Unassigned"}},"type":"object","required":["approvals","is_unassigned"],"title":"DocumentApprovalsDTO"},"DocumentConfirmedDetails":{"properties":{"fields":{"items":{"$ref":"#/components/schemas/TrainingFieldValue"},"type":"array","title":"Fields"},"vat_rates":{"items":{"$ref":"#/components/schemas/VatRateDTO"},"type":"array","title":"Vat Rates","default":[]},"line_items":{"items":{"items":{"$ref":"#/components/schemas/TrainingFieldValue"},"type":"array"},"type":"array","title":"Line Items","default":[]}},"additionalProperties":false,"type":"object","required":["fields"],"title":"DocumentConfirmedDetails"},"DocumentDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"business_unit_id":{"type":"string","format":"uuid","title":"Business Unit Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"modified_by":{"type":"string","title":"Modified By"},"pdf_s3_location":{"$ref":"#/components/schemas/S3Location"},"source":{"anyOf":[{"$ref":"#/components/schemas/Source"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/DocumentStatus"},"approval_status":{"$ref":"#/components/schemas/DocumentApprovalStatus"},"xml_s3_location":{"anyOf":[{"$ref":"#/components/schemas/S3Location"},{"type":"null"}]},"adjusted_s3_location":{"anyOf":[{"$ref":"#/components/schemas/S3Location"},{"type":"null"}]},"details":{"anyOf":[{"$ref":"#/components/schemas/DocumentDetails"},{"type":"null"}]},"received_details":{"anyOf":[{"$ref":"#/components/schemas/DocumentDetails"},{"type":"null"}]},"text_blocks_s3_location":{"anyOf":[{"$ref":"#/components/schemas/S3Location"},{"type":"null"}]},"typless_object_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Typless Object Id"},"is_proforma":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Proforma"},"merged_with_aggregate_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Merged With Aggregate Id"},"extraction_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extraction Id"},"recognition_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recognition Type"},"document_type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type Name"},"document_type_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Document Type Id"},"processed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Processed By"},"extraction_failed":{"type":"boolean","title":"Extraction Failed"},"file_name":{"type":"string","title":"File Name"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"locked_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Locked By"},"locked_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Locked Until"}},"type":"object","required":["aggregate_id","tenant_id","business_unit_id","created_at","updated_at","modified_by","pdf_s3_location","source","status","approval_status","xml_s3_location","adjusted_s3_location","details","received_details","text_blocks_s3_location","typless_object_id","is_proforma","merged_with_aggregate_id","extraction_id","recognition_type","document_type_name","document_type_id","processed_by","extraction_failed","file_name","notes","locked_by","locked_until"],"title":"DocumentDTO"},"DocumentDetails":{"properties":{"fields":{"items":{"$ref":"#/components/schemas/ExtractedField"},"type":"array","title":"Fields","default":[]},"vat_rates":{"items":{"items":{"$ref":"#/components/schemas/ExtractedField"},"type":"array"},"type":"array","title":"Vat Rates","default":[]},"line_items":{"items":{"items":{"$ref":"#/components/schemas/ExtractedField"},"type":"array"},"type":"array","title":"Line Items","default":[]}},"type":"object","title":"DocumentDetails"},"DocumentDetailsDTO":{"properties":{"fields":{"items":{"$ref":"#/components/schemas/ExtractedField"},"type":"array","title":"Fields","default":[]},"vat_rates":{"items":{"$ref":"#/components/schemas/VatRateDTO"},"type":"array","title":"Vat Rates"},"line_items":{"items":{"items":{"$ref":"#/components/schemas/ExtractedField"},"type":"array"},"type":"array","title":"Line Items","default":[]}},"type":"object","required":["vat_rates"],"title":"DocumentDetailsDTO"},"DocumentExportDataDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"xml_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Xml Url"},"original_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Original Url"},"file_name":{"type":"string","title":"File Name"},"envelope_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Envelope Url"}},"type":"object","required":["aggregate_id","xml_url","original_url","file_name","envelope_url"],"title":"DocumentExportDataDTO"},"DocumentInFileDto":{"properties":{"file_name":{"type":"string","title":"File Name"},"url":{"type":"string","title":"Url"}},"type":"object","required":["file_name","url"],"title":"DocumentInFileDto"},"DocumentListItemDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"s3_location":{"$ref":"#/components/schemas/S3Location"},"thumbnail_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Thumbnail Url"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceTypes"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/DocumentStatus"},"approval_status":{"$ref":"#/components/schemas/DocumentApprovalStatus"},"supplier_vat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Vat Id"},"supplier_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Name"},"extraction_failed":{"type":"boolean","title":"Extraction Failed"},"recognition_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recognition Type"},"is_proforma":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Proforma"},"file_name":{"type":"string","title":"File Name"},"document_type_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Document Type Id"},"source_type":{"type":"string","title":"Source Type"},"created_by":{"type":"string","title":"Created By"},"modified_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modified By"},"locked_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Locked By"},"locked_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Locked Until"}},"type":"object","required":["aggregate_id","created_at","updated_at","s3_location","source","status","approval_status","supplier_vat_id","supplier_name","extraction_failed","recognition_type","is_proforma","file_name","document_type_id","source_type","created_by","modified_by","locked_by","locked_until"],"title":"DocumentListItemDTO"},"DocumentListItemWithDetailsDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"s3_location":{"$ref":"#/components/schemas/S3Location"},"thumbnail_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Thumbnail Url"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceTypes"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/DocumentStatus"},"approval_status":{"$ref":"#/components/schemas/DocumentApprovalStatus"},"supplier_vat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Vat Id"},"supplier_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Name"},"extraction_failed":{"type":"boolean","title":"Extraction Failed"},"recognition_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recognition Type"},"is_proforma":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Proforma"},"file_name":{"type":"string","title":"File Name"},"document_type_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Document Type Id"},"source_type":{"type":"string","title":"Source Type"},"created_by":{"type":"string","title":"Created By"},"modified_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modified By"},"locked_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Locked By"},"locked_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Locked Until"},"details":{"anyOf":[{"$ref":"#/components/schemas/DocumentDetails"},{"type":"null"}]},"business_unit_id":{"type":"string","format":"uuid","title":"Business Unit Id"},"tags":{"items":{"$ref":"#/components/schemas/TagDTO"},"type":"array","title":"Tags"},"payment_status":{"anyOf":[{"$ref":"#/components/schemas/PaymentStatus"},{"type":"null"}]},"partner_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Partner Id"},"partner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner Name"},"can_decide":{"type":"boolean","title":"Can Decide","default":false}},"type":"object","required":["aggregate_id","created_at","updated_at","s3_location","source","status","approval_status","supplier_vat_id","supplier_name","extraction_failed","recognition_type","is_proforma","file_name","document_type_id","source_type","created_by","modified_by","locked_by","locked_until","details","business_unit_id","tags"],"title":"DocumentListItemWithDetailsDTO"},"DocumentNoteDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"author":{"type":"string","title":"Author"},"text":{"type":"string","title":"Text"},"source":{"$ref":"#/components/schemas/NoteSource"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["aggregate_id","document_id","author","text","source","created_at","updated_at"],"title":"DocumentNoteDTO"},"DocumentStatus":{"type":"string","enum":["CREATED","EXTRACTION_IN_PROGRESS","EXTRACTION_FINISHED","EXTRACTION_FAILED","WAITING_REVIEW","IN_REVIEW","CONFIRMED","WAITING_EXPORT","IN_EXPORT","REJECTED","EXPORTED","EXPORT_ERROR","MERGED"],"title":"DocumentStatus"},"DocumentTypeCreateFieldDTO":{"properties":{"field_id":{"type":"string","format":"uuid","title":"Field Id"},"field_size_cols":{"type":"integer","title":"Field Size Cols","default":6},"hidden":{"type":"boolean","title":"Hidden","default":false},"override_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Display Name"},"override_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Override Required"},"override_unique":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Override Unique"},"should_override_default_value":{"type":"boolean","title":"Should Override Default Value","default":false},"override_default_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Default Value"},"override_multiple_values":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Override Multiple Values"}},"type":"object","required":["field_id"],"title":"DocumentTypeCreateFieldDTO"},"DocumentTypeDTO":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"aggregate_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Aggregate Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"extract_vat_rates":{"type":"boolean","title":"Extract Vat Rates"},"is_system":{"type":"boolean","title":"Is System","default":false},"fields":{"items":{"$ref":"#/components/schemas/DocumentTypeFieldDTO"},"type":"array","title":"Fields"}},"type":"object","required":["created_at","updated_at","name","description","extract_vat_rates","fields"],"title":"DocumentTypeDTO"},"DocumentTypeFieldDTO":{"properties":{"display_name":{"$ref":"#/components/schemas/NonEmptyStr"},"description":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]},"extractable":{"type":"boolean","title":"Extractable"},"field_type":{"$ref":"#/components/schemas/FieldType"},"required":{"type":"boolean","title":"Required","default":false},"unique":{"type":"boolean","title":"Unique","default":false},"default_value":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]},"multiple_values":{"type":"boolean","title":"Multiple Values","default":false},"preset":{"anyOf":[{"$ref":"#/components/schemas/ExtractionFieldPreset"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/FieldConfiguration-Output"},{"type":"null"}]},"name":{"$ref":"#/components/schemas/NonEmptyStr"},"aggregate_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Aggregate Id"},"tenant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"field_size_cols":{"type":"integer","title":"Field Size Cols"},"hidden":{"type":"boolean","title":"Hidden","default":false},"override_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Display Name"},"override_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Override Required"},"override_unique":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Override Unique"},"should_override_default_value":{"type":"boolean","title":"Should Override Default Value","default":false},"override_default_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Default Value"},"override_multiple_values":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Override Multiple Values"}},"type":"object","required":["display_name","description","extractable","field_type","name","aggregate_id","tenant_id","created_at","field_size_cols"],"title":"DocumentTypeFieldDTO"},"EditDocumentNoteRequest":{"properties":{"text":{"type":"string","minLength":1,"title":"Text"}},"type":"object","required":["text"],"title":"EditDocumentNoteRequest"},"EligibleApproverDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["id","name"],"title":"EligibleApproverDTO"},"EligibleApproversDTO":{"properties":{"users":{"items":{"$ref":"#/components/schemas/EligibleApproverDTO"},"type":"array","title":"Users"},"roles":{"items":{"$ref":"#/components/schemas/EligibleApproverDTO"},"type":"array","title":"Roles"}},"type":"object","required":["users","roles"],"title":"EligibleApproversDTO"},"EmailExportConfigurationDto":{"properties":{"name":{"type":"string","const":"EmailExportConfigurationDto","title":"Name","default":"EmailExportConfigurationDto"},"email":{"type":"string","title":"Email"},"export_eslog_envelope":{"type":"boolean","title":"Export Eslog Envelope"}},"type":"object","required":["email","export_eslog_envelope"],"title":"EmailExportConfigurationDto"},"EmailImportEntryDto":{"properties":{"email":{"type":"string","title":"Email"},"type":{"type":"string","title":"Type"},"document_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Category"}},"type":"object","required":["email","type"],"title":"EmailImportEntryDto"},"EmailWhitelistConfiguration":{"properties":{"allow_all":{"type":"boolean","title":"Allow All","default":true},"whitelisted_emails":{"items":{"type":"string"},"type":"array","title":"Whitelisted Emails","default":[]},"whitelisted_domains":{"items":{"type":"string"},"type":"array","title":"Whitelisted Domains","default":[]}},"type":"object","title":"EmailWhitelistConfiguration"},"EventDetailsDTO":{"properties":{"event_id":{"type":"string","format":"uuid","title":"Event Id"},"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"modified_by":{"type":"string","title":"Modified By"},"event_time":{"type":"string","format":"date-time","title":"Event Time"},"entity_id":{"type":"string","format":"uuid","title":"Entity Id"},"event_json":{"additionalProperties":true,"type":"object","title":"Event Json"}},"type":"object","required":["event_id","name","version","modified_by","event_time","entity_id","event_json"],"title":"EventDetailsDTO"},"ExportConfigurationDto":{"oneOf":[{"$ref":"#/components/schemas/FolderExportConfigurationDto"},{"$ref":"#/components/schemas/EmailExportConfigurationDto"},{"$ref":"#/components/schemas/ApiExportConfigurationDto"}],"discriminator":{"propertyName":"name","mapping":{"ApiExportConfigurationDto":"#/components/schemas/ApiExportConfigurationDto","EmailExportConfigurationDto":"#/components/schemas/EmailExportConfigurationDto","FolderExportConfigurationDto":"#/components/schemas/FolderExportConfigurationDto"}}},"ExtractedField":{"properties":{"name":{"type":"string","title":"Name"},"data_type":{"$ref":"#/components/schemas/FieldType"},"values":{"items":{"$ref":"#/components/schemas/ExtractedValue"},"type":"array","title":"Values"},"multiple_values":{"type":"boolean","title":"Multiple Values","default":false}},"type":"object","required":["name","data_type","values"],"title":"ExtractedField"},"ExtractedValue":{"properties":{"x":{"type":"integer","title":"X","default":-1},"y":{"type":"integer","title":"Y","default":-1},"width":{"type":"integer","title":"Width","default":-1},"height":{"type":"integer","title":"Height","default":-1},"page_number":{"type":"integer","title":"Page Number","default":-1},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"confidence_score":{"type":"number","title":"Confidence Score","default":0.0}},"type":"object","title":"ExtractedValue"},"ExtractionFieldPreset":{"type":"string","enum":["SUPPLIER_NAME","BUYER_NAME","SUPPLIER_VAT_ID","BUYER_VAT_ID","SUPPLIER_EMAIL","BUYER_EMAIL","INVOICE_NUMBER","INVOICE_DATE","PAYMENT_DUE_DATE","SERVICE_DATE","RECEIVED_AT_DATE","TOTAL_AMOUNT","NET_AMOUNT","VAT_AMOUNT","CURRENCY","PAYMENT_REFERENCE","IBAN","PURCHASING_ORDER","DELIVERY_NOTE","PAYMENT_PURPOSE_CODE","DISCOUNT_PERCENTAGE","DISCOUNT_NET_AMOUNT","DISCOUNT_TOTAL_AMOUNT","SUPPLIER_COUNTRY_CODE","BUYER_COUNTRY_CODE","DOCUMENT_DATE","DOCUMENT_NUMBER","RECEIPT_TYPE","DELIVERY_NUMBER","PACKING_LIST_NUMBER","ACCOUNT_NUMBER","START_BALANCE","END_BALANCE","CONTRACT_PARTY_1","CONTRACT_PARTY_2","CONTRACT_PARTY_1_SIGNEE","CONTRACT_PARTY_2_SIGNEE","CONTRACT_TITLE","CONTRACT_SUMMARY","TRANSPORTER_NAME","TRANSPORTER_VAT_ID","DOCUMENT_ANNEXES","CONTENT_DESCRIPTION","SENDER_INSTRUCTIONS","TRANSPORT_COSTS_PAYER","OTHER_TRANSPORTERS","TRANSPORTER_COMMENTS","CUSTOMS_NUMBER","GROSS_WEIGHT","GROSS_VOLUME","ADDITIONAL_CONVENTIONS","ADDRESS_STREET_NAME","ADDRESS_STREET_NUMBER","ADDRESS_CITY","ADDRESS_POSTAL_CODE","ADDRESS_COUNTRY","LINE_ITEM_DESCRIPTION","LINE_ITEM_IDENTIFICATION_CODE","LINE_ITEM_BUYER_IDENTIFICATION_CODE","LINE_ITEM_SERIES_NUMBER","LINE_ITEM_QUANTITY","LINE_ITEM_UNIT","LINE_ITEM_UNIT_NET","LINE_ITEM_UNIT_VAT","LINE_ITEM_UNIT_TOTAL","LINE_ITEM_NET_AMOUNT","LINE_ITEM_VAT_AMOUNT","LINE_ITEM_TOTAL_AMOUNT","LINE_ITEM_DISCOUNT_NET_AMOUNT","LINE_ITEM_DISCOUNT_TOTAL_AMOUNT","LINE_ITEM_DISCOUNT_PERCENTAGE","LINE_ITEM_VAT_RATE","LINE_ITEM_ORDER_DOCUMENT_NUMBER","LINE_ITEM_TRANSACTION_DATE","LINE_ITEM_TRANSACTION_TYPE"],"title":"ExtractionFieldPreset"},"FeedbackPolledDocumentRequest":{"properties":{"inv_key":{"type":"string","format":"uuid","title":"Inv Key"},"invoice":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"null"}]},"type":"object","title":"Invoice"}},"type":"object","required":["inv_key","invoice"],"title":"FeedbackPolledDocumentRequest"},"FieldConfiguration-Input":{"properties":{"select_options":{"items":{"$ref":"#/components/schemas/SelectFieldValue"},"type":"array","title":"Select Options","default":[]}},"type":"object","title":"FieldConfiguration"},"FieldConfiguration-Output":{"properties":{"select_options":{"items":{"$ref":"#/components/schemas/SelectFieldValue"},"type":"array","title":"Select Options","default":[]}},"type":"object","title":"FieldConfiguration"},"FieldDTO":{"properties":{"display_name":{"$ref":"#/components/schemas/NonEmptyStr"},"description":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]},"extractable":{"type":"boolean","title":"Extractable"},"field_type":{"$ref":"#/components/schemas/FieldType"},"required":{"type":"boolean","title":"Required","default":false},"unique":{"type":"boolean","title":"Unique","default":false},"default_value":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]},"multiple_values":{"type":"boolean","title":"Multiple Values","default":false},"preset":{"anyOf":[{"$ref":"#/components/schemas/ExtractionFieldPreset"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/FieldConfiguration-Output"},{"type":"null"}]},"name":{"$ref":"#/components/schemas/NonEmptyStr"},"aggregate_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Aggregate Id"},"tenant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["display_name","description","extractable","field_type","name","aggregate_id","tenant_id","created_at"],"title":"FieldDTO"},"FieldType":{"type":"string","enum":["AUTHOR","STRING","VAT_ID","CURRENCY","DATE","NUMBER","BOOLEAN","SELECT","CONSTANT","MULTISELECT","DATETIME","UUID","TAG"],"title":"FieldType"},"FilterDTO":{"properties":{"field_name":{"type":"string","title":"Field Name"},"operator":{"$ref":"#/components/schemas/FilterOperator"},"values":{"items":{"type":"string"},"type":"array","title":"Values"}},"type":"object","required":["field_name","operator","values"],"title":"FilterDTO"},"FilterDocumentsRequest":{"properties":{"filters":{"items":{"$ref":"#/components/schemas/FilterDTO"},"type":"array","title":"Filters"},"filter_logic":{"$ref":"#/components/schemas/FilterLogic","default":"AND"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"waiting_my_approval":{"type":"boolean","title":"Waiting My Approval","default":false}},"type":"object","required":["filters"],"title":"FilterDocumentsRequest"},"FilterLogic":{"type":"string","enum":["AND","OR"],"title":"FilterLogic"},"FilterOperator":{"type":"string","enum":["EQUALS","NOT_EQUALS","BEGINS_WITH","LESS_THAN","LESS_THAN_EQUALS","GREATER_THAN","GREATER_THAN_EQUALS","BETWEEN","IS_NULL","IS_NOT_NULL","MATCH_ANY","MATCH_ALL","IN","NOT_IN"],"title":"FilterOperator"},"FilterTransactionsRequest":{"properties":{"filters":{"items":{"$ref":"#/components/schemas/FilterDTO"},"type":"array","title":"Filters"},"filter_logic":{"$ref":"#/components/schemas/FilterLogic","default":"AND"}},"type":"object","required":["filters"],"title":"FilterTransactionsRequest"},"FinanceOverviewDTO":{"properties":{"primary_currency":{"type":"string","title":"Primary Currency"},"unpaid_count":{"type":"integer","title":"Unpaid Count"},"unpaid_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Unpaid Amount"},"receivable_count":{"type":"integer","title":"Receivable Count"},"receivable_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Receivable Amount"},"upcoming_due_7d_count":{"type":"integer","title":"Upcoming Due 7D Count"},"upcoming_due_7d_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Upcoming Due 7D Amount"},"other_currencies":{"items":{"$ref":"#/components/schemas/OtherCurrencyOverviewDTO"},"type":"array","title":"Other Currencies"},"unmatched_transaction_count":{"type":"integer","title":"Unmatched Transaction Count"},"has_bank_connection":{"type":"boolean","title":"Has Bank Connection"}},"type":"object","required":["primary_currency","unpaid_count","unpaid_amount","receivable_count","receivable_amount","upcoming_due_7d_count","upcoming_due_7d_amount","other_currencies","unmatched_transaction_count","has_bank_connection"],"title":"FinanceOverviewDTO"},"FolderExportConfigurationDto":{"properties":{"name":{"type":"string","const":"FolderExportConfigurationDto","title":"Name","default":"FolderExportConfigurationDto"},"folder_path":{"type":"string","title":"Folder Path"},"export_eslog_envelope":{"type":"boolean","title":"Export Eslog Envelope"}},"type":"object","required":["folder_path","export_eslog_envelope"],"title":"FolderExportConfigurationDto"},"GetProviderNameResponse":{"properties":{"provider":{"type":"string","title":"Provider"}},"type":"object","required":["provider"],"title":"GetProviderNameResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImportConfigurationCreateDto":{"oneOf":[{"$ref":"#/components/schemas/AzureConfigurationCreateDto"},{"$ref":"#/components/schemas/BusinessUnitEmailImportConfigurationDto"},{"$ref":"#/components/schemas/MinimaxImportExportConfigurationCreateDto"}],"discriminator":{"propertyName":"name","mapping":{"AzureConfigurationCreateDto":"#/components/schemas/AzureConfigurationCreateDto","BusinessUnitEmailImportConfigurationDto":"#/components/schemas/BusinessUnitEmailImportConfigurationDto","MinimaxImportExportConfigurationCreateDto":"#/components/schemas/MinimaxImportExportConfigurationCreateDto"}}},"ImportConfigurationResponseDto":{"oneOf":[{"$ref":"#/components/schemas/AzureConfigurationResponseDto"},{"$ref":"#/components/schemas/BusinessUnitEmailImportConfigurationDto"},{"$ref":"#/components/schemas/MinimaxImportExportConfigurationResponseDto"}],"discriminator":{"propertyName":"name","mapping":{"AzureConfigurationResponseDto":"#/components/schemas/AzureConfigurationResponseDto","BusinessUnitEmailImportConfigurationDto":"#/components/schemas/BusinessUnitEmailImportConfigurationDto","MinimaxImportExportConfigurationResponseDto":"#/components/schemas/MinimaxImportExportConfigurationResponseDto"}}},"InforCreatePayload":{"properties":{"type":{"type":"string","const":"INFOR","title":"Type","default":"INFOR"}},"type":"object","title":"InforCreatePayload"},"InforSettingsDTO":{"properties":{"name":{"type":"string","const":"InforSettings","title":"Name","default":"InforSettings"}},"type":"object","title":"InforSettingsDTO"},"IntegrationConfigurationCreateDto":{"properties":{"import_configuration":{"anyOf":[{"$ref":"#/components/schemas/ImportConfigurationCreateDto"},{"type":"null"}]},"processing_configuration":{"anyOf":[{"$ref":"#/components/schemas/BaseProcessingConfigurationDto"},{"type":"null"}]},"export_configuration":{"anyOf":[{"$ref":"#/components/schemas/ExportConfigurationDto"},{"type":"null"}]}},"type":"object","title":"IntegrationConfigurationCreateDto"},"IntegrationConfigurationResponseDto":{"properties":{"import_configuration":{"anyOf":[{"$ref":"#/components/schemas/ImportConfigurationResponseDto"},{"type":"null"}]},"processing_configuration":{"anyOf":[{"$ref":"#/components/schemas/ProcessingConfigurationDto"},{"type":"null"}]},"export_configuration":{"anyOf":[{"$ref":"#/components/schemas/ExportConfigurationDto"},{"type":"null"}]}},"type":"object","title":"IntegrationConfigurationResponseDto"},"IntegrationName":{"type":"string","enum":["AZURE_SSO","MINIMAX","INFOR"],"title":"IntegrationName"},"IntegrationResponse":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"type":{"$ref":"#/components/schemas/IntegrationName"},"enabled":{"type":"boolean","title":"Enabled"},"settings":{"$ref":"#/components/schemas/IntegrationSettingsDTO"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["aggregate_id","tenant_id","type","enabled","settings","created_at","updated_at"],"title":"IntegrationResponse"},"IntegrationSettingsDTO":{"oneOf":[{"$ref":"#/components/schemas/AzureSsoSettingsDTO"},{"$ref":"#/components/schemas/MinimaxSettingsDTO"},{"$ref":"#/components/schemas/InforSettingsDTO"}],"discriminator":{"propertyName":"name","mapping":{"AzureSsoSettings":"#/components/schemas/AzureSsoSettingsDTO","InforSettings":"#/components/schemas/InforSettingsDTO","MinimaxSettings":"#/components/schemas/MinimaxSettingsDTO"}}},"IntegrationType":{"type":"string","enum":["INFOR","ESLOG","MINIMAX"],"title":"IntegrationType"},"InvitationInitiatorType":{"type":"string","enum":["MANAGER","CLIENT"],"title":"InvitationInitiatorType"},"InvitationStatus":{"type":"string","enum":["PENDING","ACCEPTED","REJECTED","EXPIRED"],"title":"InvitationStatus"},"InviteBuToClientTenantRequest":{"properties":{"business_unit_id":{"type":"string","format":"uuid","title":"Business Unit Id"},"invited_admin_email":{"type":"string","title":"Invited Admin Email"},"usage_paid_by":{"$ref":"#/components/schemas/BillingPayer"},"storage_paid_by":{"$ref":"#/components/schemas/BillingPayer"}},"type":"object","required":["business_unit_id","invited_admin_email","usage_paid_by","storage_paid_by"],"title":"InviteBuToClientTenantRequest"},"InviteExistingTenantRequest":{"properties":{"client_tenant_id":{"type":"string","format":"uuid","title":"Client Tenant Id"},"client_admin_email":{"type":"string","title":"Client Admin Email"},"usage_paid_by":{"$ref":"#/components/schemas/BillingPayer"},"storage_paid_by":{"$ref":"#/components/schemas/BillingPayer"}},"type":"object","required":["client_tenant_id","client_admin_email","usage_paid_by","storage_paid_by"],"title":"InviteExistingTenantRequest"},"InvoiceInBatchDetailsDto":{"properties":{"extraction_id":{"type":"string","format":"uuid","title":"Extraction Id"},"results":{"additionalProperties":true,"type":"object","title":"Results"}},"type":"object","required":["extraction_id","results"],"title":"InvoiceInBatchDetailsDto"},"LinkPartnerRequest":{"properties":{"partner_id":{"type":"string","format":"uuid","title":"Partner Id"}},"type":"object","required":["partner_id"],"title":"LinkPartnerRequest"},"ListAccessibleTenantsResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/AccessibleTenantDTO"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"ListAccessibleTenantsResponse"},"ListApiKeysResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/ApiKeyListItemDTO"},"type":"array","title":"Results"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"}},"type":"object","required":["results"],"title":"ListApiKeysResponse"},"ListBusinessUnitsResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/BusinessUnitDTO"},"type":"array","title":"Results"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"}},"type":"object","required":["results"],"title":"ListBusinessUnitsResponse"},"ListCreatedByOptionsResponse":{"properties":{"options":{"items":{"type":"string"},"type":"array","title":"Options"}},"type":"object","required":["options"],"title":"ListCreatedByOptionsResponse"},"ListDocumentNotesResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/DocumentNoteDTO"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"ListDocumentNotesResponse"},"ListDocumentTypesResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/DocumentTypeDTO"},"type":"array","title":"Results"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"}},"type":"object","required":["results"],"title":"ListDocumentTypesResponse"},"ListDocumentsResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/DocumentListItemDTO"},"type":"array","title":"Results"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"}},"type":"object","required":["results"],"title":"ListDocumentsResponse"},"ListDocumentsWithDetailsResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/DocumentListItemWithDetailsDTO"},"type":"array","title":"Results"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"}},"type":"object","required":["results"],"title":"ListDocumentsWithDetailsResponse"},"ListEventsResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/EventDetailsDTO"},"type":"array","title":"Results"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"}},"type":"object","required":["results"],"title":"ListEventsResponse"},"ListFieldsResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/FieldDTO"},"type":"array","title":"Results"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"}},"type":"object","required":["results"],"title":"ListFieldsResponse"},"ListIntegrationsResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/IntegrationResponse"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"ListIntegrationsResponse"},"ListMinimaxOrganizationsResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/MinimaxOrganizationDto"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"ListMinimaxOrganizationsResponse"},"ListMinimaxSuppliersResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/MinimaxListCustomer"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"ListMinimaxSuppliersResponse"},"ListNotificationsResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/NotificationDTO"},"type":"array","title":"Results"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"}},"type":"object","required":["results"],"title":"ListNotificationsResponse"},"ListPartnersResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/PartnerDTO"},"type":"array","title":"Results"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"}},"type":"object","required":["results"],"title":"ListPartnersResponse"},"ListRolesResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/RoleResponse"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"ListRolesResponse"},"ListSubscriptionsResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/SubscriptionDTO"},"type":"array","title":"Results"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"}},"type":"object","required":["results"],"title":"ListSubscriptionsResponse"},"ListTagsResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/TagDTO"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"ListTagsResponse"},"ListTransactionsResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/TransactionDTO"},"type":"array","title":"Results"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"}},"type":"object","required":["results"],"title":"ListTransactionsResponse"},"ListUsersResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/UserListItemDTO"},"type":"array","title":"Results"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"}},"type":"object","required":["results"],"title":"ListUsersResponse"},"ListWebhookInvocationsResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/WebhookInvocationDTO"},"type":"array","title":"Results"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"}},"type":"object","required":["results","last_id"],"title":"ListWebhookInvocationsResponse"},"ListWebhooksResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/WebhookDTO"},"type":"array","title":"Results"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"}},"type":"object","required":["results"],"title":"ListWebhooksResponse"},"LogMessageDTO":{"properties":{"message":{"type":"string","title":"Message"},"level":{"type":"string","title":"Level","default":"INFO"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"extra":{"additionalProperties":true,"type":"object","title":"Extra","default":{}}},"type":"object","required":["message","timestamp"],"title":"LogMessageDTO"},"LogSessionMetadata":{"properties":{"user_id":{"type":"string","title":"User Id"},"user_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Role"},"user_role_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"User Role Ids"},"user_email":{"type":"string","title":"User Email"},"tenant_id":{"type":"string","title":"Tenant Id"},"tenant_name":{"type":"string","title":"Tenant Name"},"browser":{"type":"string","title":"Browser"},"app_version":{"type":"string","title":"App Version"},"platform":{"type":"string","title":"Platform"},"machine_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Machine Id"}},"type":"object","required":["user_id","user_email","tenant_id","tenant_name","browser","app_version","platform"],"title":"LogSessionMetadata"},"LogUploadRequest":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/LogMessageDTO"},"type":"array","title":"Messages"},"session_metadata":{"$ref":"#/components/schemas/LogSessionMetadata"}},"type":"object","required":["messages","session_metadata"],"title":"LogUploadRequest"},"LogUploadResponse":{"properties":{"next_sequence_token":{"type":"string","title":"Next Sequence Token"}},"type":"object","required":["next_sequence_token"],"title":"LogUploadResponse"},"ManualMatchRequest":{"properties":{"transaction_id":{"type":"string","format":"uuid","title":"Transaction Id"}},"type":"object","required":["transaction_id"],"title":"ManualMatchRequest"},"MatchMethod":{"type":"string","enum":["AUTO_EXACT","MANUAL","SUGGESTED"],"title":"MatchMethod"},"MinimaxConfiguration":{"properties":{"name":{"type":"string","const":"MinimaxConfiguration","title":"Name","default":"MinimaxConfiguration"},"dummy_customer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dummy Customer Id"},"minimax_inbox_email_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Minimax Inbox Email Address"},"send_eslog_after_processing":{"type":"boolean","title":"Send Eslog After Processing","default":false},"allowed_inbox_types":{"anyOf":[{"items":{"$ref":"#/components/schemas/MinimaxInboxType"},"type":"array"},{"type":"null"}],"title":"Allowed Inbox Types"}},"type":"object","title":"MinimaxConfiguration"},"MinimaxCreatePayload":{"properties":{"type":{"type":"string","const":"MINIMAX","title":"Type","default":"MINIMAX"},"username":{"type":"string","title":"Username"},"password":{"type":"string","format":"password","title":"Password","writeOnly":true},"allowed_inbox_types":{"anyOf":[{"items":{"$ref":"#/components/schemas/MinimaxInboxType"},"type":"array"},{"type":"null"}],"title":"Allowed Inbox Types"},"send_eslog_after_processing":{"type":"boolean","title":"Send Eslog After Processing","default":false},"minimax_inbox_email_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Minimax Inbox Email Address"},"attach_email_to_invoice":{"type":"boolean","title":"Attach Email To Invoice","default":false},"read_inboxes":{"type":"boolean","title":"Read Inboxes","default":true}},"type":"object","required":["username","password"],"title":"MinimaxCreatePayload"},"MinimaxCustomer":{"properties":{"CustomerId":{"type":"integer","title":"Customerid"},"Code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"Name":{"type":"string","title":"Name"},"Address":{"type":"string","title":"Address"},"PostalCode":{"type":"string","title":"Postalcode"},"City":{"type":"string","title":"City"},"Country":{"$ref":"#/components/schemas/MinimaxCustomerCountry"},"TaxNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxnumber"},"Usage":{"type":"string","title":"Usage"},"VATIdentificationNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vatidentificationnumber"}},"type":"object","required":["CustomerId","Code","Name","Address","PostalCode","City","Country","TaxNumber","Usage","VATIdentificationNumber"],"title":"MinimaxCustomer"},"MinimaxCustomerCountry":{"properties":{"ID":{"type":"integer","title":"Id"},"Name":{"type":"string","title":"Name"},"ResourceUrl":{"type":"string","title":"Resourceurl"}},"type":"object","required":["ID","Name","ResourceUrl"],"title":"MinimaxCustomerCountry"},"MinimaxImportExportConfigurationCreateDto":{"properties":{"name":{"type":"string","const":"MinimaxImportExportConfigurationCreateDto","title":"Name","default":"MinimaxImportExportConfigurationCreateDto"},"username":{"type":"string","title":"Username"},"password":{"type":"string","format":"password","title":"Password","writeOnly":true}},"type":"object","required":["username","password"],"title":"MinimaxImportExportConfigurationCreateDto"},"MinimaxImportExportConfigurationResponseDto":{"properties":{"name":{"type":"string","const":"MinimaxImportExportConfigurationResponseDto","title":"Name","default":"MinimaxImportExportConfigurationResponseDto"},"username":{"type":"string","title":"Username"}},"type":"object","required":["username"],"title":"MinimaxImportExportConfigurationResponseDto"},"MinimaxInboxType":{"type":"string","enum":["PR","IZP","Ostalo","Neznano","KIR"],"title":"MinimaxInboxType","description":"Minimax \"Nabiralnik\" (inbox) item types.\n\nMember names equal the raw Minimax codes to avoid mislabeling the\nSlovenian domain jargon; values match the exact casing Minimax returns."},"MinimaxListCustomer":{"properties":{"CustomerId":{"type":"integer","title":"Customerid"},"Code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"Name":{"type":"string","title":"Name"},"Address":{"type":"string","title":"Address"},"PostalCode":{"type":"string","title":"Postalcode"},"City":{"type":"string","title":"City"},"Country":{"$ref":"#/components/schemas/MinimaxCustomerCountry"},"TaxNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxnumber"},"Usage":{"type":"string","title":"Usage"}},"type":"object","required":["CustomerId","Code","Name","Address","PostalCode","City","Country","TaxNumber","Usage"],"title":"MinimaxListCustomer"},"MinimaxOrganizationDto":{"properties":{"organization_id":{"type":"integer","title":"Organization Id"},"organization_name":{"type":"string","title":"Organization Name"}},"type":"object","required":["organization_id","organization_name"],"title":"MinimaxOrganizationDto"},"MinimaxProcessingConfigurationDto":{"properties":{"name":{"type":"string","const":"MinimaxProcessingConfigurationDto","title":"Name","default":"MinimaxProcessingConfigurationDto"},"attach_email_to_invoice":{"type":"boolean","title":"Attach Email To Invoice","default":false},"ignore_small_attachments":{"type":"boolean","title":"Ignore Small Attachments","default":false},"send_eslog_after_processing":{"type":"boolean","title":"Send Eslog After Processing","default":false},"minimax_inbox_email_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Minimax Inbox Email Address"},"processing_flow":{"$ref":"#/components/schemas/ProcessingFlow","default":"DIRECT_EXPORT"},"batch_splitting":{"type":"boolean","title":"Batch Splitting","default":false},"check_unique_invoices":{"type":"boolean","title":"Check Unique Invoices","default":false},"allowed_inbox_types":{"anyOf":[{"items":{"$ref":"#/components/schemas/MinimaxInboxType"},"type":"array"},{"type":"null"}],"title":"Allowed Inbox Types"}},"type":"object","title":"MinimaxProcessingConfigurationDto"},"MinimaxSettingsDTO":{"properties":{"name":{"type":"string","const":"MinimaxSettings","title":"Name","default":"MinimaxSettings"},"username":{"type":"string","title":"Username"},"allowed_inbox_types":{"items":{"$ref":"#/components/schemas/MinimaxInboxType"},"type":"array","title":"Allowed Inbox Types"},"send_eslog_after_processing":{"type":"boolean","title":"Send Eslog After Processing"},"minimax_inbox_email_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Minimax Inbox Email Address"},"attach_email_to_invoice":{"type":"boolean","title":"Attach Email To Invoice"},"read_inboxes":{"type":"boolean","title":"Read Inboxes"}},"type":"object","required":["username","allowed_inbox_types","send_eslog_after_processing","minimax_inbox_email_address","attach_email_to_invoice","read_inboxes"],"title":"MinimaxSettingsDTO"},"MinimaxUpdateSettings":{"properties":{"name":{"type":"string","const":"MinimaxSettings","title":"Name","default":"MinimaxSettings"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"password":{"anyOf":[{"type":"string","format":"password","writeOnly":true},{"type":"null"}],"title":"Password"},"allowed_inbox_types":{"anyOf":[{"items":{"$ref":"#/components/schemas/MinimaxInboxType"},"type":"array"},{"type":"null"}],"title":"Allowed Inbox Types"},"send_eslog_after_processing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Send Eslog After Processing"},"minimax_inbox_email_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Minimax Inbox Email Address"},"attach_email_to_invoice":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Attach Email To Invoice"},"read_inboxes":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read Inboxes"}},"type":"object","title":"MinimaxUpdateSettings"},"NonEmptyStr":{"type":"string","minLength":1},"NoteSource":{"type":"string","enum":["MANUAL","CONFIRM","REJECT","AUTOMATIC","APPROVAL"],"title":"NoteSource"},"NotificationConfiguration":{"properties":{"notification_emails":{"items":{"type":"string"},"type":"array","title":"Notification Emails","default":[]},"notify_new_document":{"type":"boolean","title":"Notify New Document","default":false},"auto_response_new_document":{"type":"boolean","title":"Auto Response New Document","default":false},"send_daily_summary":{"type":"boolean","title":"Send Daily Summary","default":false}},"type":"object","title":"NotificationConfiguration"},"NotificationDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"code":{"type":"string","title":"Code"},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"},"reference_entity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Entity Id"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"is_superseded":{"type":"boolean","title":"Is Superseded"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["aggregate_id","tenant_id","user_id","business_unit_id","code","payload","reference_entity_id","read_at","is_superseded","created_at"],"title":"NotificationDTO"},"NotificationDownloadUrlResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"NotificationDownloadUrlResponse"},"NotificationPreferences":{"properties":{"notify_new_document_typless_inbox":{"items":{"type":"string","enum":["in_app","email"]},"type":"array","title":"Notify New Document Typless Inbox","default":[]},"notify_new_document_integration":{"items":{"type":"string","enum":["in_app","email"]},"type":"array","title":"Notify New Document Integration","default":[]},"notify_new_document_upload":{"items":{"type":"string","enum":["in_app","email"]},"type":"array","title":"Notify New Document Upload","default":[]},"notify_document_in_review":{"items":{"type":"string","enum":["in_app","email"]},"type":"array","title":"Notify Document In Review","default":[]},"notify_approval_requested":{"items":{"type":"string","enum":["in_app","email"]},"type":"array","title":"Notify Approval Requested","default":[]},"notify_export_ready":{"items":{"type":"string","enum":["in_app","email"]},"type":"array","title":"Notify Export Ready","default":["in_app"]},"notify_export_failed":{"items":{"type":"string","enum":["in_app","email"]},"type":"array","title":"Notify Export Failed","default":[]},"notify_bank_issues":{"items":{"type":"string","enum":["in_app","email"]},"type":"array","title":"Notify Bank Issues","default":[]},"notify_minimax_disabled":{"items":{"type":"string","enum":["in_app","email"]},"type":"array","title":"Notify Minimax Disabled","default":[]}},"type":"object","title":"NotificationPreferences","description":"Per-user notification preferences.\n\nEach ``notify_*`` field is a list of delivery channels.  An empty list\nmeans \"no notifications of this type\".  Everything defaults to off except\n``notify_export_ready``: the user started the export themselves, so its\nresult shows up in the notification center unless they turn it off.\n\nUnknown keys are ignored so a rolling deploy that removes a field\ndoes not break reads of rows written by the newer replica."},"OtherCurrencyOverviewDTO":{"properties":{"currency":{"type":"string","title":"Currency"},"unpaid_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Unpaid Amount"},"receivable_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Receivable Amount"},"upcoming_due_7d_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Upcoming Due 7D Amount"}},"type":"object","required":["currency","unpaid_amount","receivable_amount","upcoming_due_7d_amount"],"title":"OtherCurrencyOverviewDTO"},"PageCredits":{"properties":{"amount":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount"},"valid_until":{"type":"string","format":"date","title":"Valid Until"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["amount","valid_until"],"title":"PageCredits"},"ParsedValues":{"properties":{"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"vat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Id"}},"type":"object","title":"ParsedValues"},"PartnerAliasDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"$ref":"#/components/schemas/PartnerAliasKind"},"value":{"type":"string","title":"Value"},"document_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Document Ids"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","value","document_ids","created_by","created_at"],"title":"PartnerAliasDTO"},"PartnerAliasKind":{"type":"string","enum":["NAME","VAT_ID"],"title":"PartnerAliasKind"},"PartnerDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"company_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Company Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"vat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Id"},"registration_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registration Number"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"address_line_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"default_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Currency"},"is_vat_registered":{"type":"boolean","title":"Is Vat Registered"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"bank_accounts":{"anyOf":[{"items":{"$ref":"#/components/schemas/BankAccount"},"type":"array"},{"type":"null"}],"title":"Bank Accounts"},"registry_bank_accounts":{"anyOf":[{"items":{"$ref":"#/components/schemas/BankAccount"},"type":"array"},{"type":"null"}],"title":"Registry Bank Accounts"},"source":{"$ref":"#/components/schemas/PartnerSource"},"is_verified":{"type":"boolean","title":"Is Verified"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["aggregate_id","tenant_id","company_id","created_at","updated_at","vat_id","registration_number","name","address_line_1","address_line_2","city","postal_code","country_code","email","phone","website","default_currency","is_vat_registered","notes","bank_accounts","registry_bank_accounts","source","is_verified","is_active"],"title":"PartnerDTO"},"PartnerSource":{"type":"string","enum":["MANUAL","CONFIRMATION","EXTRACTION"],"title":"PartnerSource"},"PaymentRecordDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"},"payment_type":{"$ref":"#/components/schemas/PaymentType"},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount"},"currency":{"type":"string","title":"Currency"},"document_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Document Amount"},"matched_at":{"type":"string","format":"date-time","title":"Matched At"},"matched_by":{"type":"string","title":"Matched By"},"match_method":{"$ref":"#/components/schemas/MatchMethod"},"confirmed":{"type":"boolean","title":"Confirmed"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","document_id","transaction_id","payment_type","amount","currency","matched_at","matched_by","match_method","confirmed","notes"],"title":"PaymentRecordDTO"},"PaymentStatus":{"type":"string","enum":["NOT_APPLICABLE","UNPAID","SCHEDULED","PARTIALLY_PAID","PAID","OVERPAID"],"title":"PaymentStatus"},"PaymentType":{"type":"string","enum":["BANK_TRANSFER","CASH","OTHER"],"title":"PaymentType"},"ProcessDocumentRequest":{"properties":{"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"file_name":{"type":"string","title":"File Name"},"base64file":{"type":"string","format":"binary","title":"Base64File"},"processing_business_unit_vat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Processing Business Unit Vat Id"},"tag_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Tag Ids"},"transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"}},"type":"object","required":["file_name","base64file"],"title":"ProcessDocumentRequest"},"ProcessingConfigurationDto":{"properties":{"name":{"type":"string","const":"ProcessingConfigurationDto","title":"Name","default":"ProcessingConfigurationDto"},"batch_splitting":{"type":"boolean","title":"Batch Splitting","default":false},"processing_flow":{"$ref":"#/components/schemas/ProcessingFlow","default":"REVIEW_REQUIRED"},"check_unique_invoices":{"type":"boolean","title":"Check Unique Invoices","default":false},"document_type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type Name"},"add_timestamp_prefix_to_exported_invoices":{"type":"boolean","title":"Add Timestamp Prefix To Exported Invoices","default":false}},"type":"object","title":"ProcessingConfigurationDto"},"ProcessingFlow":{"type":"string","enum":["REVIEW_REQUIRED","DIRECT_EXPORT"],"title":"ProcessingFlow"},"ReassignDocumentApprovalRequest":{"properties":{"approvers":{"items":{"$ref":"#/components/schemas/ApproverRefDto"},"type":"array","title":"Approvers"}},"type":"object","required":["approvers"],"title":"ReassignDocumentApprovalRequest"},"ReauthRequest":{"properties":{"psu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Psu Type"},"locale":{"anyOf":[{"$ref":"#/components/schemas/AppLanguage"},{"type":"null"}]}},"type":"object","title":"ReauthRequest"},"ReceivedDocumentDetailsDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"file":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"File"},"adjusted_file":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Adjusted File"},"s3_location":{"$ref":"#/components/schemas/S3Location"},"adjusted_s3_location":{"anyOf":[{"$ref":"#/components/schemas/S3Location"},{"type":"null"}]},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceTypes"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/DocumentStatus"},"approval_status":{"anyOf":[{"$ref":"#/components/schemas/DocumentApprovalStatus"},{"type":"null"}]},"details":{"anyOf":[{"$ref":"#/components/schemas/DocumentDetailsDTO"},{"type":"null"}]},"received_details":{"anyOf":[{"$ref":"#/components/schemas/DocumentDetailsDTO"},{"type":"null"}]},"text_blocks":{"anyOf":[{"items":{"$ref":"#/components/schemas/TextBlock"},"type":"array"},{"type":"null"}],"title":"Text Blocks"},"business_unit_id":{"type":"string","format":"uuid","title":"Business Unit Id"},"modified_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modified By"},"recognition_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recognition Type"},"is_proforma":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Proforma"},"document_type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type Name"},"extraction_failed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Extraction Failed"},"processed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Processed By"},"document_type_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Document Type Id"},"file_name":{"type":"string","title":"File Name"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"ever_confirmed":{"type":"boolean","title":"Ever Confirmed"},"locked_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Locked By"},"locked_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Locked Until"},"tags":{"items":{"$ref":"#/components/schemas/TagDTO"},"type":"array","title":"Tags"},"payment_status":{"anyOf":[{"$ref":"#/components/schemas/PaymentStatus"},{"type":"null"}]},"payment_records":{"anyOf":[{"items":{"$ref":"#/components/schemas/PaymentRecordDTO"},"type":"array"},{"type":"null"}],"title":"Payment Records"},"file_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size"},"page_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Count"},"original_file_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Original File Size"},"original_file_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original File Type"},"checksum":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checksum"},"partner":{"anyOf":[{"$ref":"#/components/schemas/PartnerDTO"},{"type":"null"}]}},"type":"object","required":["aggregate_id","created_at","updated_at","file","adjusted_file","s3_location","adjusted_s3_location","source","status","details","received_details","text_blocks","business_unit_id","modified_by","recognition_type","is_proforma","document_type_name","extraction_failed","processed_by","document_type_id","file_name","notes","ever_confirmed","locked_by","locked_until","tags"],"title":"ReceivedDocumentDetailsDTO"},"RecordPaymentRequest":{"properties":{"payment_type":{"$ref":"#/components/schemas/PaymentType"},"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Amount"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["payment_type"],"title":"RecordPaymentRequest"},"RejectDocumentApprovalRequest":{"properties":{"note":{"type":"string","title":"Note"}},"type":"object","required":["note"],"title":"RejectDocumentApprovalRequest"},"RejectDocumentRequest":{"properties":{"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"RejectDocumentRequest"},"RelationshipType":{"type":"string","enum":["OWN","CLIENT"],"title":"RelationshipType","description":"How a tenant relates to the requesting user in the accessible-tenants list."},"ReportErrorRequest":{"properties":{"invoice_id":{"type":"string","format":"uuid","title":"Invoice Id"},"error_description":{"type":"string","title":"Error Description"},"field_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Field Names"}},"type":"object","required":["invoice_id","error_description"],"title":"ReportErrorRequest"},"RequestManagerLinkRequest":{"properties":{"manager_tenant_id":{"type":"string","format":"uuid","title":"Manager Tenant Id"},"manager_admin_email":{"type":"string","title":"Manager Admin Email"},"usage_paid_by":{"$ref":"#/components/schemas/BillingPayer"},"storage_paid_by":{"$ref":"#/components/schemas/BillingPayer"}},"type":"object","required":["manager_tenant_id","manager_admin_email","usage_paid_by","storage_paid_by"],"title":"RequestManagerLinkRequest"},"RoleDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"is_system_default":{"type":"boolean","title":"Is System Default"},"is_owner_role":{"type":"boolean","title":"Is Owner Role"},"assignment_count":{"type":"integer","title":"Assignment Count","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["aggregate_id","tenant_id","name","description","permissions","is_system_default","is_owner_role","created_at","updated_at"],"title":"RoleDTO"},"RoleResponse":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"is_system_default":{"type":"boolean","title":"Is System Default"},"is_owner_role":{"type":"boolean","title":"Is Owner Role"},"assignment_count":{"type":"integer","title":"Assignment Count","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["aggregate_id","tenant_id","name","description","permissions","is_system_default","is_owner_role","created_at","updated_at"],"title":"RoleResponse"},"S3Location":{"properties":{"bucket":{"type":"string","title":"Bucket"},"object":{"type":"string","title":"Object"},"original_file_name":{"type":"string","title":"Original File Name","default":"document.pdf"}},"type":"object","required":["bucket","object"],"title":"S3Location"},"ScheduledDiscount":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"discount_start_date":{"type":"string","format":"date","title":"Discount Start Date"},"discount_percentage":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Discount Percentage"}},"type":"object","required":["description","discount_start_date","discount_percentage"],"title":"ScheduledDiscount"},"SelectFieldValue":{"properties":{"value":{"$ref":"#/components/schemas/NonEmptyStr"},"display_value":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]}},"type":"object","required":["value"],"title":"SelectFieldValue"},"SetDocumentTagsRequest":{"properties":{"tag_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Tag Ids"}},"type":"object","required":["tag_ids"],"title":"SetDocumentTagsRequest"},"SetInvoiceStatusRequest":{"properties":{"status":{"$ref":"#/components/schemas/DocumentStatus"}},"type":"object","required":["status"],"title":"SetInvoiceStatusRequest"},"SetPartnerStatusRequest":{"properties":{"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["is_active"],"title":"SetPartnerStatusRequest"},"SignUpUserRequest":{"properties":{"vat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Id"},"email":{"type":"string","title":"Email"},"password":{"type":"string","format":"password","title":"Password","writeOnly":true},"locale":{"type":"string","title":"Locale","default":"sl"}},"type":"object","required":["email","password"],"title":"SignUpUserRequest"},"SkipReason":{"type":"string","enum":["NOT_FOUND_OR_NOT_ACCESSIBLE","NOT_WAITING_APPROVAL","NOT_YOUR_APPROVAL","WRONG_STATUS","DUPLICATE_INVOICE","INVALID_DETAILS","SAME_BUSINESS_UNIT","SOURCE_MINIMAX","IN_EXPORT","IN_REVIEW_BY_OTHER","UNAUTHORIZED_BUSINESS_UNIT"],"title":"SkipReason"},"SkippedDocumentDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"reason":{"$ref":"#/components/schemas/SkipReason"}},"type":"object","required":["aggregate_id","reason"],"title":"SkippedDocumentDTO"},"Source":{"properties":{"type":{"$ref":"#/components/schemas/Sources"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"original_file_extension":{"type":"string","title":"Original File Extension","default":".pdf"}},"type":"object","required":["type","created_at"],"title":"Source"},"SourceEmail":{"properties":{"type":{"type":"string","const":"EMAIL","title":"Type","default":"EMAIL"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"original_file_extension":{"type":"string","title":"Original File Extension","default":".pdf"},"object_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Id","default":""},"from_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Email","default":""},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","default":""},"recipient_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Email"}},"type":"object","required":["created_at"],"title":"SourceEmail"},"SourceMinimax":{"properties":{"type":{"type":"string","const":"MINIMAX","title":"Type","default":"MINIMAX"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"original_file_extension":{"type":"string","title":"Original File Extension","default":".pdf"},"organization_id":{"type":"integer","title":"Organization Id"},"inbox_id":{"type":"integer","title":"Inbox Id"},"inbox_attachment_id":{"type":"integer","title":"Inbox Attachment Id"}},"type":"object","required":["created_at","organization_id","inbox_id","inbox_attachment_id"],"title":"SourceMinimax"},"SourceTypes":{"oneOf":[{"$ref":"#/components/schemas/SourceEmail"},{"$ref":"#/components/schemas/SourceMinimax"},{"$ref":"#/components/schemas/SourceUpload"}],"discriminator":{"propertyName":"type","mapping":{"EMAIL":"#/components/schemas/SourceEmail","MINIMAX":"#/components/schemas/SourceMinimax","UPLOAD":"#/components/schemas/SourceUpload"}}},"SourceUpload":{"properties":{"type":{"type":"string","const":"UPLOAD","title":"Type","default":"UPLOAD"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"original_file_extension":{"type":"string","title":"Original File Extension","default":".pdf"},"identifier":{"type":"string","title":"Identifier"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},"type":"object","required":["created_at","identifier"],"title":"SourceUpload"},"Sources":{"type":"string","enum":["EMAIL","MINIMAX","UPLOAD"],"title":"Sources"},"StartAuthDTO":{"properties":{"auth_url":{"type":"string","title":"Auth Url"},"authorization_id":{"type":"string","title":"Authorization Id"},"state":{"type":"string","title":"State"}},"type":"object","required":["auth_url","authorization_id","state"],"title":"StartAuthDTO"},"StorageInformationDTO":{"properties":{"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"total_size_in_bytes":{"type":"integer","title":"Total Size In Bytes"},"number_of_documents":{"type":"integer","title":"Number Of Documents"},"business_unit_summaries":{"items":{"$ref":"#/components/schemas/BusinessUnitSummary"},"type":"array","title":"Business Unit Summaries"}},"type":"object","required":["tenant_id","total_size_in_bytes","number_of_documents","business_unit_summaries"],"title":"StorageInformationDTO"},"SubscriptionDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"status":{"$ref":"#/components/schemas/SubscriptionStatus"},"package":{"$ref":"#/components/schemas/UsagePackage"},"upcoming_package":{"anyOf":[{"$ref":"#/components/schemas/UsagePackage"},{"type":"null"}]},"support_package":{"anyOf":[{"$ref":"#/components/schemas/SupportPackage"},{"type":"null"}]},"upcoming_support_package":{"anyOf":[{"$ref":"#/components/schemas/SupportPackage"},{"type":"null"}]},"plan":{"$ref":"#/components/schemas/SubscriptionPlan"},"is_plan_updatable":{"type":"boolean","title":"Is Plan Updatable"},"page_usage_credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Usage Credits"},"page_credits":{"items":{"$ref":"#/components/schemas/PageCredits"},"type":"array","title":"Page Credits","default":[]},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"due_date_days":{"type":"integer","title":"Due Date Days"},"next_billing_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Billing Date"},"discount_details":{"$ref":"#/components/schemas/DiscountDetails"}},"type":"object","required":["aggregate_id","tenant_id","created_at","updated_at","status","package","upcoming_package","plan","is_plan_updatable","page_usage_credits","end_date","due_date_days","next_billing_date","discount_details"],"title":"SubscriptionDTO"},"SubscriptionPlan":{"properties":{"type":{"$ref":"#/components/schemas/SubscriptionPlanType"},"price_per_user":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Per User"},"included_business_units":{"type":"integer","title":"Included Business Units"},"price_per_additional_business_unit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Per Additional Business Unit"},"included_support_hours":{"type":"integer","title":"Included Support Hours"},"price_per_additional_support_hour":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Per Additional Support Hour"},"price_per_gb_of_storage":{"type":"number","title":"Price Per Gb Of Storage"}},"type":"object","required":["type","price_per_user","included_business_units","price_per_additional_business_unit","included_support_hours","price_per_additional_support_hour","price_per_gb_of_storage"],"title":"SubscriptionPlan"},"SubscriptionPlanType":{"type":"string","enum":["TRIAL","FREE","PROFESSIONAL","ENTERPRISE"],"title":"SubscriptionPlanType"},"SubscriptionStatus":{"type":"string","enum":["ACTIVE","ENDED","SUSPENDED"],"title":"SubscriptionStatus"},"SubscriptionUsageApiDTO":{"properties":{"additional_pages_processed_cost":{"type":"number","title":"Additional Pages Processed Cost","default":0},"additional_fields_processed_cost":{"type":"number","title":"Additional Fields Processed Cost","default":0},"line_items_pages_processed_cost":{"type":"number","title":"Line Items Pages Processed Cost","default":0},"billable_business_units_cost":{"type":"number","title":"Billable Business Units Cost","default":0},"billable_support_hours_cost":{"type":"number","title":"Billable Support Hours Cost","default":0},"users_cost":{"type":"number","title":"Users Cost","default":0},"storage_cost":{"type":"number","title":"Storage Cost","default":0},"base_cost":{"type":"number","title":"Base Cost","default":0},"total":{"type":"number","title":"Total","default":0},"pages_processed":{"type":"integer","title":"Pages Processed","default":0},"documents_processed":{"type":"integer","title":"Documents Processed","default":0},"line_items_pages_processed":{"type":"integer","title":"Line Items Pages Processed","default":0},"additional_fields_processed":{"type":"integer","title":"Additional Fields Processed","default":0},"support_hours_used":{"type":"number","title":"Support Hours Used","default":0},"storage_used_in_gigabytes":{"type":"number","title":"Storage Used In Gigabytes","default":0},"support_package_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Support Package Cost"},"page_credits_used":{"type":"integer","title":"Page Credits Used","default":0},"page_credits_remaining":{"type":"integer","title":"Page Credits Remaining","default":0},"page_credits_valid_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Page Credits Valid Until"}},"type":"object","title":"SubscriptionUsageApiDTO"},"SubscriptionUsageBreakdownApiDTO":{"properties":{"additional_pages_processed_cost":{"type":"number","title":"Additional Pages Processed Cost","default":0},"additional_fields_processed_cost":{"type":"number","title":"Additional Fields Processed Cost","default":0},"line_items_pages_processed_cost":{"type":"number","title":"Line Items Pages Processed Cost","default":0},"billable_business_units_cost":{"type":"number","title":"Billable Business Units Cost","default":0},"billable_support_hours_cost":{"type":"number","title":"Billable Support Hours Cost","default":0},"users_cost":{"type":"number","title":"Users Cost","default":0},"storage_cost":{"type":"number","title":"Storage Cost","default":0},"base_cost":{"type":"number","title":"Base Cost","default":0},"total":{"type":"number","title":"Total","default":0},"support_hours_used":{"type":"number","title":"Support Hours Used","default":0},"support_package_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Support Package Cost"},"page_credits_used":{"type":"integer","title":"Page Credits Used","default":0},"page_credits_remaining":{"type":"integer","title":"Page Credits Remaining","default":0},"page_credits_valid_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Page Credits Valid Until"},"usages":{"items":{"$ref":"#/components/schemas/TenantUsageBreakdownDTO"},"type":"array","title":"Usages","default":[]}},"type":"object","title":"SubscriptionUsageBreakdownApiDTO"},"SubscriptionUsagePackagesAndPlansDTO":{"properties":{"usage_packages":{"items":{"$ref":"#/components/schemas/UsagePackage"},"type":"array","title":"Usage Packages"},"plans":{"items":{"$ref":"#/components/schemas/SubscriptionPlan"},"type":"array","title":"Plans"}},"type":"object","required":["usage_packages","plans"],"title":"SubscriptionUsagePackagesAndPlansDTO"},"SupportPackage":{"properties":{"type":{"$ref":"#/components/schemas/SupportPackageType"},"hours":{"type":"integer","title":"Hours"},"price":{"type":"number","title":"Price"},"price_per_additional_hour":{"type":"number","title":"Price Per Additional Hour"}},"type":"object","required":["type","hours","price","price_per_additional_hour"],"title":"SupportPackage"},"SupportPackageType":{"type":"string","enum":["STANDARD","ADVANCED","ENTERPRISE","CUSTOM"],"title":"SupportPackageType"},"TagDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"is_protected":{"type":"boolean","title":"Is Protected"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["aggregate_id","tenant_id","parent_id","name","slug","description","color","is_protected","created_at","updated_at","version"],"title":"TagDTO"},"TenantDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Email"},"provider_name":{"type":"string","title":"Provider Name"},"vat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Id"},"language":{"$ref":"#/components/schemas/AppLanguage"},"integration_configuration":{"anyOf":[{"$ref":"#/components/schemas/IntegrationConfigurationResponseDto"},{"type":"null"}]},"integration_type":{"$ref":"#/components/schemas/IntegrationType"},"default_integration_type":{"$ref":"#/components/schemas/IntegrationType"},"processing_configuration":{"anyOf":[{"$ref":"#/components/schemas/ProcessingConfigurationDto"},{"type":"null"}]},"export_configuration":{"anyOf":[{"$ref":"#/components/schemas/ExportConfigurationDto"},{"type":"null"}]},"active":{"type":"boolean","title":"Active"},"marked_for_deletion":{"type":"boolean","title":"Marked For Deletion"},"setup_completed":{"type":"boolean","title":"Setup Completed"},"profile":{"anyOf":[{"$ref":"#/components/schemas/TenantProfile"},{"type":"null"}]},"subscription_plan_type":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionPlanType"},{"type":"null"}]},"developer_mode":{"type":"boolean","title":"Developer Mode"},"reject_incomplete_documents":{"type":"boolean","title":"Reject Incomplete Documents"},"subscription":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionDTO"},{"type":"null"}]},"notification_configuration":{"anyOf":[{"$ref":"#/components/schemas/NotificationConfiguration"},{"type":"null"}]},"approval_configuration":{"anyOf":[{"$ref":"#/components/schemas/ApprovalConfigurationDto-Output"},{"type":"null"}]},"email_whitelist_configuration":{"anyOf":[{"$ref":"#/components/schemas/EmailWhitelistConfiguration"},{"type":"null"}]},"is_accounting_firm":{"type":"boolean","title":"Is Accounting Firm"},"is_client_tenant":{"type":"boolean","title":"Is Client Tenant"},"is_oppis_migration_tenant":{"type":"boolean","title":"Is Oppis Migration Tenant"},"auto_confirm_eslog_invoices":{"type":"boolean","title":"Auto Confirm Eslog Invoices"},"retention_period_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retention Period Days"},"feature_flags":{"items":{"type":"string"},"type":"array","title":"Feature Flags"},"validate_invoice_belongs_to_business_unit":{"type":"boolean","title":"Validate Invoice Belongs To Business Unit"},"in_deletion_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"In Deletion Since"}},"type":"object","required":["aggregate_id","created_at","updated_at","name","owner_email","provider_name","vat_id","language","integration_configuration","integration_type","default_integration_type","processing_configuration","export_configuration","active","marked_for_deletion","setup_completed","profile","subscription_plan_type","developer_mode","reject_incomplete_documents","subscription","notification_configuration","approval_configuration","email_whitelist_configuration","is_accounting_firm","is_client_tenant","is_oppis_migration_tenant","auto_confirm_eslog_invoices","retention_period_days","feature_flags","validate_invoice_belongs_to_business_unit","in_deletion_since"],"title":"TenantDTO"},"TenantExportScopeDTO":{"properties":{"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"can_export":{"type":"boolean","title":"Can Export"},"export_folders":{"items":{"$ref":"#/components/schemas/BusinessUnitExportFolderDTO"},"type":"array","title":"Export Folders"}},"type":"object","required":["tenant_id","can_export","export_folders"],"title":"TenantExportScopeDTO"},"TenantManagementInvitationDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"initiator_tenant_id":{"type":"string","format":"uuid","title":"Initiator Tenant Id"},"initiator_type":{"$ref":"#/components/schemas/InvitationInitiatorType"},"manager_tenant_id":{"type":"string","format":"uuid","title":"Manager Tenant Id"},"manager_tenant_name":{"type":"string","title":"Manager Tenant Name"},"client_tenant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Client Tenant Id"},"client_tenant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Tenant Name"},"source_business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Business Unit Id"},"source_business_unit_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Business Unit Name"},"invited_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited Email"},"usage_paid_by":{"$ref":"#/components/schemas/BillingPayer"},"storage_paid_by":{"$ref":"#/components/schemas/BillingPayer"},"status":{"$ref":"#/components/schemas/InvitationStatus"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["aggregate_id","initiator_tenant_id","initiator_type","manager_tenant_id","manager_tenant_name","client_tenant_id","client_tenant_name","source_business_unit_id","source_business_unit_name","invited_email","usage_paid_by","storage_paid_by","status","expires_at"],"title":"TenantManagementInvitationDTO"},"TenantManagementInvitationPreviewDTO":{"properties":{"manager_tenant_name":{"type":"string","title":"Manager Tenant Name"},"source_business_unit_name":{"type":"string","title":"Source Business Unit Name"},"invited_email_masked":{"type":"string","title":"Invited Email Masked"},"usage_paid_by":{"$ref":"#/components/schemas/BillingPayer"},"storage_paid_by":{"$ref":"#/components/schemas/BillingPayer"}},"type":"object","required":["manager_tenant_name","source_business_unit_name","invited_email_masked","usage_paid_by","storage_paid_by"],"title":"TenantManagementInvitationPreviewDTO"},"TenantManagementRelationshipDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"manager_tenant_id":{"type":"string","format":"uuid","title":"Manager Tenant Id"},"client_tenant_id":{"type":"string","format":"uuid","title":"Client Tenant Id"},"manager_tenant":{"$ref":"#/components/schemas/TenantSummaryDTO"},"client_tenant":{"$ref":"#/components/schemas/TenantSummaryDTO"},"usage_paid_by":{"$ref":"#/components/schemas/BillingPayer"},"storage_paid_by":{"$ref":"#/components/schemas/BillingPayer"},"role":{"anyOf":[{"$ref":"#/components/schemas/RoleDTO"},{"type":"null"}]},"user_grants":{"items":{"$ref":"#/components/schemas/UserGrantForClientTenantDto"},"type":"array","title":"User Grants","default":[]}},"type":"object","required":["aggregate_id","manager_tenant_id","client_tenant_id","manager_tenant","client_tenant","usage_paid_by","storage_paid_by","role"],"title":"TenantManagementRelationshipDTO"},"TenantProfile":{"properties":{"company_name":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]},"address":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]},"city":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]},"postal_code":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]},"country":{"anyOf":[{"type":"string","pattern":"^\\w{2}$"},{"type":"null"}],"title":"Country"},"vat_id":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]},"phone_number":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]},"billing_email":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]}},"type":"object","required":["company_name","address","city","postal_code","country","vat_id","phone_number","billing_email"],"title":"TenantProfile"},"TenantSummaryDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"name":{"type":"string","title":"Name"},"vat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Id"}},"type":"object","required":["aggregate_id","name","vat_id"],"title":"TenantSummaryDTO"},"TenantUsageBreakdownDTO":{"properties":{"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"tenant_name":{"type":"string","title":"Tenant Name"},"is_manager":{"type":"boolean","title":"Is Manager"},"pages_processed":{"type":"integer","title":"Pages Processed","default":0},"documents_processed":{"type":"integer","title":"Documents Processed","default":0},"line_items_pages_processed":{"type":"integer","title":"Line Items Pages Processed","default":0},"additional_fields_processed":{"type":"integer","title":"Additional Fields Processed","default":0},"storage_used_in_gigabytes":{"type":"number","title":"Storage Used In Gigabytes","default":0},"usage_paid_by":{"anyOf":[{"$ref":"#/components/schemas/BillingPayer"},{"type":"null"}]},"storage_paid_by":{"anyOf":[{"$ref":"#/components/schemas/BillingPayer"},{"type":"null"}]}},"type":"object","required":["tenant_id","tenant_name","is_manager"],"title":"TenantUsageBreakdownDTO"},"TenantUsageDTO":{"properties":{"documents_processed":{"type":"integer","title":"Documents Processed","default":0},"pages_processed":{"type":"integer","title":"Pages Processed","default":0}},"type":"object","title":"TenantUsageDTO"},"TextBlock":{"properties":{"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"value":{"type":"string","title":"Value"},"page_number":{"type":"integer","title":"Page Number"},"number":{"type":"integer","title":"Number"},"parsed_values":{"anyOf":[{"$ref":"#/components/schemas/ParsedValues"},{"type":"null"}]}},"type":"object","required":["x","y","width","height","value","page_number","number"],"title":"TextBlock"},"TextBlockValue":{"properties":{"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"x":{"type":"integer","title":"X","default":-1},"y":{"type":"integer","title":"Y","default":-1},"width":{"type":"integer","title":"Width","default":-1},"height":{"type":"integer","title":"Height","default":-1},"page_number":{"type":"integer","title":"Page Number","default":-1}},"type":"object","title":"TextBlockValue"},"TrainingFieldValue":{"properties":{"name":{"type":"string","title":"Name"},"value":{"items":{"$ref":"#/components/schemas/TextBlockValue"},"type":"array","title":"Value"}},"type":"object","required":["name","value"],"title":"TrainingFieldValue"},"TransactionDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"entry_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entry Reference"},"booking_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Booking Date"},"value_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Value Date"},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount"},"currency":{"type":"string","title":"Currency"},"original_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Original Amount"},"original_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Currency"},"credit_debit_indicator":{"type":"string","title":"Credit Debit Indicator"},"counterparty_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Counterparty Name"},"counterparty_iban":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Counterparty Iban"},"remittance_information":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Remittance Information"},"reference_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Number"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"synced_at":{"type":"string","format":"date-time","title":"Synced At"},"payment_records":{"anyOf":[{"items":{"$ref":"#/components/schemas/PaymentRecordDTO"},"type":"array"},{"type":"null"}],"title":"Payment Records"}},"type":"object","required":["id","entry_reference","booking_date","value_date","amount","currency","credit_debit_indicator","counterparty_name","counterparty_iban","remittance_information","reference_number","status","synced_at"],"title":"TransactionDTO"},"UpdateApiKeyRequest":{"properties":{"role":{"anyOf":[{"$ref":"#/components/schemas/UserRole"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Role"},"role_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Role Ids"},"authorized_business_unit_ids":{"anyOf":[{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array","minItems":1},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Authorized Business Unit Ids"},"name":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Name"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Business Unit Id"}},"additionalProperties":false,"type":"object","required":["role","role_ids","authorized_business_unit_ids","name","business_unit_id"],"title":"UpdateApiKeyRequest"},"UpdateApiKeyStatusRequest":{"properties":{"active":{"type":"boolean","title":"Active"}},"type":"object","required":["active"],"title":"UpdateApiKeyStatusRequest"},"UpdateBlockedIbansRequest":{"properties":{"business_unit_id":{"type":"string","format":"uuid","title":"Business Unit Id"},"ibans":{"items":{"type":"string"},"type":"array","title":"Ibans"}},"type":"object","required":["business_unit_id","ibans"],"title":"UpdateBlockedIbansRequest"},"UpdateBusinessUnitRequest":{"properties":{"inbox_email":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Inbox Email"},"integration_configuration":{"anyOf":[{"$ref":"#/components/schemas/IntegrationConfigurationCreateDto"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Integration Configuration"},"email_import_configuration":{"anyOf":[{"$ref":"#/components/schemas/BusinessUnitEmailImportConfigurationDto"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Email Import Configuration"},"processing_configuration":{"anyOf":[{"$ref":"#/components/schemas/ProcessingConfigurationDto"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Processing Configuration"},"export_configuration":{"anyOf":[{"$ref":"#/components/schemas/ExportConfigurationDto"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Export Configuration"},"minimax_configuration":{"anyOf":[{"$ref":"#/components/schemas/BusinessUnitMinimaxConfigurationDto"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Minimax Configuration"},"notification_configuration":{"anyOf":[{"$ref":"#/components/schemas/NotificationConfiguration"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Notification Configuration"},"approval_configuration":{"anyOf":[{"$ref":"#/components/schemas/ApprovalConfigurationDto-Input"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Approval Configuration"},"email_whitelist_configuration":{"anyOf":[{"$ref":"#/components/schemas/EmailWhitelistConfiguration"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Email Whitelist Configuration"},"ident":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Ident"},"vat_id":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Vat Id"},"name":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Name"},"read_inbox":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Read Inbox"},"extract_line_items":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Extract Line Items"},"document_type_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Document Type Id"}},"additionalProperties":false,"type":"object","required":["inbox_email","integration_configuration","email_import_configuration","processing_configuration","export_configuration","minimax_configuration","notification_configuration","approval_configuration","email_whitelist_configuration","ident","vat_id","name","read_inbox","extract_line_items","document_type_id"],"title":"UpdateBusinessUnitRequest"},"UpdateBusinessUnitStateRequest":{"properties":{"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},"type":"object","required":["active"],"title":"UpdateBusinessUnitStateRequest"},"UpdateCampaignRequest":{"properties":{"title":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Title"},"body":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Body"},"cta_label":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Cta Label"},"cta_href":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Cta Href"},"icon":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Icon"},"image_url":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Image Url"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Is Active"},"valid_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Valid To"}},"additionalProperties":false,"type":"object","required":["title","body","cta_label","cta_href","icon","image_url","is_active","valid_from","valid_to"],"title":"UpdateCampaignRequest","description":"Partial update. Omitted fields are left untouched.\n\n`slug` is absent on purpose: it is the identity the frontend namespaces\ndismiss state under, so renaming it would re-show the toast to every user\nwho had dismissed it. Use POST to publish a new campaign instead.\n\nNote the asymmetry for nullable fields -- omitting `image_url` keeps the\ncurrent value, whereas sending `null` clears it. That is the whole reason\nthis uses the Unspecified sentinel rather than plain optionals."},"UpdateCurrentUserRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Name"},"notification_preferences":{"anyOf":[{"$ref":"#/components/schemas/NotificationPreferences"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Notification Preferences"},"notification_business_unit_ids":{"anyOf":[{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Notification Business Unit Ids"},"language":{"anyOf":[{"$ref":"#/components/schemas/AppLanguage"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Language"}},"type":"object","required":["name","notification_preferences","notification_business_unit_ids","language"],"title":"UpdateCurrentUserRequest"},"UpdateDocumentDetailsRequest":{"properties":{"details":{"anyOf":[{"$ref":"#/components/schemas/DocumentConfirmedDetails"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"UpdateDocumentDetailsRequest"},"UpdateDocumentTypeRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"extract_vat_rates":{"type":"boolean","title":"Extract Vat Rates"},"is_system":{"type":"boolean","title":"Is System","default":false},"fields":{"items":{"$ref":"#/components/schemas/DocumentTypeCreateFieldDTO"},"type":"array","title":"Fields"}},"type":"object","required":["name","description","extract_vat_rates","fields"],"title":"UpdateDocumentTypeRequest"},"UpdateFieldRequest":{"properties":{"display_name":{"$ref":"#/components/schemas/NonEmptyStr"},"description":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]},"extractable":{"type":"boolean","title":"Extractable"},"field_type":{"$ref":"#/components/schemas/FieldType"},"required":{"type":"boolean","title":"Required","default":false},"unique":{"type":"boolean","title":"Unique","default":false},"default_value":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyStr"},{"type":"null"}]},"multiple_values":{"type":"boolean","title":"Multiple Values","default":false},"preset":{"anyOf":[{"$ref":"#/components/schemas/ExtractionFieldPreset"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/FieldConfiguration-Input"},{"type":"null"}]}},"type":"object","required":["display_name","description","extractable","field_type"],"title":"UpdateFieldRequest"},"UpdateIntegrationRequest":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"settings":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/AzureSsoUpdateSettings"},{"$ref":"#/components/schemas/MinimaxUpdateSettings"}],"discriminator":{"propertyName":"name","mapping":{"AzureSsoSettings":"#/components/schemas/AzureSsoUpdateSettings","MinimaxSettings":"#/components/schemas/MinimaxUpdateSettings"}}},{"type":"null"}],"title":"Settings"}},"type":"object","title":"UpdateIntegrationRequest"},"UpdatePartnerRequest":{"properties":{"vat_id":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Vat Id"},"registration_number":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Registration Number"},"name":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Name"},"address_line_1":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Address Line 2"},"city":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Postal Code"},"country_code":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Country Code"},"email":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Phone"},"website":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Website"},"default_currency":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Default Currency"},"is_vat_registered":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Is Vat Registered"},"notes":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Notes"},"bank_accounts":{"anyOf":[{"items":{"$ref":"#/components/schemas/BankAccount"},"type":"array"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Bank Accounts"}},"additionalProperties":false,"type":"object","required":["vat_id","registration_number","name","address_line_1","address_line_2","city","postal_code","country_code","email","phone","website","default_currency","is_vat_registered","notes","bank_accounts"],"title":"UpdatePartnerRequest"},"UpdateRoleRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Description"},"permissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Permissions"}},"additionalProperties":true,"type":"object","required":["name","description","permissions"],"title":"UpdateRoleRequest"},"UpdateSubscriptionPlanRequest":{"properties":{"subscription_plan_type":{"$ref":"#/components/schemas/SubscriptionPlanType"}},"type":"object","required":["subscription_plan_type"],"title":"UpdateSubscriptionPlanRequest"},"UpdateSubscriptionSupportPackageRequest":{"properties":{"support_package_type":{"$ref":"#/components/schemas/SupportPackageType"},"support_package_hours":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Support Package Hours"},"support_package_price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Support Package Price"},"support_package_price_per_additional_hour":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Support Package Price Per Additional Hour"}},"type":"object","required":["support_package_type"],"title":"UpdateSubscriptionSupportPackageRequest"},"UpdateSubscriptionUsagePackageRequest":{"properties":{"usage_package_type":{"$ref":"#/components/schemas/UsagePackageType"},"usage_package_pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Usage Package Pages"},"usage_package_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usage Package Price"},"usage_package_price_per_additional_page":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usage Package Price Per Additional Page"},"usage_package_price_per_additional_field":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usage Package Price Per Additional Field"},"usage_package_price_per_line_items_page":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usage Package Price Per Line Items Page"},"immediate":{"type":"boolean","title":"Immediate","default":false}},"type":"object","required":["usage_package_type"],"title":"UpdateSubscriptionUsagePackageRequest"},"UpdateTagRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Description"},"color":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Color"},"is_protected":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Is Protected"}},"additionalProperties":false,"type":"object","required":["name","description","color","is_protected"],"title":"UpdateTagRequest"},"UpdateTenantManagementRelationshipRequest":{"properties":{"role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Role Id","default":"UNSPECIFIED"},"usage_paid_by":{"anyOf":[{"$ref":"#/components/schemas/BillingPayer"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Usage Paid By","default":"UNSPECIFIED"},"storage_paid_by":{"anyOf":[{"$ref":"#/components/schemas/BillingPayer"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Storage Paid By","default":"UNSPECIFIED"},"user_grants":{"anyOf":[{"items":{"$ref":"#/components/schemas/UserGrantInput"},"type":"array"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"User Grants","default":"UNSPECIFIED"}},"additionalProperties":false,"type":"object","title":"UpdateTenantManagementRelationshipRequest"},"UpdateTenantProfileRequest":{"properties":{"profile":{"$ref":"#/components/schemas/TenantProfile"}},"type":"object","required":["profile"],"title":"UpdateTenantProfileRequest"},"UpdateTenantRequest":{"properties":{"notification_configuration":{"anyOf":[{"$ref":"#/components/schemas/NotificationConfiguration"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Notification Configuration"},"approval_configuration":{"anyOf":[{"$ref":"#/components/schemas/ApprovalConfigurationDto-Input"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Approval Configuration"},"email_whitelist_configuration":{"anyOf":[{"$ref":"#/components/schemas/EmailWhitelistConfiguration"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Email Whitelist Configuration"},"name":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Name"},"vat_id":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Vat Id"},"language":{"anyOf":[{"$ref":"#/components/schemas/AppLanguage"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Language"},"integration_configuration":{"anyOf":[{"$ref":"#/components/schemas/IntegrationConfigurationCreateDto"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Integration Configuration"},"processing_configuration":{"anyOf":[{"$ref":"#/components/schemas/ProcessingConfigurationDto"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Processing Configuration"},"export_configuration":{"anyOf":[{"$ref":"#/components/schemas/ApiExportConfigurationDto"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Export Configuration"},"integration_type":{"anyOf":[{"$ref":"#/components/schemas/IntegrationType"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Integration Type"},"setup_completed":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Setup Completed"},"developer_mode":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Developer Mode"},"reject_incomplete_documents":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Reject Incomplete Documents"},"auto_confirm_eslog_invoices":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Auto Confirm Eslog Invoices"},"is_oppis_migration_tenant":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Is Oppis Migration Tenant"},"retention_period_days":{"anyOf":[{"type":"integer"},{"type":"string","enum":["UNSPECIFIED"]},{"type":"null"}],"title":"Retention Period Days"},"validate_invoice_belongs_to_business_unit":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Validate Invoice Belongs To Business Unit"},"read_inboxes":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Read Inboxes"}},"additionalProperties":false,"type":"object","required":["notification_configuration","approval_configuration","email_whitelist_configuration","name","vat_id","language","integration_configuration","processing_configuration","export_configuration","integration_type","setup_completed","developer_mode","reject_incomplete_documents","auto_confirm_eslog_invoices","is_oppis_migration_tenant","retention_period_days","validate_invoice_belongs_to_business_unit","read_inboxes"],"title":"UpdateTenantRequest"},"UpdateUserRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Name"},"role":{"anyOf":[{"$ref":"#/components/schemas/UserRole"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Role"},"role_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Role Ids"},"authorized_business_unit_ids":{"anyOf":[{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Authorized Business Unit Ids"},"notification_business_unit_ids":{"anyOf":[{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Notification Business Unit Ids"},"notification_preferences":{"anyOf":[{"$ref":"#/components/schemas/NotificationPreferences"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Notification Preferences"},"can_export":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Can Export"},"tag_ids":{"anyOf":[{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array"},{"type":"string","enum":["UNSPECIFIED"]}],"title":"Tag Ids"}},"additionalProperties":true,"type":"object","required":["name","role","role_ids","authorized_business_unit_ids","notification_business_unit_ids","notification_preferences","can_export","tag_ids"],"title":"UpdateUserRequest"},"UpdateUserStatusRequest":{"properties":{"active":{"type":"boolean","title":"Active"}},"type":"object","required":["active"],"title":"UpdateUserStatusRequest"},"UpdateWebhookRequest":{"properties":{"event_names":{"items":{"type":"string"},"type":"array","title":"Event Names"},"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"business_unit_ids":{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array","minItems":1,"title":"Business Unit Ids"}},"type":"object","required":["event_names","url","business_unit_ids"],"title":"UpdateWebhookRequest"},"UpdateWebhookStatusRequest":{"properties":{"active":{"type":"boolean","title":"Active"}},"type":"object","required":["active"],"title":"UpdateWebhookStatusRequest"},"UsageDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subscription_id":{"type":"string","format":"uuid","title":"Subscription Id"},"type":{"$ref":"#/components/schemas/UsageType"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"},"quantity":{"type":"integer","title":"Quantity"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"usage_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Usage Date"},"issue_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issue Link"}},"type":"object","required":["id","subscription_id","type","created_at","business_unit_id","quantity"],"title":"UsageDTO"},"UsageDataPointDTO":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"total_pages":{"type":"integer","title":"Total Pages"},"total_documents":{"type":"integer","title":"Total Documents"},"total_bytes":{"type":"integer","title":"Total Bytes"},"business_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Business Unit Id"}},"type":"object","required":["date","total_pages","total_documents","total_bytes"],"title":"UsageDataPointDTO","description":"Single data point for usage analytics"},"UsagePackage":{"properties":{"type":{"$ref":"#/components/schemas/UsagePackageType"},"pages":{"type":"integer","title":"Pages"},"price":{"type":"number","title":"Price"},"price_per_additional_page":{"type":"number","title":"Price Per Additional Page"},"line_items_extraction_price":{"type":"number","title":"Line Items Extraction Price"},"price_per_additional_field":{"type":"number","title":"Price Per Additional Field","default":0.02}},"type":"object","required":["type","pages","price","price_per_additional_page","line_items_extraction_price"],"title":"UsagePackage"},"UsagePackageType":{"type":"string","enum":["PAYG","MINI","EXTRA_SMALL","SMALL","MEDIUM","LARGE","EXTRA_LARGE","CUSTOM"],"title":"UsagePackageType"},"UsageTrendDTO":{"properties":{"month":{"type":"string","format":"date-time","title":"Month"},"total_pages":{"type":"integer","title":"Total Pages"},"total_documents":{"type":"integer","title":"Total Documents"},"total_bytes":{"type":"integer","title":"Total Bytes"}},"type":"object","required":["month","total_pages","total_documents","total_bytes"],"title":"UsageTrendDTO","description":"Monthly usage trend data"},"UsageTrendsResponseDTO":{"properties":{"trends":{"items":{"$ref":"#/components/schemas/UsageTrendDTO"},"type":"array","title":"Trends"},"months_count":{"type":"integer","title":"Months Count"}},"type":"object","required":["trends","months_count"],"title":"UsageTrendsResponseDTO","description":"Usage trends response"},"UsageType":{"type":"string","enum":["PAGES","SUPPORT_MINUTES","ADDITIONAL_FIELD_EXTRACTIONS","LINE_ITEM_PAGES"],"title":"UsageType"},"UserDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"role":{"$ref":"#/components/schemas/UserRole"},"active":{"type":"boolean","title":"Active"},"role_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Role Ids"},"language":{"anyOf":[{"$ref":"#/components/schemas/AppLanguage"},{"type":"null"}]},"authorized_business_unit_ids":{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array","title":"Authorized Business Unit Ids"},"notification_business_unit_ids":{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array","title":"Notification Business Unit Ids"},"tag_ids":{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array","title":"Tag Ids"},"can_export":{"type":"boolean","title":"Can Export"},"identity_providers":{"items":{"$ref":"#/components/schemas/UserIdentityProviderDTO"},"type":"array","title":"Identity Providers"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"notification_preferences":{"$ref":"#/components/schemas/NotificationPreferences"},"accessible_tags":{"anyOf":[{"$ref":"#/components/schemas/AccessibleTagsDTO"},{"type":"null"}]}},"type":"object","required":["aggregate_id","tenant_id","created_at","updated_at","name","email","role","active","role_ids","language","authorized_business_unit_ids","notification_business_unit_ids","tag_ids","can_export","identity_providers","permissions","notification_preferences"],"title":"UserDTO"},"UserGrantForClientTenantDto":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name"},"role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Role Id"},"role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Name"},"is_owner":{"type":"boolean","title":"Is Owner"}},"type":"object","required":["user_id","email","name","role_id","role_name","is_owner"],"title":"UserGrantForClientTenantDto"},"UserGrantInput":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"role_id":{"type":"string","format":"uuid","title":"Role Id"}},"type":"object","required":["user_id","role_id"],"title":"UserGrantInput"},"UserIdentityProviderDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"provider":{"type":"string","title":"Provider"},"provider_user_id":{"type":"string","title":"Provider User Id"},"provider_email":{"type":"string","title":"Provider Email"},"linked_at":{"type":"string","format":"date-time","title":"Linked At"}},"type":"object","required":["aggregate_id","user_id","provider","provider_user_id","provider_email","linked_at"],"title":"UserIdentityProviderDTO"},"UserListItemDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"role":{"$ref":"#/components/schemas/UserRole"},"active":{"type":"boolean","title":"Active"},"role_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Role Ids"},"language":{"anyOf":[{"$ref":"#/components/schemas/AppLanguage"},{"type":"null"}]}},"type":"object","required":["aggregate_id","tenant_id","created_at","updated_at","name","email","role","active","role_ids","language"],"title":"UserListItemDTO"},"UserRole":{"type":"string","enum":["BU_READ_ONLY_USER","BU_USER","BU_ADMIN","TENANT_ADMIN","ADMIN"],"title":"UserRole"},"ValidateEmailResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"}},"type":"object","required":["valid"],"title":"ValidateEmailResponse"},"ValidateIntegrationRequest":{"properties":{"integration_name":{"type":"string","title":"Integration Name"}},"type":"object","required":["integration_name"],"title":"ValidateIntegrationRequest"},"ValidateMinimaxCredentialsRequest":{"properties":{"username":{"type":"string","minLength":1,"title":"Username"},"password":{"type":"string","minLength":1,"format":"password","title":"Password","writeOnly":true}},"type":"object","required":["username","password"],"title":"ValidateMinimaxCredentialsRequest"},"ValidateVatIdResponse":{"properties":{"is_valid":{"type":"boolean","title":"Is Valid"},"is_error":{"type":"boolean","title":"Is Error"},"name":{"type":"string","title":"Name"},"address":{"type":"string","title":"Address"},"city":{"type":"string","title":"City"},"postal_code":{"type":"string","title":"Postal Code"},"vat_number":{"type":"string","title":"Vat Number"},"original_vat_number":{"type":"string","title":"Original Vat Number"},"skd_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skd Code"},"registration_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registration Number"}},"type":"object","required":["is_valid","is_error","name","address","city","postal_code","vat_number","original_vat_number","skd_code","registration_number"],"title":"ValidateVatIdResponse","description":"The public (sign-up) VAT check: the company, never its trusted IBANs."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VatRateDTO":{"properties":{"percentage":{"type":"string","title":"Percentage"},"net":{"type":"string","title":"Net"},"vat":{"type":"string","title":"Vat"},"gross":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gross"}},"additionalProperties":false,"type":"object","required":["percentage","net","vat"],"title":"VatRateDTO"},"WebhookDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"event_names":{"items":{"type":"string"},"type":"array","title":"Event Names"},"url":{"type":"string","title":"Url"},"business_unit_ids":{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"*"}]},"type":"array","title":"Business Unit Ids"},"active":{"type":"boolean","title":"Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["aggregate_id","tenant_id","event_names","url","business_unit_ids","active","created_at","updated_at"],"title":"WebhookDTO"},"WebhookInvocationDTO":{"properties":{"aggregate_id":{"type":"string","format":"uuid","title":"Aggregate Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"webhook_id":{"type":"string","format":"uuid","title":"Webhook Id"},"invoice_id":{"type":"string","format":"uuid","title":"Invoice Id"},"successful":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Successful"},"last_response_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Response Code"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"number_of_invocations":{"type":"integer","title":"Number Of Invocations"},"last_invoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Invoked At"}},"type":"object","required":["aggregate_id","tenant_id","webhook_id","invoice_id","successful","last_response_code","payload","created_at","number_of_invocations"],"title":"WebhookInvocationDTO"}}}}