{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/api/v2/retool/admin/platform-files/new-upload-url":{"get":{"tags":["v2","Platform Files","Platform Files"],"summary":"Get Org Public File Upload Url","description":"NOTE: This is for Caresquare Admin use only (as org_id is provided)\n\nReturns a presigned upload url for public file storage in the folder of the provided org_id\n\norg_id: org to store the file against (in their folder)\nfolder: subfolder to store the file. eg. ServiceAgreements","operationId":"get_org_public_file_upload_url_api_v2_retool_admin_platform_files_new_upload_url_get","parameters":[{"name":"org_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"folder","in":"query","required":false,"schema":{"type":"string","default":"","title":"Folder"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/admin/platform-files/new-private-upload-url":{"get":{"tags":["v2","Platform Files","Platform Files"],"summary":"Get Org Private File Upload Url","description":"NOTE: This is for Caresquare Admin use only (as org_id is provided)\n\nReturns a presigned upload url for private file storage in the folder of the provided org_id\n\norg_id: org to store the file against (in their folder)\nfolder: subfolder to store the file. eg. service-agreements","operationId":"get_org_private_file_upload_url_api_v2_retool_admin_platform_files_new_private_upload_url_get","parameters":[{"name":"org_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"folder","in":"query","required":false,"schema":{"type":"string","default":"","title":"Folder"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/admin/platform-files/file-uploaded":{"post":{"tags":["v2","Platform Files","Platform Files"],"summary":"File Uploaded","description":"File Uploaded\n\nAfter file has been successfully uploaded, this route will update the db.\nIf file has already been entered into the database (checked via file key)\n    return existing row information\n\nexisting_file_reference_id: if this is a new version of an existing file, provide the existing file reference id to add while preserving old","operationId":"file_uploaded_api_v2_retool_admin_platform_files_file_uploaded_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadedPostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/admin/forms/apply-new-service-agreement":{"post":{"tags":["v2","Platform Files","Forms App","Admin"],"summary":"Apply New Service Agreement To Form Gen","description":"Apply a service agreement to an orgs form gen config","operationId":"apply_new_service_agreement_to_form_gen_api_v2_retool_admin_forms_apply_new_service_agreement_post","parameters":[{"name":"plan_manager_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Manager Id"}},{"name":"public_file_ref","in":"query","required":true,"schema":{"type":"string","title":"Public File Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/admin/forms/org-usage":{"get":{"tags":["v2","Platform Files","Forms App","Admin"],"summary":"Get Org Usage As Admin","description":"Return org usage data for the plan_manager_id provided","operationId":"get_org_usage_as_admin_api_v2_retool_admin_forms_org_usage_get","parameters":[{"name":"plan_manager_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Manager Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/admin/forms/org-access":{"post":{"tags":["v2","Platform Files","Forms App","Admin"],"summary":"Set Form Access For Plan Manager","description":"Enable (or disable) forms app usage for the requesting retool org\n\nOrg is supplied\n\nIf the org does not currently exist in the forms_org_admin table, they will be created","operationId":"set_form_access_for_plan_manager_api_v2_retool_admin_forms_org_access_post","parameters":[{"name":"enabled","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Enabled"}},{"name":"org_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"email_auto_gen_notifications_to","in":"query","required":false,"schema":{"type":"string","format":"email","title":"Email Auto Gen Notifications To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_FormsOrgAdminModel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/admin/forms/template-page-fields":{"get":{"tags":["v2","Platform Files","Forms App","Admin"],"summary":"Get Form Template Dynamic Fields","description":"Apply new dynamic fields to a PM's form template","operationId":"get_form_template_dynamic_fields_api_v2_retool_admin_forms_template_page_fields_get","parameters":[{"name":"plan_manager_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Manager Id"}},{"name":"page","in":"query","required":true,"schema":{"type":"string","title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["v2","Platform Files","Forms App","Admin"],"summary":"Post Form Template Dynamic Fields","description":"Apply new dynamic fields to a PM's form template","operationId":"post_form_template_dynamic_fields_api_v2_retool_admin_forms_template_page_fields_post","parameters":[{"name":"plan_manager_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Manager Id"}},{"name":"page","in":"query","required":true,"schema":{"type":"string","title":"Page"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FormTemplateDynamicField"},"title":"New Dynamic Fields"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/ndia/catalogue":{"get":{"tags":["v2","NDIA"],"summary":"Ndia Get Catalogue","description":"Returns NDIA Catalogue items\n\nsupport_item_number: optionally provide specific support item row\n    allow_partial_match: Allows partial substring search (only applicable if support item number string provided)","operationId":"ndia_get_catalogue_api_v2_retool_ndia_catalogue_get","parameters":[{"name":"support_item_number","in":"query","required":false,"schema":{"type":"string","title":"Support Item Number"}},{"name":"allow_partial_match","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Allow Partial Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_RefItemCatalogueModel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/forms-app/idv/fapi-transactions":{"get":{"tags":["v2","Forms App","IDV"],"summary":"Get Fapi Transaction Data","description":"Returns latest fapi transaction data that relate to a forms request id\nWill Decrypt encrypted token data into 'data' if it exists\n\nQuery Params:\n    connect_id_txn: ConnectID Transaction ID\n    forms_request_id: Forms Request ID\n    fapi_transaction_id: Fapi Transaction ID\n\n    At least one of these MUST be provided in order to get data","operationId":"get_fapi_transaction_data_api_v2_retool_forms_app_idv_fapi_transactions_get","parameters":[{"name":"connect_id_txn","in":"query","required":false,"schema":{"type":"string","title":"Connect Id Txn"}},{"name":"forms_request_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","title":"Forms Request Id"}},{"name":"fapi_interaction_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","title":"Fapi Interaction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_FapiTransactionsModel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/forms-app/requests":{"get":{"tags":["v2","Forms App"],"summary":"Get Forms Requests","description":"Returns all forms requests associated with the plan_manager_id\n\nFrom Table: public.form_requests","operationId":"get_forms_requests_api_v2_retool_forms_app_requests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_FormRequestModel_"}}}}}}},"/api/v2/retool/forms-app/requests-paginated":{"get":{"tags":["v2","Forms App"],"summary":"Get Forms Requests Paginated","description":"Returns all forms requests meta data associated with the plan_manager_id (paginated)\n\nFrom Table: public.form_requests","operationId":"get_forms_requests_paginated_api_v2_retool_forms_app_requests_paginated_get","parameters":[{"name":"cursor_position","in":"query","required":false,"schema":{"type":"string","format":"uuid","title":"Cursor Position"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"exclusiveMinimum":0,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_FormRequestModel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/forms-app/form-submissions-paginated":{"get":{"tags":["v2","Forms App"],"summary":"Get Pm Forms Paginated","description":"Returns all form submissions data associated with the plan_manager_id (paginated)\n\nFrom Table: forms.submissions","operationId":"get_pm_forms_paginated_api_v2_retool_forms_app_form_submissions_paginated_get","parameters":[{"name":"request_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"cursor_position","in":"query","required":false,"schema":{"type":"string","format":"uuid","title":"Cursor Position"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"exclusiveMinimum":0,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_SubmissionsModel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/forms-app/form-submissions-info-paginated":{"get":{"tags":["v2","Forms App"],"summary":"Get Pm Forms Count Paginated","description":"Returns all form submissions info *interpretted* associated with the plan_manager_id (paginated)\n\nFrom Table: forms.submissions","operationId":"get_pm_forms_count_paginated_api_v2_retool_forms_app_form_submissions_info_paginated_get","parameters":[{"name":"request_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"order_by","in":"query","required":false,"schema":{"type":"string","title":"Order By"}},{"name":"order_direction","in":"query","required":false,"schema":{"enum":["ASC","DESC"],"type":"string","default":"ASC","title":"Order Direction"}},{"name":"only_started_forms","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Only Started Forms"}},{"name":"cursor_position","in":"query","required":false,"schema":{"type":"string","title":"Cursor Position"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"exclusiveMinimum":0,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_FormSubmissionsInfo_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/forms-app/form-data":{"get":{"tags":["v2","Forms App"],"summary":"Get Form Data","description":"Returns the submitted data for a form request (decrypted)","operationId":"get_form_data_api_v2_retool_forms_app_form_data_get","parameters":[{"name":"request_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"flatten_dict_result","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Flatten Dict Result"}},{"name":"flatten_data_dict_to_fields","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Flatten Data Dict To Fields"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/forms-app/org-increment-test":{"post":{"tags":["v2","Forms App"],"summary":"Org Increment Test","description":"* Do Not Use *\nTesting of incrementation endpoint\nIncrement form org counts\nShould return dict of updated elements","operationId":"org_increment_test_api_v2_retool_forms_app_org_increment_test_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}}}}},"/api/v2/retool/forms-app/org-usage":{"get":{"tags":["v2","Forms App"],"summary":"Get Org Usage","description":"Return org usage data for the requesting retool user org\n\nOrg is extracted from Retool metadata / headers","operationId":"get_org_usage_api_v2_retool_forms_app_org_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}}}}},"/api/v2/retool/forms-app/org-access":{"post":{"tags":["v2","Forms App"],"summary":"Set Form Access For Plan Manager","description":"Enable (or disable) forms app usage for the requesting retool org\n\nOrg is extracted from Retool metadata / headers\n\nIf the org does not currently exist in the forms_org_admin table, they will be created","operationId":"set_form_access_for_plan_manager_api_v2_retool_forms_app_org_access_post","parameters":[{"name":"enabled","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Enabled"}},{"name":"email_auto_gen_notifications_to","in":"query","required":false,"schema":{"type":"string","format":"email","title":"Email Auto Gen Notifications To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_FormsOrgAdminModel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/forms-app/create-form-request":{"post":{"tags":["v2","Forms App"],"summary":"Create Form Request For Plan Manager","description":"Generates a form request for the Plan Manager provided\n\nWill attempt to email the respondent if provided","operationId":"create_form_request_for_plan_manager_api_v2_retool_forms_app_create_form_request_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFormRequestBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_FormRequestModel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/meta/user-data":{"get":{"tags":["v2","NDIA"],"summary":"Get Forms Requests Paginated","description":"Returns retool provided header metadata","operationId":"get_forms_requests_paginated_api_v2_retool_meta_user_data_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}}}}},"/api/v2/retool/participants/budget/info-view":{"get":{"tags":["v2","Participants","Participants","Budget"],"summary":"Get Participant Data For Pm","description":"Returns participants budget info data\nRequestor must have authority to access (be the partipants assigned plan_manager)","operationId":"get_participant_data_for_pm_api_v2_retool_participants_budget_info_view_get","parameters":[{"name":"participant_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Participant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_BudgetFullViewModel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/participants/budget/info-view-joined-demo":{"get":{"tags":["v2","Participants","Participants","Budget"],"summary":"Get Participant Data For Pm","description":"Returns participants budget info data\nRequestor must have authority to access (be the partipants assigned plan_manager)","operationId":"get_participant_data_for_pm_api_v2_retool_participants_budget_info_view_joined_demo_get","parameters":[{"name":"participant_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Participant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/participants/participant-files/list":{"get":{"tags":["v2","Participants","Participants","Platform Files"],"summary":"Get Participants Document Data","description":"Returns participants data \n\nRequestor must have authority to access (be the partipants assigned plan_manager)","operationId":"get_participants_document_data_api_v2_retool_participants_participant_files_list_get","parameters":[{"name":"participant_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Participant Id"}},{"name":"plan_id","in":"query","required":false,"schema":{"type":"integer","title":"Plan Id"}},{"name":"create_presigned_urls_for_private_files","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Create Presigned Urls For Private Files"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/participants/participant-files/delete":{"post":{"tags":["v2","Participants","Participants","Platform Files"],"summary":"Deleted Participant Document","description":"Deletes the participants document entry\n\nReturns ParticipantsFileDeleteResult\n\nRequestor must have authority to access (be the partipants assigned plan_manager)\n\nIF participant document is a platform_file type:\n    - Delete platform file (as per hard_delete choice)\n    If an exception occurs, the participant document will not be removed","operationId":"deleted_participant_document_api_v2_retool_participants_participant_files_delete_post","parameters":[{"name":"participant_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Participant Id"}},{"name":"participant_document_id","in":"query","required":true,"schema":{"type":"integer","title":"Participant Document Id"}},{"name":"hard_delete","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Hard Delete"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/participants/participant-data":{"get":{"tags":["v2","Participants"],"summary":"Get Participant Data For Pm","description":"Returns participants data \n\nRequestor must have authority to access (be the partipants assigned plan_manager)","operationId":"get_participant_data_for_pm_api_v2_retool_participants_participant_data_get","parameters":[{"name":"participant_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Participant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_ParticipantsModel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/platform-files/get-platform-file-url":{"get":{"tags":["v2","Platform Files"],"summary":"Get Platform File Url By Reference Id","description":"Returns the direct file url for the file reference id provided","operationId":"get_platform_file_url_by_reference_id_api_v2_retool_platform_files_get_platform_file_url_get","parameters":[{"name":"reference_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Reference Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/platform-files/get-platform-file-url-next":{"get":{"tags":["v2","Platform Files"],"summary":"Get Platform File Url By Id Next","description":"Returns the direct file url for the platform file id provided.\nSupports both public and private files (generates presigned URL for private files).\n\nUsed by caresquare-next for document download/view in the participant documents tab.\n\nQuery params:\n    - file_id: UUID of the platform file (platform_files.id)\n    - requestor_plan_manager_id: UUID of the requesting plan manager (for access control)\n    - requestor_user_id: Optional user ID for access control","operationId":"get_platform_file_url_by_id_next_api_v2_retool_platform_files_get_platform_file_url_next_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}}}}},"/api/v2/retool/platform-files/get-url":{"get":{"tags":["v2","Platform Files"],"summary":"Get Platform File Url By Id","description":"Returns the direct file url for the file reference id provided","operationId":"get_platform_file_url_by_id_api_v2_retool_platform_files_get_url_get","parameters":[{"name":"file_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/platform-files/get-platform-file-data":{"get":{"tags":["v2","Platform Files"],"summary":"Get Platform File Data","description":"Returns the platform file data from the db","operationId":"get_platform_file_data_api_v2_retool_platform_files_get_platform_file_data_get","parameters":[{"name":"reference_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Reference Id"}},{"name":"limit_version_history","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Limit Version History"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/platform-files/new-upload-url":{"get":{"tags":["v2","Platform Files"],"summary":"Get Public Pm File Upload Url","description":"Returns a presigned upload url for public file storage\n\nFile uploaded with this will be publicly accessible!","operationId":"get_public_pm_file_upload_url_api_v2_retool_platform_files_new_upload_url_get","parameters":[{"name":"folder","in":"query","required":false,"schema":{"type":"string","default":"","title":"Folder"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/platform-files/new-private-upload-url":{"get":{"tags":["v2","Platform Files"],"summary":"Get Private Pm File Upload Url","description":"Returns a presigned upload url for private file storage\n\nFile uploaded with this will not be publically accessible without a presigned access url","operationId":"get_private_pm_file_upload_url_api_v2_retool_platform_files_new_private_upload_url_get","parameters":[{"name":"folder","in":"query","required":false,"schema":{"type":"string","default":"","title":"Folder"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/retool/integrations/featurebase/user-hash":{"get":{"tags":["v2","External Integrations"],"summary":"Get User Hash","description":"Returns the secure user hash for this retool user for Featurebase Auth","operationId":"get_user_hash_api_v2_retool_integrations_featurebase_user_hash_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}}}}},"/api/v2/aws/forms-app/create-form-request":{"post":{"tags":["v2","Forms App","AWS"],"summary":"Create Form Request For Plan Manager","description":"Generates a form request for the Plan Manager provided.\n\nThis is used by the forms app to generate new forms.\n\nSupports two modes:\n1. Legacy: Pass plan_manager_id to use the default template for that org\n2. Multi-template: Pass forms_org_admin_id to use a specific template row\n   (plan_manager_id is optional in this case as it's derived from the row)\n\nOptional linking:\n- linked_participant_id: Link form to a participant (results will be associated with them)\n- linked_pm_provider_id: Link form to a provider (results will be associated with them)","operationId":"create_form_request_for_plan_manager_api_v2_aws_forms_app_create_form_request_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AWSCreateFormRequestBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_FormRequestModel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/aws/forms-app/form-completion":{"post":{"tags":["v2","Forms App","AWS"],"summary":"Handle Form Completion","description":"Recieves form completion notice from the forms app\n\nOperations:\n    Before client response:\n        - Check submissions are valid for completion status\n            - Raise HTTP Exception if invalid \n                OR\n            - Returns valid response to client and queues background task\n\n    Background Task (refer to: form_completion_background_task)\n\nTodo (future):\n    - Could use to UPDATE existing participant details if for the same PM etc. \n        (? different form_type, would approval be required by pm for updated values)","operationId":"handle_form_completion_api_v2_aws_forms_app_form_completion_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormCompletionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/aws/forms-app/create-preliminary-participant":{"post":{"tags":["v2","Forms App","AWS"],"summary":"Create Preliminary Participant Endpoint","description":"Creates a preliminary Lead participant from step 1 (participant details) form data.\n\nCalled by the forms app after the participant details step is successfully submitted,\nbefore the form is fully completed. This ensures a participant record exists in the\ndatabase with status=\"Lead\" and status_category=\"Form in progress\" as soon as a\nuser starts filling in their details.\n\nThe participant ID is stored in the form_request processing_outcomes so that\nform_completion_background_task skips re-creation and instead updates the existing record.\n\nNot valid for bank_details_form requests — those are pre-linked to an existing entity\nand must never create new participants.","operationId":"create_preliminary_participant_endpoint_api_v2_aws_forms_app_create_preliminary_participant_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePreliminaryParticipantRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/aws/forms-app/get-presigned-upload-url":{"get":{"tags":["v2","Forms App","AWS"],"summary":"Get Form Presigned Upload Url","description":"Returns a presigned upload url targetting the request owners forms folder associated with the form request\n* At this stage only pdfs are allowed\n\nIf no org owns the form_request it will warn and default to a zero org id of 00000000-0000-0000-0000-000000000000'\n    * This should not happen\n\nThe resulting location will be <private_bucket>/plan-managers/<org_id>/forms/<form_request_id>/<generated_unique_id>::<uploaded_file_name.xyz>\n\nThis is used by the forms app to allow form file uploads","operationId":"get_form_presigned_upload_url_api_v2_aws_forms_app_get_presigned_upload_url_get","parameters":[{"name":"form_request_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Form Request Id"}},{"name":"file_type","in":"query","required":false,"schema":{"const":"application/pdf","type":"string","default":"application/pdf","title":"File Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/registration/webhook":{"post":{"summary":"Process Handle Form Submission","operationId":"process_handle_form_submission_registration_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Process Handle Form Submission Registration Webhook Post"}}}}}}},"/registration/{plan_manager}":{"get":{"summary":"Serve Registration Form","operationId":"serve_registration_form_registration__plan_manager__get","parameters":[{"name":"plan_manager","in":"path","required":true,"schema":{"type":"string","title":"Plan Manager"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/classify_document":{"post":{"summary":"Classify Document Endpoint","operationId":"classify_document_endpoint_api_v1_classify_document_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassifyDocumentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Classify Document Endpoint Api V1 Classify Document Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/extract_header":{"post":{"summary":"Extract Header Endpoint","operationId":"extract_header_endpoint_api_v1_extract_header_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractHeaderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractHeaderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/extract_lines":{"post":{"summary":"Extract Lines Endpoint","operationId":"extract_lines_endpoint_api_v1_extract_lines_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractLinesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractLinesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analyze_lines":{"post":{"summary":"Analyze Lines Endpoint","operationId":"analyze_lines_endpoint_api_v1_analyze_lines_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeLineItemsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeLineItemsReponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analyze_results":{"post":{"summary":"Analyze Results Endpoint","operationId":"analyze_results_endpoint_api_v1_analyze_results_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeResultsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Analyze Results Endpoint Api V1 Analyze Results Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/handle_provider":{"post":{"summary":"Handle Provider Endpoint","operationId":"handle_provider_endpoint_api_v1_handle_provider_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandleProviderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Handle Provider Endpoint Api V1 Handle Provider Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/store_invoice":{"post":{"summary":"Store Invoice Endpoint","operationId":"store_invoice_endpoint_api_v1_store_invoice_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceData"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Store Invoice Endpoint Api V1 Store Invoice Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/provider_choice/extract_header":{"post":{"summary":"Extract Header Endpoint","operationId":"extract_header_endpoint_api_v1_provider_choice_extract_header_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractHeaderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractHeaderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/codat/sync_invoice":{"post":{"summary":"Codat Sync Invoice","operationId":"codat_sync_invoice_api_v1_codat_sync_invoice_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodatSyncInvoiceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Codat Sync Invoice Api V1 Codat Sync Invoice Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/xero/sync_invoice":{"post":{"summary":"Xero Sync Invoice","operationId":"xero_sync_invoice_api_v1_xero_sync_invoice_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XeroSyncInvoiceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Xero Sync Invoice Api V1 Xero Sync Invoice Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/xero/get_contacts":{"post":{"summary":"Xero Get Contacts","operationId":"xero_get_contacts_api_v1_xero_get_contacts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XeroGetContactsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Xero Get Contacts Api V1 Xero Get Contacts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/xero/sync_pm_invoice":{"post":{"summary":"Xero Sync Pm Invoice","operationId":"xero_sync_pm_invoice_api_v1_xero_sync_pm_invoice_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XeroSyncInvoiceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Xero Sync Pm Invoice Api V1 Xero Sync Pm Invoice Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/xero/resync_reference":{"post":{"summary":"Xero Resync Reference","description":"Resync the Reference field for an invoice that was already synced to Xero.\n\nUse this when the initial sync didn't include a Reference (clearing_number/payment_ref),\nbut now has that data available in the line items.\n\nThe reference is built using the same logic as the initial sync:\n- If both clearing_number and payment_ref exist: \"{clearing_number}_{payment_ref}\"\n- If only clearing_number exists: \"{clearing_number}\"\n- If only payment_ref exists: \"{payment_ref}\"","operationId":"xero_resync_reference_api_v1_xero_resync_reference_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XeroResyncReferenceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Xero Resync Reference Api V1 Xero Resync Reference Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/xero/resync_reference_batch":{"post":{"summary":"Xero Resync Reference Batch","description":"Batch resync the Reference field for multiple invoices.\n\nUse this to resync references for multiple invoices at once.\nEach invoice will be processed and categorized as successful, failed, or skipped.\n\nInvoices are skipped if:\n- Not yet synced to Xero\n- No line items found\n- No reference data available (clearing_number and payment_ref both empty)","operationId":"xero_resync_reference_batch_api_v1_xero_resync_reference_batch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XeroResyncReferenceBatchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Xero Resync Reference Batch Api V1 Xero Resync Reference Batch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/xero/service/{endpoint}":{"post":{"summary":"Get Xero Records","operationId":"get_xero_records_api_v1_xero_service__endpoint__post","parameters":[{"name":"endpoint","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EndpointName"}},{"name":"where","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Xero query filter","title":"Where"},"description":"Xero query filter"},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Field to order by","title":"Order By"},"description":"Field to order by"},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"modified_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO8601 datetime string","title":"Modified Since"},"description":"ISO8601 datetime string"},{"name":"get_all","in":"query","required":false,"schema":{"type":"boolean","description":"Fetch all records with pagination","default":false,"title":"Get All"},"description":"Fetch all records with pagination"},{"name":"plan_manager_id","in":"query","required":true,"schema":{"type":"string","description":"Plan manager ID","title":"Plan Manager Id"},"description":"Plan manager ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Xero Records Api V1 Xero Service  Endpoint  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retool/sync_retool":{"get":{"summary":"Sync Retool","operationId":"sync_retool_api_v1_retool_sync_retool_get","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetoolSyncRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Sync Retool Api V1 Retool Sync Retool Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retool/parse_email":{"get":{"summary":"Parse Email","operationId":"parse_email_api_v1_retool_parse_email_get","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailParseRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Parse Email Api V1 Retool Parse Email Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Parse Email Post","operationId":"parse_email_post_api_v1_retool_parse_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailParseRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Parse Email Post Api V1 Retool Parse Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retool/get_budget_formatted_data":{"post":{"summary":"Get Budget Formatted Data","operationId":"get_budget_formatted_data_api_v1_retool_get_budget_formatted_data_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetFormattedDataRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetFormattedDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/s3/get_presigned_url":{"get":{"summary":"Get Presigned Url Endpoint","description":"Get a presigned URL for S3 object access.\n\nNote: Authentication is handled at the router level via auth_depends_middleware (API key).","operationId":"get_presigned_url_endpoint_api_v1_s3_get_presigned_url_get","parameters":[{"name":"bucket_name","in":"query","required":true,"schema":{"type":"string","title":"Bucket Name"}},{"name":"object_name","in":"query","required":true,"schema":{"type":"string","title":"Object Name"}},{"name":"expiration","in":"query","required":true,"schema":{"type":"integer","title":"Expiration"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/getPresignedUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/claims/prechecks":{"post":{"summary":"Claim Prechecks","operationId":"claim_prechecks_api_v1_claims_prechecks_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"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/claims/no_precheck_submit":{"post":{"summary":"No Precheck Submit","operationId":"no_precheck_submit_api_v1_claims_no_precheck_submit_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"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/claims/post_payment_batch":{"post":{"summary":"Post Payment Batch","operationId":"post_payment_batch_api_v1_claims_post_payment_batch_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"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/claims/delete_payment":{"post":{"summary":"Delete Payment","operationId":"delete_payment_api_v1_claims_delete_payment_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimDeleteRequest"}}},"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/claims/get_active_participants":{"get":{"summary":"Get All Participants","operationId":"get_all_participants_api_v1_claims_get_active_participants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/claims/get_ndis_info":{"post":{"summary":"Ndis Worker","operationId":"ndis_worker_api_v1_claims_get_ndis_info_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NDISInfoWorkerRequest"}}},"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/claims/new_get_ndis_info":{"post":{"summary":"New Get Ndis Info","operationId":"new_get_ndis_info_api_v1_claims_new_get_ndis_info_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NDISInfoWorkerRequest"}}},"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/claims/ndis_info_worker":{"get":{"summary":"Ndis Info Worker","operationId":"ndis_info_worker_api_v1_claims_ndis_info_worker_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/claims/new_ndis_info_worker":{"get":{"summary":"Ndis Info Worker","operationId":"ndis_info_worker_api_v1_claims_new_ndis_info_worker_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/claims/get_batch_status":{"post":{"summary":"Get Batch Status","operationId":"get_batch_status_api_v1_claims_get_batch_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/getBatchStatus"}}},"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/claims/run_claim_status_worker":{"get":{"summary":"Claim Status Worker","operationId":"claim_status_worker_api_v1_claims_run_claim_status_worker_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/claims/run_check_payments_get":{"get":{"summary":"Run Check Payments Get","operationId":"run_check_payments_get_api_v1_claims_run_check_payments_get_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/claims/run_check_payments_by_claim_number":{"get":{"summary":"Run Check Payments By Claim Number","operationId":"run_check_payments_by_claim_number_api_v1_claims_run_check_payments_by_claim_number_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/claims/check_for_adjustment":{"post":{"summary":"Check For Adjustment","operationId":"check_for_adjustment_api_v1_claims_check_for_adjustment_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"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/claims/check_for_cancellation":{"post":{"summary":"Check For Cancellation","operationId":"check_for_cancellation_api_v1_claims_check_for_cancellation_post","requestBody":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Payload"}}},"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/claims/batch_delete_payments":{"post":{"summary":"Batch Delete Claims","description":"Endpoint to process batch deletion of claims.\n\nExpected payload format:\n[\n    {\n        \"line_item_id\": 123,\n        \"participant_number\": \"123456\",\n        \"claim_number\": \"CLAIM123\"\n    },\n    ...\n]","operationId":"batch_delete_claims_api_v1_claims_batch_delete_payments_post","requestBody":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Payload"}}},"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/claims/get_claim_batch":{"get":{"summary":"Get Claim Batch","description":"Get claim batch information.\n\nArgs:\n    batch_reference_name: The reference name of the batch\n    skip: Number of records to skip (for pagination)\n    top: Maximum number of records to return (for pagination)\n    plan_manager_id: The plan manager ID (extracted from headers)","operationId":"get_claim_batch_api_v1_claims_get_claim_batch_get","parameters":[{"name":"batch_reference_name","in":"query","required":true,"schema":{"type":"string","title":"Batch Reference Name"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Skip"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","default":75,"title":"Top"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/budget/get_budget":{"post":{"summary":"Get Budget","operationId":"get_budget_api_v1_budget_get_budget_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetPlanGetRequest"}}},"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/budget/get_plan":{"post":{"summary":"Get Plan","operationId":"get_plan_api_v1_budget_get_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetPlanGetRequest"}}},"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/budget/new_budget":{"post":{"summary":"New Budget","operationId":"new_budget_api_v1_budget_new_budget_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetPlanGetRequest"}}},"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/budget_rules/":{"post":{"summary":"Create Budget Rule","description":"Create a new budget rule with associated provider rules and optional invoice rule.\n\nA budget rule consists of:\n- A budget rule group that contains metadata\n- One or more provider budget rules with specific constraints\n- An optional associated invoice rule for validation","operationId":"create_budget_rule_api_v1_budget_rules__post","parameters":[{"name":"plan_manager_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetRuleCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_BudgetRuleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Budget Rules","description":"Get all budget rules for the authenticated plan manager.\n\nOptional filters:\n- participant_id: Filter rules for a specific participant\n- active_only: Only return active rules (default: true)","operationId":"get_budget_rules_api_v1_budget_rules__get","parameters":[{"name":"participant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by participant ID","title":"Participant Id"},"description":"Filter by participant ID"},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only return active rules","default":true,"title":"Active Only"},"description":"Only return active rules"},{"name":"plan_manager_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_BudgetRuleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/budget_rules/with-provider-rules":{"post":{"summary":"Create Budget Rule With Provider Rules","description":"Create budget rule with provider_rules containing amount/support_item pairs.\n\nThis endpoint accepts provider_rules as either:\n- JSON string: \"[{\"amount\":0,\"support_item\":\"04_049_0104_1_1\"}]\"\n- Direct array: [{\"amount\":0,\"support_item\":\"04_049_0104_1_1\"}]\n\nBoth formats are automatically converted to JSON string for processing.\n\nExample payload (works with both JSON string and array formats):\n```json\n{\n  \"participant_id\": \"d347efc2-5eca-4efd-bb5c-cf6144fa96bf\",\n  \"budget_category\": \"Assistance with Social, Economic and Community Participation\",\n  \"effective_date\": \"2024-02-01\",\n  \"expiry_date\": \"2026-02-01\",\n  \"provider_rules\": [{\"amount\":0,\"support_item\":\"04_049_0104_1_1\"},{\"amount\":1000,\"support_item\":\"04_402_0104_1_1\"}],\n  \"invoice_rule\": {\n    \"name\": \"Budget Rule\",\n    \"target\": \"ndis_line_items\",\n    \"rule_message\": \"Budget rule exceeded, please check\"\n  }\n}\n```\n\nCreates one provider_budget_rule for each item in the provider_rules array.","operationId":"create_budget_rule_with_provider_rules_api_v1_budget_rules_with_provider_rules_post","parameters":[{"name":"plan_manager_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetRuleCreateRequestWithProviderRules"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_BudgetRuleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/budget_rules/{rule_group_id}/with-provider-rules":{"put":{"summary":"Update Budget Rule With Provider Rules","description":"Update an existing budget rule using the simplified provider_rules format.\n\nThis endpoint updates a budget rule with the same format as creation:\n- JSON string or array for provider_rules\n- Will replace ALL existing provider rules with the new ones\n- Will update or create the invoice rule\n\nExample:\n```json\n{\n  \"budget_category\": \"Assistance with Social, Economic and Community Participation\",\n  \"effective_date\": \"2024-02-01\",\n  \"expiry_date\": \"2026-02-01\", \n  \"provider_rules\": \"[{\"amount\":500,\"support_item\":\"04_049_0104_1_1\"},{\"amount\":1000,\"support_item\":\"04_402_0104_1_1\"}]\",\n  \"invoice_rule\": {\n    \"name\": \"Budget Rule\",\n    \"target\": \"ndis_line_items\",\n    \"rule_message\": \"Budget rule exceeded, please check\"\n  }\n}\n```","operationId":"update_budget_rule_with_provider_rules_api_v1_budget_rules__rule_group_id__with_provider_rules_put","parameters":[{"name":"rule_group_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Group Id"}},{"name":"plan_manager_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetRuleCreateRequestWithProviderRules"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_BudgetRuleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/budget_rules/{rule_group_id}":{"get":{"summary":"Get Budget Rule","description":"Get a specific budget rule by its group ID.\n\nReturns the complete budget rule including:\n- Budget rule group metadata\n- All associated provider budget rules\n- Associated invoice rule (if any)","operationId":"get_budget_rule_api_v1_budget_rules__rule_group_id__get","parameters":[{"name":"rule_group_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Group Id"}},{"name":"plan_manager_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_BudgetRuleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Budget Rule","description":"Update an existing budget rule.\n\nCan update:\n- Budget rule group metadata (category, dates)\n- Provider budget rules (will replace existing rules)\n- Invoice rule (will update or create new)\n\nNote: Updating provider_rules will replace all existing provider rules\nfor this budget rule group.","operationId":"update_budget_rule_api_v1_budget_rules__rule_group_id__put","parameters":[{"name":"rule_group_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Group Id"}},{"name":"plan_manager_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetRuleUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_BudgetRuleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Budget Rule","description":"Delete a budget rule and all associated records.\n\nThis will delete:\n- The budget rule group\n- All associated provider budget rules\n- The associated invoice rule (if any)\n\nThis action cannot be undone.","operationId":"delete_budget_rule_api_v1_budget_rules__rule_group_id__delete","parameters":[{"name":"rule_group_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Group Id"}},{"name":"plan_manager_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/budget_rules/cleanup-orphaned-invoice-rules":{"post":{"summary":"Cleanup Orphaned Invoice Rules","description":"Clean up orphaned invoice rules that are not referenced by any budget_rules_groups.\n\nThis is a maintenance endpoint that removes invoice rules that may have been \nleft behind due to incomplete updates or system issues.\n\nReturns the number of orphaned rules that were cleaned up.","operationId":"cleanup_orphaned_invoice_rules_api_v1_budget_rules_cleanup_orphaned_invoice_rules_post","parameters":[{"name":"plan_manager_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/business_rules_analysis/analyse_line_items":{"post":{"summary":"Analyse business rules violations for line items","description":"Analyses a list of line items for business rules violations against participant data","operationId":"analyse_line_items_endpoint_api_v1_business_rules_analysis_analyse_line_items_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRulesAnalysisRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRulesAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/business_rules_analysis/analyse_by_invoice":{"post":{"summary":"Analyse business rules violations by invoice ID","description":"Retrieves invoice data and analyses line items for business rules violations","operationId":"analyse_by_invoice_endpoint_api_v1_business_rules_analysis_analyse_by_invoice_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRulesAnalysisByInvoiceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRulesAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/budget/{participant_id}":{"get":{"summary":"Get Participant Budget","description":"Retrieve formatted budget information for a participant including budget types, categories, items, and plan information.","operationId":"get_budget_endpoint_api_v1_participant_info_budget__participant_id__get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID","example":"participant_123"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__BudgetResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/budget":{"post":{"summary":"Get Participant Budget (POST)","description":"Retrieve formatted budget information for a participant using POST request body.","operationId":"get_budget_post_endpoint_api_v1_participant_info_budget_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantIdRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__BudgetResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/budget-bookings/{participant_id}":{"get":{"summary":"Get Budget and Bookings Combined","description":"Retrieve combined budget and bookings information for a participant. For pace plans, bookings are excluded as per business rules.","operationId":"get_budget_bookings_endpoint_api_v1_participant_info_budget_bookings__participant_id__get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID","example":"participant_123"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetBookingsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/budget-bookings":{"post":{"summary":"Get Budget and Bookings Combined (POST)","description":"Retrieve combined budget and bookings information for a participant using POST request body. For pace plans, bookings are excluded as per business rules.","operationId":"get_budget_bookings_post_endpoint_api_v1_participant_info_budget_bookings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantIdRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetBookingsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/bookings/{participant_id}":{"get":{"summary":"Get Service Bookings","description":"Retrieve service bookings information for a participant including booking details and spending metrics.","operationId":"get_bookings_endpoint_api_v1_participant_info_bookings__participant_id__get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID","example":"participant_123"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/bookings":{"post":{"summary":"Get Service Bookings (POST)","description":"Retrieve service bookings information for a participant using POST request body.","operationId":"get_bookings_post_endpoint_api_v1_participant_info_bookings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantIdRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/invoices/{participant_id}":{"get":{"summary":"Get Historical Invoices","description":"Retrieve historical invoices for a participant with optional filtering.","operationId":"get_invoices_endpoint_api_v1_participant_info_invoices__participant_id__get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID","example":"participant_123"},{"name":"support_category_name","in":"query","required":false,"schema":{"type":"string","description":"Filter by support category name","title":"Support Category Name"},"description":"Filter by support category name"},{"name":"support_category_name_pace","in":"query","required":false,"schema":{"type":"string","description":"Filter by PACE support category name","title":"Support Category Name Pace"},"description":"Filter by PACE support category name"},{"name":"return_received","in":"query","required":false,"schema":{"type":"boolean","description":"Return received invoices (default is False)","default":false,"title":"Return Received"},"description":"Return received invoices (default is False)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicesResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/invoices":{"post":{"summary":"Get Historical Invoices (POST)","description":"Retrieve historical invoices for a participant using POST request body with optional filtering.","operationId":"get_invoices_post_endpoint_api_v1_participant_info_invoices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicesResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/participants/{user_id}":{"get":{"summary":"Get Available Participants","description":"Get participants that a user is authorized to view.","operationId":"get_participants_endpoint_api_v1_participant_info_participants__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","description":"User ID","title":"User Id"},"description":"User ID","example":"user_456"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableParticipantsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/participants":{"post":{"summary":"Get Available Participants (POST)","description":"Get participants that a user is authorized to view using POST request body.","operationId":"get_participants_post_endpoint_api_v1_participant_info_participants_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__UserIdRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableParticipantsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/user-participants/{user_id}":{"get":{"summary":"Get User Participants with Details","description":"Get detailed participant information for all participants a user has access to, including permissions, plan info, and plan manager details.","operationId":"get_user_participants_endpoint_api_v1_participant_info_user_participants__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","description":"User ID","title":"User Id"},"description":"User ID","example":"user_456"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserParticipantsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/user-participants":{"post":{"summary":"Get User Participants with Details (POST)","description":"Get detailed participant information for all participants a user has access to using POST request body, including permissions, plan info, and plan manager details.","operationId":"get_user_participants_post_endpoint_api_v1_participant_info_user_participants_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__UserIdRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserParticipantsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/invoice-pdf":{"get":{"summary":"Get Invoice PDF URL","description":"Generate presigned URL for invoice PDF access.","operationId":"get_invoice_pdf_endpoint_api_v1_participant_info_invoice_pdf_get","parameters":[{"name":"s3_key","in":"query","required":true,"schema":{"type":"string","description":"S3 key for the invoice PDF","title":"S3 Key"},"description":"S3 key for the invoice PDF"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__InvoicePdfResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Get Invoice PDF URL (POST)","description":"Generate presigned URL for invoice PDF access using POST request body.","operationId":"get_invoice_pdf_post_endpoint_api_v1_participant_info_invoice_pdf_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePdfRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__InvoicePdfResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/invoice-stats/{participant_id}":{"get":{"summary":"Get Invoice Statistics","description":"Get invoice statistics for a participant for a specific month.","operationId":"get_invoice_stats_endpoint_api_v1_participant_info_invoice_stats__participant_id__get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID","example":"participant_123"},{"name":"month","in":"query","required":false,"schema":{"type":"string","description":"Month in YYYY-MM format","title":"Month"},"description":"Month in YYYY-MM format","example":"2024-01"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceStatsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/participant_info/invoice-stats":{"post":{"summary":"Get Invoice Statistics (POST)","description":"Get invoice statistics for a participant using POST request body.","operationId":"get_invoice_stats_post_endpoint_api_v1_participant_info_invoice_stats_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceStatsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceStatsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__participant_info__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/service_bookings/get_service_booking":{"post":{"summary":"Get Service Booking","operationId":"get_service_booking_api_v1_service_bookings_get_service_booking_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SBGetRequest"}}},"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/service_bookings/get_bookings":{"post":{"summary":"Get Bookings","operationId":"get_bookings_api_v1_service_bookings_get_bookings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SBGetRequest"}}},"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/service_bookings/create_service_booking":{"post":{"summary":"Create Service Booking","operationId":"create_service_booking_api_v1_service_bookings_create_service_booking_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SBCreateRequest"}}},"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/service_bookings/modify_service_booking":{"post":{"summary":"Modify Service Booking","operationId":"modify_service_booking_api_v1_service_bookings_modify_service_booking_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SBModifyRequest"}}},"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/service_bookings/delete_service_booking":{"post":{"summary":"Delete Service Booking","operationId":"delete_service_booking_api_v1_service_bookings_delete_service_booking_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SBDeleteRequest"}}},"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/careaccess/subscriptions/create_webhook_subscription":{"post":{"summary":"Create Webhook Subscription","operationId":"create_webhook_subscription_api_v1_careaccess_subscriptions_create_webhook_subscription_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscribeRequest"}}},"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/careaccess/subscriptions/remove_webhook_subscription":{"post":{"summary":"Remove Webhook Subscription","operationId":"remove_webhook_subscription_api_v1_careaccess_subscriptions_remove_webhook_subscription_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookUnsubscribeRequest"}}},"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/careaccess/subscriptions/list_webhook_subscriptions":{"get":{"summary":"List Webhook Subscriptions","operationId":"list_webhook_subscriptions_api_v1_careaccess_subscriptions_list_webhook_subscriptions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/careaccess/subscriptions/validate_required_webhook_subscriptions":{"post":{"summary":"List Webhook Subscriptions","operationId":"list_webhook_subscriptions_api_v1_careaccess_subscriptions_validate_required_webhook_subscriptions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookValidateSubscriptionsRequest"}}},"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/statements/generate_participants_payload":{"post":{"summary":"Handle Generate Participants Payload","operationId":"handle_generate_participants_payload_api_v1_statements_generate_participants_payload_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__v1__endpoints__accounting__statements_router__generateParticipantPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Handle Generate Participants Payload Api V1 Statements Generate Participants Payload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/statements/generate_statements_payload":{"post":{"summary":"Handle Generate Statements Payload","operationId":"handle_generate_statements_payload_api_v1_statements_generate_statements_payload_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__v1__endpoints__accounting__statements_router__generateParticipantPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Handle Generate Statements Payload Api V1 Statements Generate Statements Payload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/statements/chunk_statements_payload":{"post":{"summary":"Handle Split Statements Payload","operationId":"handle_split_statements_payload_api_v1_statements_chunk_statements_payload_post","requestBody":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Handle Split Statements Payload Api V1 Statements Chunk Statements Payload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/statements/generate_statements":{"post":{"summary":"Handle Statements","operationId":"handle_statements_api_v1_statements_generate_statements_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/generateStatementsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Handle Statements Api V1 Statements Generate Statements Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pm_invoice/generate_participants_payload":{"post":{"summary":"Handle Generate Participants Payload","description":"Generates a list of participant ids for a given billing period.\n\nKeyword arguments:\npayload -- the payload to generate the participants\nReturns:\nList[str] -- the list of participants","operationId":"handle_generate_participants_payload_api_v1_pm_invoice_generate_participants_payload_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__pm_invoices__generateParticipantPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Handle Generate Participants Payload Api V1 Pm Invoice Generate Participants Payload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pm_invoice/generate_pm_invoices":{"post":{"summary":"Handle Pm Invoices","operationId":"handle_pm_invoices_api_v1_pm_invoice_generate_pm_invoices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/generatePmInvoicesPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Handle Pm Invoices Api V1 Pm Invoice Generate Pm Invoices Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pm_invoice/regenerate_pm_invoice":{"post":{"summary":"Handle Regenerate Pm Invoice","description":"Re-renders an existing PM fee invoice's PDF in place, so an invoice whose\nfields or line items were edited can be refreshed without deleting it and\ngenerating a replacement.","operationId":"handle_regenerate_pm_invoice_api_v1_pm_invoice_regenerate_pm_invoice_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/regeneratePmInvoiceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Handle Regenerate Pm Invoice Api V1 Pm Invoice Regenerate Pm Invoice Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pm_invoice/bulk_generate_pm_invoices":{"post":{"summary":"Handle Bulk Generate Pm Invoices","operationId":"handle_bulk_generate_pm_invoices_api_v1_pm_invoice_bulk_generate_pm_invoices_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/generatePmInvoicesPayload"},"type":"array","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Handle Bulk Generate Pm Invoices Api V1 Pm Invoice Bulk Generate Pm Invoices Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/remittance/generate_remittance":{"post":{"summary":"Handle Remittance","operationId":"handle_remittance_api_v1_remittance_generate_remittance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/generateRemittanceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Handle Remittance Api V1 Remittance Generate Remittance Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/remittance_portal/remittance":{"post":{"summary":"Get remittance data by payment reference","description":"Retrieve invoices and line items associated with a payment reference for remittance portal access","operationId":"get_remittance_data_api_v1_remittance_portal_remittance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemittancePortalRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemittancePortalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/create_aba_file":{"post":{"summary":"Create Aba File Route","operationId":"create_aba_file_route_api_v1_payments_create_aba_file_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/abaFileRequest"}}},"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/user_auth/create_user":{"post":{"summary":"Create User Endpoint","operationId":"create_user_endpoint_api_v1_user_auth_create_user_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create User Endpoint Api V1 User Auth Create User Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user_auth/bulk_create_users":{"post":{"summary":"Bulk Create Users Endpoint","operationId":"bulk_create_users_endpoint_api_v1_user_auth_bulk_create_users_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCreateUsersPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Bulk Create Users Endpoint Api V1 User Auth Bulk Create Users Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user_auth/update_user_metadata":{"post":{"summary":"Update User Metadata Endpoint","description":"Update user mobile number in Supabase auth.users table.","operationId":"update_user_metadata_endpoint_api_v1_user_auth_update_user_metadata_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserMetadata"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Update User Metadata Endpoint Api V1 User Auth Update User Metadata Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user_auth/send_sms_otp":{"post":{"summary":"Send Sms Otp Endpoint","description":"Send SMS OTP to the provided phone number.\n\nThe phone number should be in international format (e.g., +13334445555).","operationId":"send_sms_otp_endpoint_api_v1_user_auth_send_sms_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendSmsOtp"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Send Sms Otp Endpoint Api V1 User Auth Send Sms Otp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user_auth/verify_sms_otp":{"post":{"summary":"Verify Sms Otp Endpoint","description":"Verify SMS OTP token for the provided phone number.\n\nReturns user information and session data if verification is successful.","operationId":"verify_sms_otp_endpoint_api_v1_user_auth_verify_sms_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifySmsOtp"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Verify Sms Otp Endpoint Api V1 User Auth Verify Sms Otp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user_auth/user_sms_login":{"post":{"summary":"User Sms Login Endpoint","description":"Login user via SMS OTP.\n\nThe user ID is the user's profile ID.","operationId":"user_sms_login_endpoint_api_v1_user_auth_user_sms_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__v1__endpoints__user_auth__user_auth_router__UserIdRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response User Sms Login Endpoint Api V1 User Auth User Sms Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/encryption/encrypt":{"post":{"summary":"Encrypt","operationId":"encrypt_api_v1_encryption_encrypt_post","parameters":[{"name":"data","in":"query","required":true,"schema":{"type":"string","title":"Data"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/encryption/decrypt":{"post":{"summary":"Decrypt","operationId":"decrypt_api_v1_encryption_decrypt_post","parameters":[{"name":"data","in":"query","required":true,"schema":{"type":"string","title":"Data"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/database/upsert":{"post":{"summary":"Upsert","description":"Upsert arbitrary data into the database.\nArgs:\n    data (List[Dict]): List of dictionaries containing the data to upsert\n    table_name (str): Name of the table to upsert into (provided in header)\nReturns:\n    dict: Result of the upsert operation with verification and summary","operationId":"upsert_api_v1_database_upsert_post","parameters":[{"name":"table-name","in":"header","required":true,"schema":{"type":"string","title":"Table-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/database/insert":{"post":{"summary":"Insert","description":"Insert new records into the database. Will not update existing records.\nArgs:\n    data (List[Dict]): List of dictionaries containing the data to insert\n    table_name (str): Name of the table to insert into (provided in header)\n    unique_key (str): Field name to use as the unique identifier (provided in header)\nReturns:\n    dict: Result of the insert operation with summary","operationId":"insert_api_v1_database_insert_post","parameters":[{"name":"table-name","in":"header","required":true,"schema":{"type":"string","title":"Table-Name"}},{"name":"unique-key","in":"header","required":true,"schema":{"type":"string","title":"Unique-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/redrive/executions":{"post":{"summary":"Redrive","description":"API endpoint to redrive failed executions within a given date range.","operationId":"redrive_api_v1_redrive_executions_post","parameters":[{"name":"state_machine_arn","in":"query","required":true,"schema":{"type":"string","title":"State Machine Arn"}},{"name":"start_date","in":"query","required":false,"schema":{"type":"string","description":"Full timestamp in format YYYY-MM-DDTHH:MM:SSZ (optional)","title":"Start Date"},"description":"Full timestamp in format YYYY-MM-DDTHH:MM:SSZ (optional)"},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","description":"Full timestamp in format YYYY-MM-DDTHH:MM:SSZ (optional)","title":"End Date"},"description":"Full timestamp in format YYYY-MM-DDTHH:MM:SSZ (optional)"},{"name":"max_redrive_count","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Maximum number of existing redrive attempts allowed (default: 3)","default":3,"title":"Max Redrive Count"},"description":"Maximum number of existing redrive attempts allowed (default: 3)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/redrive/execution":{"post":{"summary":"Redrive Single Execution","description":"API endpoint to redrive a specific execution.","operationId":"redrive_single_execution_api_v1_redrive_execution_post","parameters":[{"name":"execution_arn","in":"query","required":true,"schema":{"type":"string","title":"Execution Arn"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/execution-result":{"get":{"summary":"Execution Result","description":"Get the step function execution details for the given execution id or s3_key\ndebug: True returns additional execution state and event data","operationId":"execution_result_api_v1_workflows_execution_result_get","parameters":[{"name":"execution_id","in":"query","required":false,"schema":{"type":"string","title":"Execution Id"}},{"name":"s3_key","in":"query","required":false,"schema":{"type":"string","title":"S3 Key"}},{"name":"debug","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Debug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/document-handler-history":{"get":{"summary":"Document Handler History","description":"Get the execution history for the given plan manager lookup name","operationId":"document_handler_history_api_v1_workflows_document_handler_history_get","parameters":[{"name":"plan_manager_lookup_name","in":"query","required":true,"schema":{"type":"string","title":"Plan Manager Lookup Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/recent-documents-status":{"get":{"summary":"Recent Documents Status","description":"Get the status of invoice uploads from their associated S3 buckets\ninclude_successful: True inlcudes matching documents in the successful S3 bucket (out)\nexclude_buckets: list of bucket names to exclude from the response","operationId":"recent_documents_status_api_v1_workflows_recent_documents_status_get","parameters":[{"name":"plan_manager_lookup_name","in":"query","required":true,"schema":{"type":"string","title":"Plan Manager Lookup Name"}},{"name":"include_successful","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Successful"}},{"name":"days_back","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Days Back"}},{"name":"exclude_buckets","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Exclude Buckets"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/approvals/batch/send":{"post":{"summary":"Send Batch Invoices","operationId":"send_batch_invoices_api_v1_approvals_batch_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendBatchInvoicesRequest"}}},"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/approvals/invoice/confirm":{"get":{"summary":"Confirm Invoice","operationId":"confirm_invoice_api_v1_approvals_invoice_confirm_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/approvals/invoice/confirm/approve":{"post":{"summary":"Approve Invoice","operationId":"approve_invoice_api_v1_approvals_invoice_confirm_approve_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_approve_invoice_api_v1_approvals_invoice_confirm_approve_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/approvals/invoice/confirm/reject":{"post":{"summary":"Reject Invoice With Reason","operationId":"reject_invoice_with_reason_api_v1_approvals_invoice_confirm_reject_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_reject_invoice_with_reason_api_v1_approvals_invoice_confirm_reject_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/statements/pdfmonkey/webhook":{"post":{"summary":"Handle Pdfmonkey Webhook","description":"Handles the rendered-document webhook from either PDF provider (PDFMonkey or\ncaresquare-pdf-generation) and records the result on the statement.\n\nA single document can back several statement rows, one per recipient, so this\nupdates every row sharing the document_id.\n\nUses the async Supabase client so a monthly statement run, which delivers one\nwebhook per participant, does not block the worker's event loop.","operationId":"handle_pdfmonkey_webhook_api_v1_statements_pdfmonkey_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Handle Pdfmonkey Webhook Api V1 Statements Pdfmonkey Webhook Post"}}}}}}},"/api/v1/pm_invoice/pdfmonkey/webhook":{"post":{"summary":"Handle Pdfmonkey Webhook","description":"Handles the rendered-document webhook from either PDF provider (PDFMonkey or\ncaresquare-pdf-generation) and stores the PDF in S3.\n\nReturns 500 on failure so the provider retries with backoff. Answering 200\nafter a failed upload would leave the invoice's s3_key pointing at an object\nthat does not exist.","operationId":"handle_pdfmonkey_webhook_api_v1_pm_invoice_pdfmonkey_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Handle Pdfmonkey Webhook Api V1 Pm Invoice Pdfmonkey Webhook Post"}}}}}}},"/api/v1/remittance/pdfmonkey/webhook":{"post":{"summary":"Handle Pdfmonkey Webhook","description":"Handles the rendered-document webhook from either PDF provider (PDFMonkey or\ncaresquare-pdf-generation) and records the result on the remittance.\n\nUses the async Supabase client so a batch of deliveries does not block the\nworker's event loop. The synchronous client would stall every other request\non this worker for the duration of each update, which is noticeable when a\nlarge ABA run delivers hundreds of webhooks at once.","operationId":"handle_pdfmonkey_webhook_api_v1_remittance_pdfmonkey_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Handle Pdfmonkey Webhook Api V1 Remittance Pdfmonkey Webhook Post"}}}}}}},"/api/v1/forms/webhook":{"post":{"summary":"Process Handle Form Submission","operationId":"process_handle_form_submission_api_v1_forms_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Process Handle Form Submission Api V1 Forms Webhook Post"}}}}}}},"/api/v1/forms/{plan_manager}":{"get":{"summary":"Serve Registration Form","operationId":"serve_registration_form_api_v1_forms__plan_manager__get","parameters":[{"name":"plan_manager","in":"path","required":true,"schema":{"type":"string","title":"Plan Manager"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cs-forms/bank-details-verification-status":{"get":{"summary":"Bank Details Verification Status","description":"Returns whether bank-details verification is enabled for this plan manager\n(requires an enabled forms_org_admin row with auto_gen_template_metadata.template_id == 'bank_details_form'),\nand the current verification state for the linked participant/provider.","operationId":"bank_details_verification_status_api_v1_cs_forms_bank_details_verification_status_get","parameters":[{"name":"plan_manager_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Manager Id"}},{"name":"participant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Participant Id"}},{"name":"pm_provider_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pm Provider Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankDetailsVerificationStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cs-forms/apply-bank-details-change":{"post":{"summary":"Apply Bank Details Change","description":"Approve/apply a staged bank change created from a bank_details_form submission.\n\n- Finds the staged bank change row for the given form_request_id\n- Applies bank details to the underlying entity (participants or pm_providers)\n- Marks the bank change row as approved (and sets decided_at/approved_by)","operationId":"apply_bank_details_change_api_v1_cs_forms_apply_bank_details_change_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyBankDetailsChangeRequest"}}},"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/cs-forms/request-bank-details-verification-email":{"post":{"summary":"Request Bank Details Verification Email","description":"Creates a new forms request (bank_details_form) linked to a participant or provider,\nthen emails a secure link to the requested recipient.\n\nThe email HTML template is loaded from Supabase storage bucket `html_templates`\n(see Config.BANK_DETAILS_VERIFICATION_EMAIL_TEMPLATE).","operationId":"request_bank_details_verification_email_api_v1_cs_forms_request_bank_details_verification_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankDetailsVerificationEmailRequest"}}},"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/cs-forms/get-data-for-submission":{"get":{"summary":"Get Data For Form Submission","description":"Returns the data associated with a submission id\n\nQuery Params:\nsubmissions_data_key: forms.submission id\n\nReturns:\nRaw data json in data column if not null\n    OR\nDecrypted data in data_encrypted","operationId":"get_data_for_form_submission_api_v1_cs_forms_get_data_for_submission_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/cs-forms/get-fapi-data-for-request-id":{"get":{"summary":"Get Fapi Transaction Data For Request Id","description":"Returns latest fapi transaction data that relate to a forms request id\nWill Decrypt encrypted token data into 'data' if it exists\n\nQuery Params:\nrequest_id: public.fapi_transactions:request_id\n\nReturns:\nRaw data json in data column if not null\n    OR\nDecrypted data in data_encrypted","operationId":"get_fapi_transaction_data_for_request_id_api_v1_cs_forms_get_fapi_data_for_request_id_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/cs-forms/requests":{"get":{"summary":"Get Forms Requests Old","description":"Returns all forms requests associated with the plan_manager_id\n\nFrom Table: public.form_requests","operationId":"get_forms_requests_old_api_v1_cs_forms_requests_get","parameters":[{"name":"plan_manager_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Manager Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_FormRequestModel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cs-forms/requests_paginated":{"get":{"summary":"Get Forms Requests Paginated Old","description":"Returns all forms requests meta data associated with the plan_manager_id (paginated)\n\nFrom Table: public.form_requests","operationId":"get_forms_requests_paginated_old_api_v1_cs_forms_requests_paginated_get","parameters":[{"name":"plan_manager_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Manager Id"}},{"name":"cursor_position","in":"query","required":false,"schema":{"type":"string","format":"uuid","title":"Cursor Position"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"exclusiveMinimum":0,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_FormRequestModel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cs-forms/get-fapi-data":{"get":{"summary":"Get Fapi Transaction Data","description":"Returns latest fapi transaction data that relate to a forms request id\nWill Decrypt encrypted token data into 'data' if it exists\n\nQuery Params:\n    connect_id_txn: ConnectID Transaction ID\n    forms_request_id: Forms Request ID\n    fapi_transaction_id: Fapi Transaction ID\n\n    At least one of these MUST be provided in order to get data","operationId":"get_fapi_transaction_data_api_v1_cs_forms_get_fapi_data_get","parameters":[{"name":"connect_id_txn","in":"query","required":false,"schema":{"type":"string","title":"Connect Id Txn"}},{"name":"forms_request_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","title":"Forms Request Id"}},{"name":"fapi_interaction_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","title":"Fapi Interaction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseJSON_FapiTransactionsModel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cs-forms/participant-form-data":{"get":{"summary":"Get Participant Form Data","description":"Returns decrypted, labeled form submission data for all form requests linked\nto the given participant.\n\nCovers two linkage scenarios:\n1. form_request.linked_participant_id = participant_id   (explicit pre-link)\n2. form_request.processing_outcomes['Participant Lead Created'] = str(participant_id)\n   (participant created from the form on completion)\n\nResults are scoped to the given plan_manager_id for security.\nEach result includes service_agreement_url from forms_org_admin if configured.","operationId":"get_participant_form_data_api_v1_cs_forms_participant_form_data_get","parameters":[{"name":"participant_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Participant Id"}},{"name":"plan_manager_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Manager Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantFormDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cs-forms/resend-bank-details-form-email":{"post":{"summary":"Resend Bank Details Form Email","description":"Resends the original bank details form email for an existing pending form request.\nUses the same form link (form_request.id) and the same recipient email stored\nin form_request.send_to.email_request_to.","operationId":"resend_bank_details_form_email_api_v1_cs_forms_resend_bank_details_form_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendBankDetailsFormEmailRequest"}}},"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/cs-forms/cancel-bank-details-form-request":{"post":{"summary":"Cancel Bank Details Form Request","description":"Cancels a pending bank details form request.\n\n- Sets bank_form_request.cancelled_at = now()\n- Sets forms.request_metadata.expires_at = now() so caresquare-connectid\n  will block the recipient from completing the form.","operationId":"cancel_bank_details_form_request_api_v1_cs_forms_cancel_bank_details_form_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelBankDetailsFormRequestRequest"}}},"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/integrations/klaviyo/{plan_manager_id}/bulk/get_bulk_import_job":{"post":{"tags":["klaviyo"],"summary":"Get Bulk Import Job","description":"Get profiles from Klaviyo.","operationId":"get_bulk_import_job_api_v1_integrations_klaviyo__plan_manager_id__bulk_get_bulk_import_job_post","parameters":[{"name":"plan_manager_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Manager Id"}},{"name":"job_id","in":"query","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"table_name","in":"query","required":true,"schema":{"type":"string","title":"Table Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlaviyoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/klaviyo/{plan_manager_id}/{method}":{"post":{"tags":["klaviyo"],"summary":"Handle Klaviyo Request","description":"Generic handler for Klaviyo API requests.\n\nArgs:\n    plan_manager_id: The ID of the plan manager\n    method: The Klaviyo API method to call\n    current_user: The authenticated user making the request\n\nReturns:\n    KlaviyoResponse: The response from the Klaviyo API\n\nRaises:\n    HTTPException: If the method is not supported or if there's an error","operationId":"handle_klaviyo_request_api_v1_integrations_klaviyo__plan_manager_id___method__post","parameters":[{"name":"plan_manager_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Manager Id"}},{"name":"method","in":"path","required":true,"schema":{"type":"string","title":"Method"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"default":{},"title":"Request Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlaviyoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/klaviyo/{plan_manager_id}/bulk/upsert_profiles":{"post":{"tags":["klaviyo"],"summary":"Handle Klaviyo Bulk Upsert","description":"Bulk upsert profiles to Klaviyo.","operationId":"handle_klaviyo_bulk_upsert_api_v1_integrations_klaviyo__plan_manager_id__bulk_upsert_profiles_post","parameters":[{"name":"plan_manager_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Manager Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"default":{},"title":"Request Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlaviyoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email/send-email":{"post":{"summary":"Send Email","operationId":"send_email_api_v1_email_send_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailData"}}},"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/email/send-custom-email":{"post":{"summary":"Send Custom Email","operationId":"send_custom_email_api_v1_email_send_custom_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailData"}}},"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/email/get-email-from-message-id":{"get":{"summary":"Get Email From Message Id","operationId":"get_email_from_message_id_api_v1_email_get_email_from_message_id_get","parameters":[{"name":"message_id","in":"query","required":true,"schema":{"type":"string","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email/register-domain":{"post":{"summary":"Register Domain","operationId":"register_domain_api_v1_email_register_domain_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"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/email/create-ses-email-identity":{"post":{"summary":"Create Ses Email Identity","description":"Create a new email identity in AWS SES using the specified or default configuration set.\n\nArgs:\n    request_data: Contains the email address to create an identity for and\n                 optionally the configuration set name (defaults to 'CS_Primary')\n\nReturns:\n    Dict containing the SES API response or error details","operationId":"create_ses_email_identity_api_v1_email_create_ses_email_identity_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEmailIdentityRequest"}}},"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/email/list-ses-email-identities":{"get":{"summary":"List Ses Email Identities","description":"List all email identities in AWS SES.\n\nReturns:\n    Dict containing the list of email identities and SES API response","operationId":"list_ses_email_identities_api_v1_email_list_ses_email_identities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/email/resend/webhook":{"post":{"summary":"Handle Resend Webhook","description":"Handles incoming Resend email.received webhook events.\nLooks up the plan manager by matching the 'to' address against resend_domains,\nretrieves the full email, and forwards it to the plan manager's reply_address.","operationId":"handle_resend_webhook_api_v1_email_resend_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/zapier/test":{"get":{"tags":["zapier"],"summary":"Test Authentication","operationId":"test_authentication_api_v1_zapier_test_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/zapier/subscribe":{"post":{"tags":["zapier"],"summary":"Subscribe To Zapier Webhook","description":"Subscribe to a Zapier webhook for a specific event.","operationId":"subscribe_to_zapier_webhook_api_v1_zapier_subscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZapierSubscriptionRequest"}}},"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/zapier/unsubscribe":{"post":{"tags":["zapier"],"summary":"Unsubscribe From Zapier Webhook","description":"Unsubscribe from a Zapier webhook for a specific event.","operationId":"unsubscribe_from_zapier_webhook_api_v1_zapier_unsubscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZapierUnsubscribeRequest"}}},"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/zapier/event":{"post":{"tags":["zapier"],"summary":"Handle Event","description":"Receives a new event from Supabase and relays it to the Zapier webhook_url.","operationId":"handle_event_api_v1_zapier_event_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncomingEvent"}}},"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/svix/webhooks":{"post":{"summary":"Classify Document Endpoint","operationId":"classify_document_endpoint_api_v1_svix_webhooks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SvixWebhookRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Classify Document Endpoint Api V1 Svix Webhooks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhook-portal/{app_id}":{"get":{"summary":"Get Svix Portal Access","operationId":"get_svix_portal_access_api_v1_webhook_portal__app_id__get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string","title":"Response Get Svix Portal Access Api V1 Webhook Portal  App Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/api_response":{"post":{"summary":"Send Response","operationId":"send_response_api_v1_api_response_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponsePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Send Response Api V1 Api Response Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/{documentId}":{"get":{"summary":"Get Processed Document Details","operationId":"get_processed_document_details_v1_documents__documentId__get","parameters":[{"name":"documentId","in":"path","required":true,"schema":{"type":"string","title":"Documentid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentEvent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flutterflow/get_available_participants":{"get":{"summary":"Get Available Participants Endpoint","operationId":"get_available_participants_endpoint_api_v1_flutterflow_get_available_participants_get","parameters":[{"name":"userId","in":"query","required":true,"schema":{"type":"string","title":"Userid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flutterflow/get_invoice_history":{"get":{"summary":"Get Invoices Endpoint","operationId":"get_invoices_endpoint_api_v1_flutterflow_get_invoice_history_get","parameters":[{"name":"participant_id","in":"query","required":true,"schema":{"type":"string","title":"Participant Id"}},{"name":"support_category_name","in":"query","required":false,"schema":{"type":"string","title":"Support Category Name"}},{"name":"support_category_pace","in":"query","required":false,"schema":{"type":"string","title":"Support Category Pace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flutterflow/get_invoice_pdf":{"get":{"summary":"Get Invoice Pdf Endpoint","operationId":"get_invoice_pdf_endpoint_api_v1_flutterflow_get_invoice_pdf_get","parameters":[{"name":"s3_key","in":"query","required":true,"schema":{"type":"string","title":"S3 Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flutterflow/get_invoice_stats":{"get":{"summary":"Get Invoice Stats Endpoint","operationId":"get_invoice_stats_endpoint_api_v1_flutterflow_get_invoice_stats_get","parameters":[{"name":"participant_id","in":"query","required":true,"schema":{"type":"string","title":"Participant Id"}},{"name":"month","in":"query","required":false,"schema":{"type":"string","title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/auth/login":{"post":{"tags":["Mobile - Authentication"],"summary":"Login with Email/Password","description":"Authenticate user with email and password. Returns JWT tokens and user info.","operationId":"login_endpoint_api_v1_mobile_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"401":{"description":"Invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/auth/sms-request":{"post":{"tags":["Mobile - Authentication"],"summary":"Request SMS OTP","description":"Request SMS OTP to be sent to the provided phone number.","operationId":"sms_request_endpoint_api_v1_mobile_auth_sms_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsRequestPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsRequestResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/auth/sms-verify":{"post":{"tags":["Mobile - Authentication"],"summary":"Verify SMS OTP","description":"Verify SMS OTP and return JWT tokens if valid.","operationId":"sms_verify_endpoint_api_v1_mobile_auth_sms_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsVerifyPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"401":{"description":"Invalid or expired OTP","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/auth/email-otp-request":{"post":{"tags":["Mobile - Authentication"],"summary":"Request Email OTP","description":"Request Email OTP to be sent to the provided email address.","operationId":"email_otp_request_endpoint_api_v1_mobile_auth_email_otp_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailOtpRequestPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailOtpRequestResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/auth/email-otp-verify":{"post":{"tags":["Mobile - Authentication"],"summary":"Verify Email OTP","description":"Verify Email OTP and return JWT tokens if valid.","operationId":"email_otp_verify_endpoint_api_v1_mobile_auth_email_otp_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailOtpVerifyPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"401":{"description":"Invalid or expired OTP","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/auth/password-reset-request":{"post":{"tags":["Mobile - Authentication"],"summary":"Request Password Reset","description":"Request a password reset code to be sent to the provided email address.","operationId":"password_reset_request_endpoint_api_v1_mobile_auth_password_reset_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetRequestPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetRequestResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/auth/password-reset":{"post":{"tags":["Mobile - Authentication"],"summary":"Reset Password","description":"Reset password using the code received via email.","operationId":"password_reset_endpoint_api_v1_mobile_auth_password_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetResponse"}}}},"401":{"description":"Invalid or expired reset code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/auth/refresh":{"post":{"tags":["Mobile - Authentication"],"summary":"Refresh Access Token","description":"Get new access token using refresh token.","operationId":"refresh_token_endpoint_api_v1_mobile_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"401":{"description":"Invalid or expired refresh token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/auth/logout":{"post":{"tags":["Mobile - Authentication"],"summary":"Logout","description":"Logout and invalidate the current session.","operationId":"logout_endpoint_api_v1_mobile_auth_logout_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successfully logged out","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/participants":{"get":{"tags":["Mobile - Participants"],"summary":"Get User's Participants","description":"Get list of participants the authenticated user has access to.","operationId":"get_participants_endpoint_api_v1_mobile_participants_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/participants/{participant_id}/profile-picture":{"post":{"tags":["Mobile - Participants"],"summary":"Upload Profile Picture","description":"Upload a profile picture for a participant. Only allowed for self-access participants.","operationId":"upload_profile_picture_api_v1_mobile_participants__participant_id__profile_picture_post","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePictureUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePictureResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Forbidden - not self-access participant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Mobile - Participants"],"summary":"Delete Profile Picture","description":"Delete profile picture for a participant. Only allowed for self-access participants.","operationId":"delete_profile_picture_api_v1_mobile_participants__participant_id__profile_picture_delete","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePictureResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Forbidden - not self-access participant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/dashboard/{participant_id}":{"get":{"tags":["Mobile - Dashboard"],"summary":"Get Dashboard Data","description":"Get aggregated dashboard data including participant info, plan details, budget summary, and recent claims.","operationId":"get_dashboard_endpoint_api_v1_mobile_dashboard__participant_id__get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"404":{"description":"Participant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/budget/{participant_id}":{"get":{"tags":["Mobile - Budget"],"summary":"Get Budget Data","description":"Get mobile-optimized budget data including types, categories, and calculated percentages.","operationId":"get_budget_endpoint_api_v1_mobile_budget__participant_id__get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__BudgetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/budget/{participant_id}/category/{category_id}":{"get":{"tags":["Mobile - Budget"],"summary":"Get Budget Category Detail","description":"Get detailed budget category information including items.","operationId":"get_budget_category_detail_endpoint_api_v1_mobile_budget__participant_id__category__category_id__get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","description":"Budget category ID","title":"Category Id"},"description":"Budget category ID"},{"name":"category_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Product category code (e.g., DAILY_ACTIVITIES) for non-PACE lookups","title":"Category Code"},"description":"Product category code (e.g., DAILY_ACTIVITIES) for non-PACE lookups"},{"name":"plan_start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Filter line items on or after this date (YYYY-MM-DD). Omit to include all plans.","title":"Plan Start Date"},"description":"Filter line items on or after this date (YYYY-MM-DD). Omit to include all plans."},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"404":{"description":"Category not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/budget/{participant_id}/type/{budget_type_id}":{"get":{"tags":["Mobile - Budget"],"summary":"Get Budget Type Detail","description":"Get detailed budget type information including provider breakdown and spend over time.","operationId":"get_budget_type_detail_endpoint_api_v1_mobile_budget__participant_id__type__budget_type_id__get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"budget_type_id","in":"path","required":true,"schema":{"type":"integer","description":"Budget type ID","title":"Budget Type Id"},"description":"Budget type ID"},{"name":"plan_start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Filter line items on or after this date (YYYY-MM-DD). Omit to include all plans.","title":"Plan Start Date"},"description":"Filter line items on or after this date (YYYY-MM-DD). Omit to include all plans."},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"404":{"description":"Budget type not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/claims/invoice-pdf":{"get":{"tags":["Mobile - Claims"],"summary":"Get Invoice PDF URL","description":"Generate presigned URL for invoice PDF access.","operationId":"get_invoice_pdf_endpoint_api_v1_mobile_claims_invoice_pdf_get","parameters":[{"name":"s3_key","in":"query","required":true,"schema":{"type":"string","description":"S3 key for the invoice PDF","title":"S3 Key"},"description":"S3 key for the invoice PDF"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__InvoicePdfResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/claims/{participant_id}":{"get":{"tags":["Mobile - Claims"],"summary":"Get Claims List","description":"Get paginated list of claims/invoices with optional filtering.","operationId":"get_claims_list_endpoint_api_v1_mobile_claims__participant_id__get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Limit"},"description":"Items per page"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by start date (YYYY-MM-DD)","title":"Date From"},"description":"Filter by start date (YYYY-MM-DD)"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by end date (YYYY-MM-DD)","title":"Date To"},"description":"Filter by end date (YYYY-MM-DD)"},{"name":"budget_type_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by budget type ID","title":"Budget Type Id"},"description":"Filter by budget type ID"},{"name":"category_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by category ID","title":"Category Id"},"description":"Filter by category ID"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by provider name or invoice number","title":"Search"},"description":"Search by provider name or invoice number"},{"name":"needs_approval","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter to only invoices needing approval","title":"Needs Approval"},"description":"Filter to only invoices needing approval"},{"name":"plan_start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"When filtering by category/type, only include line items with service_date_from >= this date (YYYY-MM-DD).","title":"Plan Start Date"},"description":"When filtering by category/type, only include line items with service_date_from >= this date (YYYY-MM-DD)."},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimsListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/claims/{participant_id}/pending-approval-count":{"get":{"tags":["Mobile - Claims"],"summary":"Get Pending Approval Count","description":"Get count of invoices pending approval for a participant.","operationId":"get_pending_approval_count_endpoint_api_v1_mobile_claims__participant_id__pending_approval_count_get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingApprovalCountResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/claims/{participant_id}/reimbursement":{"post":{"tags":["Mobile - Claims"],"summary":"Submit Reimbursement","description":"Submit a reimbursement request with a receipt image.","operationId":"submit_reimbursement_endpoint_api_v1_mobile_claims__participant_id__reimbursement_post","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReimbursementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReimbursementResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/claims/{participant_id}/{invoice_id}":{"get":{"tags":["Mobile - Claims"],"summary":"Get Claim Detail","description":"Get detailed claim/invoice information including line items.","operationId":"get_claim_detail_endpoint_api_v1_mobile_claims__participant_id___invoice_id__get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","description":"Invoice ID","title":"Invoice Id"},"description":"Invoice ID"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimDetail"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"404":{"description":"Invoice not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/claims/{participant_id}/{invoice_id}/approve":{"post":{"tags":["Mobile - Claims"],"summary":"Approve Invoice","description":"Approve an invoice that is pending approval.","operationId":"approve_invoice_endpoint_api_v1_mobile_claims__participant_id___invoice_id__approve_post","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","description":"Invoice ID","title":"Invoice Id"},"description":"Invoice ID"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceApprovalResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"404":{"description":"Invoice not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/claims/{participant_id}/{invoice_id}/reject":{"post":{"tags":["Mobile - Claims"],"summary":"Reject Invoice","description":"Reject an invoice that is pending approval.","operationId":"reject_invoice_endpoint_api_v1_mobile_claims__participant_id___invoice_id__reject_post","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","description":"Invoice ID","title":"Invoice Id"},"description":"Invoice ID"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceRejectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceRejectionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"404":{"description":"Invoice not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/documents/{participant_id}":{"get":{"tags":["Mobile - Documents"],"summary":"Get Participant Documents","description":"Get portal-accessible documents for a participant (portal_access = true only).","operationId":"get_documents_endpoint_api_v1_mobile_documents__participant_id__get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/documents/{participant_id}/file-url":{"get":{"tags":["Mobile - Documents"],"summary":"Get Document Signed URL","description":"Generate a short-lived signed URL for a participant document stored in Supabase Storage.","operationId":"get_document_url_endpoint_api_v1_mobile_documents__participant_id__file_url_get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"document_key","in":"query","required":true,"schema":{"type":"string","description":"Storage key of the document","title":"Document Key"},"description":"Storage key of the document"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUrlResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"404":{"description":"Document not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/documents/{participant_id}/statements":{"get":{"tags":["Mobile - Documents"],"summary":"Get Participant Statements","description":"Get statements for a participant.","operationId":"get_statements_endpoint_api_v1_mobile_documents__participant_id__statements_get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"plan_manager_id","in":"query","required":true,"schema":{"type":"string","description":"Plan manager ID","title":"Plan Manager Id"},"description":"Plan manager ID"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/documents/{participant_id}/statements/{statement_id}/download-url":{"get":{"tags":["Mobile - Documents"],"summary":"Get Statement Download URL","description":"Fetch a fresh PDFMonkey download URL for a statement PDF. The URL stored on the statement row expires after ~1 hour, so this endpoint re-queries PDFMonkey on demand to return a URL that is valid right now.","operationId":"get_statement_download_url_endpoint_api_v1_mobile_documents__participant_id__statements__statement_id__download_url_get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","description":"Participant ID","title":"Participant Id"},"description":"Participant ID"},{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","description":"Statement ID","title":"Statement Id"},"description":"Statement ID"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUrlResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"404":{"description":"Statement not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__mobile__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobile/feedback":{"post":{"tags":["Mobile - Feedback"],"summary":"Submit Feedback","description":"Submit in-app feedback from the mobile app.","operationId":"submit_feedback_endpoint_api_v1_mobile_feedback_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token","title":"Authorization"},"description":"Bearer token"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthcheck":{"get":{"summary":"Healthcheck","operationId":"healthcheck_healthcheck_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/healthcheck/background_tasks":{"get":{"summary":"Healthcheck Background Tasks","operationId":"healthcheck_background_tasks_healthcheck_background_tasks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/documents/process":{"post":{"summary":"Forward Request","operationId":"forward_request_v1_documents_process_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/xero/authorize":{"get":{"summary":"Authorize","operationId":"authorize_v1_xero_authorize_get","parameters":[{"name":"plan_manager_id","in":"query","required":true,"schema":{"type":"string","title":"Plan Manager Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/xero/callback":{"get":{"summary":"Xero Callback","operationId":"xero_callback_v1_xero_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/open/webhook_message":{"post":{"summary":"Webhook","operationId":"webhook_api_v1_open_webhook_message_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"APIResponsePayload":{"properties":{"invoice_id":{"type":"integer","title":"Invoice Id"}},"type":"object","required":["invoice_id"],"title":"APIResponsePayload"},"AWSCreateFormRequestBody":{"properties":{"plan_manager_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan Manager Id"},"retool_user_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retool User Sid"},"create_type":{"anyOf":[{"type":"string","enum":["generation_id","caresquare_platform"]},{"type":"null"}],"title":"Create Type","default":"generation_id"},"forms_org_admin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Forms Org Admin Id"},"linked_participant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Linked Participant Id"},"linked_pm_provider_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Linked Pm Provider Id"}},"type":"object","title":"AWSCreateFormRequestBody"},"AbaType":{"type":"string","enum":["provider","invoice"],"title":"AbaType","description":"Enumeration of ABA file generation types.\n\nPROVIDER: Groups invoices by provider (one row per provider)\nINVOICE: Groups by invoice (one row per invoice, reference is invoice number)"},"AnalyzeLineItemsReponse":{"properties":{"line_items":{"items":{"$ref":"#/components/schemas/app__schemas__documents__LineItem"},"type":"array","title":"Line Items"}},"type":"object","required":["line_items"],"title":"AnalyzeLineItemsReponse"},"AnalyzeLineItemsRequest":{"properties":{"line_items":{"items":{"$ref":"#/components/schemas/LineItem-Input"},"type":"array","title":"Line Items"},"participant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Participant Id"},"participant_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Participant Age"}},"type":"object","required":["line_items"],"title":"AnalyzeLineItemsRequest"},"AnalyzeResultsRequest":{"properties":{"line_items":{"items":{"$ref":"#/components/schemas/LineItem-Input"},"type":"array","title":"Line Items"},"header":{"$ref":"#/components/schemas/AnlalyzeResultsHeader"},"langchain_run_id":{"type":"string","title":"Langchain Run Id"},"validate_business_rules":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Validate Business Rules","default":false}},"type":"object","required":["line_items","header","langchain_run_id"],"title":"AnalyzeResultsRequest"},"AnlalyzeResultsHeader":{"properties":{"NDIS_Participant_Number":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Ndis Participant Number"},"invoice_data":{"$ref":"#/components/schemas/InvoiceDataResults"},"participant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Participant Id"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"},"pm_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pm Provider Id"}},"type":"object","required":["invoice_data"],"title":"AnlalyzeResultsHeader"},"ApiResponseJSON":{"properties":{"data":{"items":{},"type":"array","title":"Data","description":"List of items returned in the response following given criteria"},"meta":{"anyOf":[{"$ref":"#/components/schemas/ApiResponseMeta"},{"type":"null"}],"description":"Response Meta"},"messages":{"anyOf":[{"items":{"$ref":"#/components/schemas/ApiResponseMessage"},"type":"array"},{"type":"null"}],"title":"Messages","description":"Response Messages"}},"type":"object","title":"ApiResponseJSON","description":"Standardised JSON Api Response\n\nTo conforms to Aus Gov recommended format [api.gov.au](https://api.gov.au/sections/api-response.html#response-payload)\n    Which is a modification of [JSON:API]( https://jsonapi.org/format/#introduction)\n\ndata\nmeta: meta object that contains non-standard meta-information\nmessages:  container for informational and warning messages related to the transaction.\n\nNot Implemented (not currently required):\n    Links: [HATEOS Links](https://api.gov.au/sections/api-response.html#response-payload)"},"ApiResponseJSON_BudgetFullViewModel_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/BudgetFullViewModel"},"type":"array","title":"Data","description":"List of items returned in the response following given criteria"},"meta":{"anyOf":[{"$ref":"#/components/schemas/ApiResponseMeta"},{"type":"null"}],"description":"Response Meta"},"messages":{"anyOf":[{"items":{"$ref":"#/components/schemas/ApiResponseMessage"},"type":"array"},{"type":"null"}],"title":"Messages","description":"Response Messages"}},"type":"object","title":"ApiResponseJSON[BudgetFullViewModel]"},"ApiResponseJSON_BudgetRuleResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/BudgetRuleResponse"},"type":"array","title":"Data","description":"List of items returned in the response following given criteria"},"meta":{"anyOf":[{"$ref":"#/components/schemas/ApiResponseMeta"},{"type":"null"}],"description":"Response Meta"},"messages":{"anyOf":[{"items":{"$ref":"#/components/schemas/ApiResponseMessage"},"type":"array"},{"type":"null"}],"title":"Messages","description":"Response Messages"}},"type":"object","title":"ApiResponseJSON[BudgetRuleResponse]"},"ApiResponseJSON_FapiTransactionsModel_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FapiTransactionsModel"},"type":"array","title":"Data","description":"List of items returned in the response following given criteria"},"meta":{"anyOf":[{"$ref":"#/components/schemas/ApiResponseMeta"},{"type":"null"}],"description":"Response Meta"},"messages":{"anyOf":[{"items":{"$ref":"#/components/schemas/ApiResponseMessage"},"type":"array"},{"type":"null"}],"title":"Messages","description":"Response Messages"}},"type":"object","title":"ApiResponseJSON[FapiTransactionsModel]"},"ApiResponseJSON_FormRequestModel_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FormRequestModel"},"type":"array","title":"Data","description":"List of items returned in the response following given criteria"},"meta":{"anyOf":[{"$ref":"#/components/schemas/ApiResponseMeta"},{"type":"null"}],"description":"Response Meta"},"messages":{"anyOf":[{"items":{"$ref":"#/components/schemas/ApiResponseMessage"},"type":"array"},{"type":"null"}],"title":"Messages","description":"Response Messages"}},"type":"object","title":"ApiResponseJSON[FormRequestModel]"},"ApiResponseJSON_FormSubmissionsInfo_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FormSubmissionsInfo"},"type":"array","title":"Data","description":"List of items returned in the response following given criteria"},"meta":{"anyOf":[{"$ref":"#/components/schemas/ApiResponseMeta"},{"type":"null"}],"description":"Response Meta"},"messages":{"anyOf":[{"items":{"$ref":"#/components/schemas/ApiResponseMessage"},"type":"array"},{"type":"null"}],"title":"Messages","description":"Response Messages"}},"type":"object","title":"ApiResponseJSON[FormSubmissionsInfo]"},"ApiResponseJSON_FormsOrgAdminModel_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FormsOrgAdminModel"},"type":"array","title":"Data","description":"List of items returned in the response following given criteria"},"meta":{"anyOf":[{"$ref":"#/components/schemas/ApiResponseMeta"},{"type":"null"}],"description":"Response Meta"},"messages":{"anyOf":[{"items":{"$ref":"#/components/schemas/ApiResponseMessage"},"type":"array"},{"type":"null"}],"title":"Messages","description":"Response Messages"}},"type":"object","title":"ApiResponseJSON[FormsOrgAdminModel]"},"ApiResponseJSON_ParticipantsModel_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ParticipantsModel"},"type":"array","title":"Data","description":"List of items returned in the response following given criteria"},"meta":{"anyOf":[{"$ref":"#/components/schemas/ApiResponseMeta"},{"type":"null"}],"description":"Response Meta"},"messages":{"anyOf":[{"items":{"$ref":"#/components/schemas/ApiResponseMessage"},"type":"array"},{"type":"null"}],"title":"Messages","description":"Response Messages"}},"type":"object","title":"ApiResponseJSON[ParticipantsModel]"},"ApiResponseJSON_RefItemCatalogueModel_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RefItemCatalogueModel"},"type":"array","title":"Data","description":"List of items returned in the response following given criteria"},"meta":{"anyOf":[{"$ref":"#/components/schemas/ApiResponseMeta"},{"type":"null"}],"description":"Response Meta"},"messages":{"anyOf":[{"items":{"$ref":"#/components/schemas/ApiResponseMessage"},"type":"array"},{"type":"null"}],"title":"Messages","description":"Response Messages"}},"type":"object","title":"ApiResponseJSON[RefItemCatalogueModel]"},"ApiResponseJSON_SubmissionsModel_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SubmissionsModel"},"type":"array","title":"Data","description":"List of items returned in the response following given criteria"},"meta":{"anyOf":[{"$ref":"#/components/schemas/ApiResponseMeta"},{"type":"null"}],"description":"Response Meta"},"messages":{"anyOf":[{"items":{"$ref":"#/components/schemas/ApiResponseMessage"},"type":"array"},{"type":"null"}],"title":"Messages","description":"Response Messages"}},"type":"object","title":"ApiResponseJSON[SubmissionsModel]"},"ApiResponseMessage":{"properties":{"message_type":{"type":"string","enum":["debug","info","warning","error"],"title":"Message Type"},"message":{"type":"string","title":"Message"}},"type":"object","required":["message_type","message"],"title":"ApiResponseMessage"},"ApiResponseMeta":{"properties":{"processing_time_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Processing Time Ms"},"total_records":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Records"},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"cursor":{"anyOf":[{},{"type":"null"}],"title":"Cursor"},"cursor_last":{"anyOf":[{},{"type":"null"}],"title":"Cursor Last"},"more_data_available":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"More Data Available"}},"type":"object","title":"ApiResponseMeta","description":"Standardised Api Response Meta\n\nNot always required (except for example; with paginated results)\n\nFuture: Could provide base that includes org information, copy-write etc"},"ApplyBankDetailsChangeRequest":{"properties":{"plan_manager_id":{"type":"string","format":"uuid","title":"Plan Manager Id"},"form_request_id":{"type":"string","format":"uuid","title":"Form Request Id"},"participant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Participant Id"},"pm_provider_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pm Provider Id"},"approved_by_user_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By User Sid"}},"type":"object","required":["plan_manager_id","form_request_id"],"title":"ApplyBankDetailsChangeRequest"},"Attachment":{"properties":{"content":{"type":"string","title":"Content"},"filename":{"type":"string","title":"Filename"}},"type":"object","required":["content","filename"],"title":"Attachment"},"AvailableParticipantsResponse":{"properties":{"participants":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Participants","description":"Available participants"},"number_of_participants":{"type":"integer","title":"Number Of Participants","description":"Total number of participants"}},"type":"object","required":["participants","number_of_participants"],"title":"AvailableParticipantsResponse","description":"Response model for available participants."},"BackupName":{"properties":{"person_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Title"},"person_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person First Name"},"person_last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Last Name"}},"type":"object","required":["person_title","person_first_name","person_last_name"],"title":"BackupName"},"BankDetailsVerificationEmailRequest":{"properties":{"plan_manager_id":{"type":"string","format":"uuid","title":"Plan Manager Id"},"email_to":{"type":"string","format":"email","title":"Email To"},"participant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Participant Id"},"pm_provider_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pm Provider Id"},"created_by_user_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Sid"},"respondent_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Respondent Display Name"},"flow_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flow Type","default":"change"},"is_blocking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Blocking"},"requested_on_invoice_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requested On Invoice Id"}},"type":"object","required":["plan_manager_id","email_to"],"title":"BankDetailsVerificationEmailRequest"},"BankDetailsVerificationStatusResponse":{"properties":{"eligible":{"type":"boolean","title":"Eligible"},"status":{"type":"string","title":"Status"},"forms_org_admin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Forms Org Admin Id"},"form_request_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Form Request Id"},"form_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Form Url"},"verified_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verified At"},"bank_change_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Bank Change Id"},"bank_change_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Change Status"},"is_connectid_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Connectid Verified"}},"type":"object","required":["eligible","status"],"title":"BankDetailsVerificationStatusResponse"},"Body":{"properties":{"header":{"$ref":"#/components/schemas/Header"},"line_items":{"items":{"$ref":"#/components/schemas/LineItem-Input"},"type":"array","title":"Line Items"},"summary":{"$ref":"#/components/schemas/Summary-Input"}},"type":"object","required":["header","line_items","summary"],"title":"Body"},"Body_approve_invoice_api_v1_approvals_invoice_confirm_approve_post":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"Body_approve_invoice_api_v1_approvals_invoice_confirm_approve_post"},"Body_reject_invoice_with_reason_api_v1_approvals_invoice_confirm_reject_post":{"properties":{"token":{"type":"string","title":"Token"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["token","reason"],"title":"Body_reject_invoice_with_reason_api_v1_approvals_invoice_confirm_reject_post"},"BookingsResponse":{"properties":{"bookings":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Bookings","description":"Service bookings data"},"total_bookings":{"type":"integer","title":"Total Bookings","description":"Total number of bookings"}},"type":"object","required":["bookings","total_bookings"],"title":"BookingsResponse","description":"Response model for participant service bookings."},"BudgetBookingsResponse":{"properties":{"budget":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Budget","description":"Budget data with integrated bookings information"},"plan_information":{"additionalProperties":true,"type":"object","title":"Plan Information","description":"Plan information including dates and usage"},"bookings":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Bookings","description":"Service bookings data (empty for pace plans)"},"total_bookings":{"type":"integer","title":"Total Bookings","description":"Total number of bookings"},"is_pace_plan":{"type":"boolean","title":"Is Pace Plan","description":"Whether this is a pace plan"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"Additional information about the response"}},"type":"object","required":["budget","plan_information","bookings","total_bookings","is_pace_plan"],"title":"BudgetBookingsResponse","description":"Response model for combined budget and bookings data."},"BudgetFormattedDataRequest":{"properties":{"plan_manager_id":{"type":"string","title":"Plan Manager Id"},"participant_id":{"type":"string","title":"Participant Id"},"participant_number":{"type":"string","title":"Participant Number"}},"type":"object","required":["plan_manager_id","participant_id","participant_number"],"title":"BudgetFormattedDataRequest"},"BudgetFormattedDataResponse":{"properties":{"budget":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Budget"},"plan_information":{"additionalProperties":true,"type":"object","title":"Plan Information"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["budget","plan_information"],"title":"BudgetFormattedDataResponse"},"BudgetFullViewModel":{"properties":{"type_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Type Id"},"support_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Type"},"type_spent_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Type Spent Amount"},"type_approved_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Type Approved Amount"},"type_allocated_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Type Allocated Amount"},"type_remaining_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Type Remaining Amount"},"type_instalment_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Type Instalment Start"},"type_instalment_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Type Instalment End"},"support_type_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Type Text"},"participant_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Participant Number"},"type_estimated_remaining_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Type Estimated Remaining Amount"},"participant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Participant Id"},"plan_manager_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan Manager Id"},"category_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Category Id"},"support_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Category"},"category_spent_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Category Spent Amount"},"category_approved_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Category Approved Amount"},"category_allocated_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Category Allocated Amount"},"category_remaining_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Category Remaining Amount"},"category_instalment_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Category Instalment Start"},"category_instalment_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Category Instalment End"},"support_category_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Category Text"},"category_estimated_remaining_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Category Estimated Remaining Amount"},"budget_rule_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Budget Rule Id"},"item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Item Id"},"item":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Item"},"in_kind":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"In Kind"},"item_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Item Type"},"item_spent_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Item Spent Amount"},"quote_approved":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Quote Approved"},"quoteable_item":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Quoteable Item"},"item_approved_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Item Approved Amount"},"item_allocated_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Item Allocated Amount"},"item_remaining_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Item Remaining Amount"},"item_estimated_remaining_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Item Estimated Remaining Amount"}},"type":"object","title":"BudgetFullViewModel","description":"Read-only Pydantic model mapping to the budget_full_view."},"BudgetPlanGetRequest":{"properties":{"participant_number":{"type":"string","title":"Participant Number"},"last_name":{"type":"string","title":"Last Name"},"date_of_birth":{"type":"string","title":"Date Of Birth"},"plan_id":{"type":"string","title":"Plan Id"},"participant_id":{"type":"string","title":"Participant Id"}},"type":"object","required":["participant_number"],"title":"BudgetPlanGetRequest"},"BudgetRuleCreateRequest":{"properties":{"plan_manager":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan Manager"},"participant_id":{"type":"string","format":"uuid","title":"Participant Id"},"budget_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Budget Category"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiry Date"},"provider_rules":{"items":{"$ref":"#/components/schemas/ProviderBudgetRuleRequest"},"type":"array","minItems":1,"title":"Provider Rules"},"invoice_rule":{"anyOf":[{"$ref":"#/components/schemas/InvoiceRuleRequest"},{"type":"null"}]}},"type":"object","required":["participant_id","provider_rules"],"title":"BudgetRuleCreateRequest","description":"Request model for creating a complete budget rule"},"BudgetRuleCreateRequestWithProviderRules":{"properties":{"plan_manager":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan Manager"},"participant_id":{"type":"string","format":"uuid","title":"Participant Id"},"budget_category":{"type":"string","title":"Budget Category"},"effective_date":{"type":"string","format":"date","title":"Effective Date"},"expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiry Date"},"provider_rules":{"type":"string","title":"Provider Rules"},"pm_provider_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pm Provider Id"},"budget_rule_type":{"type":"string","title":"Budget Rule Type","default":"budget_limit"},"budget_table_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Budget Table Name"},"budget_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Budget Id"},"linked_document":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Linked Document"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"invoice_rule":{"anyOf":[{"$ref":"#/components/schemas/InvoiceRuleRequest"},{"type":"null"}]}},"type":"object","required":["participant_id","budget_category","effective_date","provider_rules"],"title":"BudgetRuleCreateRequestWithProviderRules","description":"Request model matching the actual payload structure with provider_rules as array or JSON string"},"BudgetRuleResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"budget_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Budget Category"},"plan_manager":{"type":"string","format":"uuid","title":"Plan Manager"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiry Date"},"associated_rule":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Associated Rule"},"provider_rules":{"items":{"$ref":"#/components/schemas/ProviderBudgetRuleResponse"},"type":"array","title":"Provider Rules"},"invoice_rule":{"anyOf":[{"$ref":"#/components/schemas/InvoiceRuleResponse"},{"type":"null"}]}},"type":"object","required":["id","created_at","plan_manager","provider_rules"],"title":"BudgetRuleResponse","description":"Complete response model for a budget rule"},"BudgetRuleUpdateRequest":{"properties":{"budget_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Budget Category"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiry Date"},"provider_rules":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProviderBudgetRuleRequest"},"type":"array"},{"type":"null"}],"title":"Provider Rules"},"invoice_rule":{"anyOf":[{"$ref":"#/components/schemas/InvoiceRuleRequest"},{"type":"null"}]}},"type":"object","title":"BudgetRuleUpdateRequest","description":"Request model for updating a budget rule"},"BudgetSummary":{"properties":{"total_approved":{"type":"number","title":"Total Approved","default":0.0},"total_spent":{"type":"number","title":"Total Spent","default":0.0},"total_remaining":{"type":"number","title":"Total Remaining","default":0.0},"spend_percentage":{"type":"number","title":"Spend Percentage","default":0.0},"average_weekly_spend":{"type":"number","title":"Average Weekly Spend","default":0.0},"available_weekly_spend":{"type":"number","title":"Available Weekly Spend","default":0.0}},"type":"object","title":"BudgetSummary","description":"Aggregated budget summary for dashboard."},"BulkCreateUsersPayload":{"properties":{"users":{"items":{"$ref":"#/components/schemas/User"},"type":"array","title":"Users"}},"type":"object","required":["users"],"title":"BulkCreateUsersPayload"},"BusinessRulesAnalysisByInvoiceRequest":{"properties":{"invoice_id":{"type":"string","title":"Invoice Id"},"update_database":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Update Database","default":false}},"type":"object","required":["invoice_id"],"title":"BusinessRulesAnalysisByInvoiceRequest","description":"Request schema for analysing business rules violations by invoice ID"},"BusinessRulesAnalysisRequest":{"properties":{"line_items":{"items":{"$ref":"#/components/schemas/LineItem-Input"},"type":"array","title":"Line Items"},"participant_id":{"type":"string","title":"Participant Id"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"},"update_database":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Update Database","default":false}},"type":"object","required":["line_items","participant_id"],"title":"BusinessRulesAnalysisRequest","description":"Request schema for analysing business rules violations for line items"},"BusinessRulesAnalysisResponse":{"properties":{"violations_found":{"type":"boolean","title":"Violations Found"},"line_items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Line Items"},"violations_summary":{"$ref":"#/components/schemas/ViolationSummary"},"participant_info":{"anyOf":[{"$ref":"#/components/schemas/app__schemas__business_rules_analysis__ParticipantInfo"},{"type":"null"}]},"analysis_error":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Analysis Error","default":false},"database_updated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Database Updated","default":false}},"type":"object","required":["violations_found","line_items","violations_summary"],"title":"BusinessRulesAnalysisResponse","description":"Response schema for business rules analysis"},"CancelBankDetailsFormRequestRequest":{"properties":{"form_request_id":{"type":"string","format":"uuid","title":"Form Request Id"},"plan_manager_id":{"type":"string","format":"uuid","title":"Plan Manager Id"}},"type":"object","required":["form_request_id","plan_manager_id"],"title":"CancelBankDetailsFormRequestRequest"},"ClaimDeleteRequest":{"properties":{"claim_number":{"type":"integer","title":"Claim Number"},"participant_number":{"type":"string","title":"Participant Number"}},"type":"object","required":["claim_number","participant_number"],"title":"ClaimDeleteRequest"},"ClaimDetail":{"properties":{"id":{"type":"integer","title":"Id"},"invoice_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Number"},"provider_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Name"},"provider_abn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Abn"},"invoice_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Date"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"total":{"type":"number","title":"Total","default":0.0},"amount_remaining":{"type":"number","title":"Amount Remaining","default":0.0},"status":{"type":"string","title":"Status","default":"unknown"},"claim_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Status"},"approval_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Status"},"s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Key"},"is_reimbursement":{"type":"boolean","title":"Is Reimbursement","default":false},"line_items":{"items":{"$ref":"#/components/schemas/ClaimLineItem"},"type":"array","title":"Line Items","default":[]}},"type":"object","required":["id"],"title":"ClaimDetail","description":"Detailed claim information."},"ClaimLineItem":{"properties":{"id":{"type":"integer","title":"Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"service_item_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Item Number"},"service_date_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Date From"},"service_date_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Date To"},"quantity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quantity"},"unit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unit Price"},"total_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Price"},"claim_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Status"}},"type":"object","required":["id"],"title":"ClaimLineItem","description":"Line item within a claim."},"ClaimListItem":{"properties":{"id":{"type":"integer","title":"Id"},"invoice_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Number"},"provider_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Name"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"amount":{"type":"number","title":"Amount","default":0.0},"status":{"type":"string","title":"Status","default":"unknown"},"line_item_count":{"type":"integer","title":"Line Item Count","default":0},"approval_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Status"},"needs_approval":{"type":"boolean","title":"Needs Approval","default":false},"is_reimbursement":{"type":"boolean","title":"Is Reimbursement","default":false}},"type":"object","required":["id"],"title":"ClaimListItem","description":"Claim item for list view."},"ClaimsListResponse":{"properties":{"claims":{"items":{"$ref":"#/components/schemas/ClaimListItem"},"type":"array","title":"Claims","default":[]},"pagination":{"$ref":"#/components/schemas/Pagination"},"filters":{"additionalProperties":true,"type":"object","title":"Filters","default":{}},"pending_approval_count":{"type":"integer","title":"Pending Approval Count","default":0}},"type":"object","required":["pagination"],"title":"ClaimsListResponse","description":"Paginated claims list response."},"ClassifyDocumentRequest":{"properties":{"first_500_words_text":{"type":"string","title":"First 500 Words Text"}},"type":"object","required":["first_500_words_text"],"title":"ClassifyDocumentRequest"},"CodatSyncInvoiceRequest":{"properties":{"bill_id":{"type":"integer","title":"Bill Id"},"plan_manager_id":{"type":"string","title":"Plan Manager Id"}},"type":"object","required":["bill_id","plan_manager_id"],"title":"CodatSyncInvoiceRequest"},"CreateEmailIdentityRequest":{"properties":{"email_address":{"type":"string","format":"email","title":"Email Address","description":"Email address to create identity for"},"configuration_set_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Configuration Set Name","description":"Name of the configuration set to use","default":"CS_Primary"}},"type":"object","required":["email_address"],"title":"CreateEmailIdentityRequest","description":"Request model for creating a new SES email identity."},"CreateFormRequestBody":{"properties":{"plan_manager_id":{"type":"string","format":"uuid","title":"Plan Manager Id"},"create_type":{"anyOf":[{"type":"string","enum":["generation_id","caresquare_platform"]},{"type":"null"}],"title":"Create Type","default":"caresquare_platform"},"respondent_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Respondent Display Name"},"email_request_to":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email Request To"},"email_notifications_to":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email Notifications To"}},"type":"object","title":"CreateFormRequestBody"},"CreatePreliminaryParticipantRequest":{"properties":{"form_request_id":{"type":"string","format":"uuid","title":"Form Request Id"},"plan_manager_id":{"type":"string","format":"uuid","title":"Plan Manager Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"middle_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Middle Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"date_of_birth":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Of Birth"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"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"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"postcode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postcode"},"ndis_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ndis Number"}},"type":"object","required":["form_request_id","plan_manager_id"],"title":"CreatePreliminaryParticipantRequest","description":"Request body for creating a preliminary participant from a partially-completed form.\n\nCalled by the forms app after the participant details step (step 1) is submitted,\nso a Lead participant record exists in the database before the form is fully completed."},"CurrentPeriod":{"properties":{"period_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period End"},"period_budget":{"type":"number","title":"Period Budget","default":0.0},"period_spent":{"type":"number","title":"Period Spent","default":0.0},"days_total":{"type":"integer","title":"Days Total","default":0},"days_elapsed":{"type":"integer","title":"Days Elapsed","default":0},"days_remaining":{"type":"integer","title":"Days Remaining","default":0}},"type":"object","title":"CurrentPeriod","description":"Current funding period with per-period spend data."},"DashboardResponse":{"properties":{"participant":{"$ref":"#/components/schemas/app__schemas__mobile__ParticipantInfo"},"plan":{"$ref":"#/components/schemas/PlanInfo"},"budget_summary":{"$ref":"#/components/schemas/BudgetSummary"},"recent_claims":{"items":{"$ref":"#/components/schemas/RecentClaim"},"type":"array","title":"Recent Claims","default":[]},"spend_by_type":{"items":{"$ref":"#/components/schemas/SpendByTypeMonth"},"type":"array","title":"Spend By Type","default":[]},"top_providers":{"items":{"$ref":"#/components/schemas/TopProvider"},"type":"array","title":"Top Providers","default":[]},"alerts":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Alerts","default":[]}},"type":"object","required":["participant","plan","budget_summary"],"title":"DashboardResponse","description":"Combined dashboard data response."},"Data":{"properties":{"invoice_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Number"},"invoice_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Date"},"due_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due Date"},"tax":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tax"},"subtotal":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subtotal"},"total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Amount"},"amount_due":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount Due"},"provider":{"$ref":"#/components/schemas/Provider"},"participant":{"$ref":"#/components/schemas/Participant"},"line_items":{"items":{"$ref":"#/components/schemas/app__schemas__api_response__LineItem"},"type":"array","title":"Line Items"},"summary":{"$ref":"#/components/schemas/Summary-Output"},"errors":{"anyOf":[{"items":{"$ref":"#/components/schemas/Error"},"type":"array"},{"type":"null"}],"title":"Errors","default":[]}},"type":"object","required":["invoice_number","invoice_date","provider","participant","line_items","summary"],"title":"Data"},"DocumentEvent":{"properties":{"event":{"type":"string","title":"Event"},"document_id":{"type":"string","title":"Document Id"},"timestamp":{"type":"string","title":"Timestamp"},"results":{"$ref":"#/components/schemas/Results"}},"type":"object","required":["event","document_id","timestamp","results"],"title":"DocumentEvent"},"DocumentUrlResponse":{"properties":{"url":{"type":"string","title":"Url","description":"Signed storage URL for the document"},"expires_in":{"type":"integer","title":"Expires In","description":"URL expiration time in seconds","default":3600}},"type":"object","required":["url"],"title":"DocumentUrlResponse","description":"Signed URL response for a participant document."},"DocumentsResponse":{"properties":{"documents":{"items":{"$ref":"#/components/schemas/ParticipantDocument"},"type":"array","title":"Documents","description":"Portal-accessible documents","default":[]},"total":{"type":"integer","title":"Total","description":"Total number of documents","default":0}},"type":"object","title":"DocumentsResponse","description":"List of portal documents for a participant."},"EmailData":{"properties":{"to":{"items":{"type":"string"},"type":"array","title":"To"},"subject":{"type":"string","title":"Subject"},"plan_manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"from_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Email"},"reply_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply To"},"cc":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Cc"},"bcc":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Bcc"},"html_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Content"},"html_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Template"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"invoice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Id"},"participant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Participant Id"},"pm_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pm Provider Id"},"attachments":{"anyOf":[{"items":{"$ref":"#/components/schemas/Attachment"},"type":"array"},{"type":"null"}],"title":"Attachments"},"scheduled_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled Time"},"document_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Document Ids"},"statement_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Statement Ids"},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id"},"sender_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Id"}},"type":"object","required":["to","subject"],"title":"EmailData"},"EmailOtpRequestPayload":{"properties":{"email":{"type":"string","title":"Email","description":"Email address to send OTP to"}},"type":"object","required":["email"],"title":"EmailOtpRequestPayload","description":"Request Email OTP."},"EmailOtpRequestResponse":{"properties":{"email":{"type":"string","title":"Email","description":"Email address OTP was sent to"},"message":{"type":"string","title":"Message","description":"Status message"}},"type":"object","required":["email","message"],"title":"EmailOtpRequestResponse","description":"Email OTP request response."},"EmailOtpVerifyPayload":{"properties":{"email":{"type":"string","title":"Email","description":"Email address that received OTP"},"token":{"type":"string","title":"Token","description":"OTP code"}},"type":"object","required":["email","token"],"title":"EmailOtpVerifyPayload","description":"Verify Email OTP."},"EmailParseRequest":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"bucket_name":{"type":"string","title":"Bucket Name"},"return_attachments":{"type":"boolean","title":"Return Attachments","default":false}},"type":"object","required":["s3_key","bucket_name"],"title":"EmailParseRequest"},"EndpointName":{"type":"string","enum":["contacts","invoices","items","payments","accounts","bank_transactions"],"title":"EndpointName"},"Error":{"properties":{"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},"type":"object","required":["message","code"],"title":"Error"},"ExtractHeaderRequest":{"properties":{"plan_manager_id":{"type":"string","title":"Plan Manager Id"},"plan_manager_abn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Abn"},"textract_result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Textract Result"},"textract_results_s3":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Textract Results S3"},"first_500_words_text":{"type":"string","title":"First 500 Words Text"}},"type":"object","required":["plan_manager_id","first_500_words_text"],"title":"ExtractHeaderRequest"},"ExtractHeaderResponse":{"properties":{"invoice_data":{"$ref":"#/components/schemas/HeaderData"},"NDIS_Participant_Number":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Ndis Participant Number"},"participant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Participant Id"},"participant_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Participant Source"},"participant_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Active"},"approval_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Status","default":"unknown"},"participant_alternatives":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Participant Alternatives"},"multiple_participants":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Multiple Participants","default":false},"participant_names":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Participant Names"},"participant_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Participant Age"}},"type":"object","required":["invoice_data"],"title":"ExtractHeaderResponse"},"ExtractLinesRequest":{"properties":{"key_value_pairs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Value Pairs"},"key_value_pairs_s3":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Key Value Pairs S3"},"textract_text":{"type":"string","title":"Textract Text"},"textract_raw_expense_s3":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Textract Raw Expense S3"}},"type":"object","required":["textract_text"],"title":"ExtractLinesRequest"},"ExtractLinesResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"extracted_data":{"items":{"$ref":"#/components/schemas/app__schemas__documents__LineItem"},"type":"array","title":"Extracted Data"}},"type":"object","required":["run_id","extracted_data"],"title":"ExtractLinesResponse"},"FapiTransactionsModel":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"x_fapi_interaction_id":{"type":"string","format":"uuid","title":"X Fapi Interaction Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"request_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Request Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"txn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Txn"},"identity_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity Provider Id"},"data":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}]},"error_data":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}]},"data_key_encrypted":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Data Key Encrypted"},"data_encrypted":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Data Encrypted"},"data_decrypted_":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Decrypted"}},"type":"object","required":["id","x_fapi_interaction_id"],"title":"FapiTransactionsModel"},"FeedbackRequest":{"properties":{"message":{"type":"string","maxLength":5000,"minLength":1,"title":"Message"},"contact_ok":{"type":"boolean","title":"Contact Ok","default":false},"plan_manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["message"],"title":"FeedbackRequest"},"FeedbackResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"id":{"type":"string","title":"Id"}},"type":"object","required":["success","id"],"title":"FeedbackResponse"},"FileUploadedPostRequest":{"properties":{"bucket":{"type":"string","enum":["public","private"],"title":"Bucket"},"key":{"type":"string","title":"Key"},"org_owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Owner"},"user_owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Owner"},"existing_file_reference_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Existing File Reference Id"},"file_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Description"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By","default":"platform"}},"type":"object","required":["bucket","key"],"title":"FileUploadedPostRequest"},"FormCompletionRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"plan_manager_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan Manager Id"},"form_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Form Type","default":"application_form"},"form_template_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Form Template Metadata"}},"type":"object","title":"FormCompletionRequest"},"FormRequestModel":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"plan_manager":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan Manager"},"processing_outcomes":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}]},"send_to":{"anyOf":[{"$ref":"#/components/schemas/FormRequestSendTo"},{"type":"null"}]},"linked_participant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Linked Participant Id"},"linked_pm_provider_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Linked Pm Provider Id"},"created_by_":{"anyOf":[{"$ref":"#/components/schemas/UserModel"},{"type":"null"}]},"plan_manager_":{"anyOf":[{"$ref":"#/components/schemas/PlanManagerModel"},{"type":"null"}]},"fapi_transactions_":{"anyOf":[{"$ref":"#/components/schemas/FapiTransactionsModel"},{"type":"null"}]},"linked_participant_":{"anyOf":[{"$ref":"#/components/schemas/ParticipantsModel"},{"type":"null"}]}},"type":"object","required":["id"],"title":"FormRequestModel"},"FormRequestSendTo":{"properties":{"email_request_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Request To"},"recipient_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Display Name"},"email_notifications_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Notifications To"}},"type":"object","title":"FormRequestSendTo"},"FormSubmissionField":{"properties":{"field_key":{"type":"string","title":"Field Key"},"field_name":{"type":"string","title":"Field Name"},"field_value":{"anyOf":[{},{"type":"null"}],"title":"Field Value"},"field_hidden":{"type":"boolean","title":"Field Hidden","default":false},"field_type":{"type":"string","title":"Field Type","default":"data"},"field_depth":{"type":"integer","title":"Field Depth","default":0}},"type":"object","required":["field_key","field_name"],"title":"FormSubmissionField"},"FormSubmissionsInfo":{"properties":{"form_request":{"$ref":"#/components/schemas/FormRequestModel"},"submission_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Submission Count"},"last_submission_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Submission At"},"submitted_by_values":{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array","title":"Submitted By Values","default":[]},"completed":{"type":"boolean","title":"Completed","readOnly":true}},"type":"object","required":["form_request","completed"],"title":"FormSubmissionsInfo"},"FormTemplateDynamicField":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/FormTemplateDynamicFieldTypes"},"label":{"type":"string","title":"Label"},"default":{"anyOf":[{"type":"boolean"},{"type":"string"},{"type":"null"}],"title":"Default"},"required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Required","default":false},"render_kw":{"anyOf":[{"$ref":"#/components/schemas/FormTemplateDynamicFieldRenderKW"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name","type","label"],"title":"FormTemplateDynamicField"},"FormTemplateDynamicFieldRenderKW":{"properties":{"render_as":{"anyOf":[{"type":"string","enum":["full","half","single"]},{"type":"null"}],"title":"Render As","default":"full"},"label_type":{"anyOf":[{"type":"string","const":"top"},{"type":"null"}],"title":"Label Type","default":"top"},"placeholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placeholder"}},"type":"object","title":"FormTemplateDynamicFieldRenderKW"},"FormTemplateDynamicFieldTypes":{"type":"string","enum":["boolean","select","radio","string","textarea","phone","date","email"],"title":"FormTemplateDynamicFieldTypes"},"FormsOrgAdminModel":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"plan_manager_id":{"type":"string","format":"uuid","title":"Plan Manager Id"},"enabled":{"type":"boolean","title":"Enabled","default":true},"created_count":{"type":"integer","title":"Created Count","default":0},"completed_count":{"type":"integer","title":"Completed Count","default":0},"idv_count":{"type":"integer","title":"Idv Count","default":0},"leads_generated_count":{"type":"integer","title":"Leads Generated Count","default":0},"auto_gen_count":{"type":"integer","title":"Auto Gen Count","default":0},"email_auto_gen_notifications_to":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email Auto Gen Notifications To"},"auto_gen_template_metadata":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}]},"default_template":{"type":"boolean","title":"Default Template","default":false}},"type":"object","required":["id","plan_manager_id"],"title":"FormsOrgAdminModel","description":"Pydantic model for the public.forms_org_admin table."},"FundingPeriod":{"properties":{"period_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period End"},"amount_numeric":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount Numeric"},"released_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Released Status"}},"type":"object","title":"FundingPeriod","description":"Funding period for S33 participants."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HandleProviderRequest":{"properties":{"abn":{"type":"string","title":"Abn"},"plan_manager_id":{"type":"string","title":"Plan Manager Id"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"participant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Participant Id"},"multiple_participants":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Multiple Participants","default":false},"bsb":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bsb"},"account_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Number"}},"type":"object","required":["abn","plan_manager_id"],"title":"HandleProviderRequest"},"Header":{"properties":{"invoice_data":{"$ref":"#/components/schemas/HeaderData"},"NDIS_Participant_Number":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Ndis Participant Number"},"participant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Participant Id"},"plan_manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id"}},"type":"object","required":["invoice_data"],"title":"Header"},"HeaderData":{"properties":{"AMOUNT_DUE":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount Due"},"INVOICE_DUE_DATE":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Due Date"},"INVOICE_RECEIPT_DATE":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Receipt Date"},"INVOICE_RECEIPT_ID":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Receipt Id"},"SUBTOTAL":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subtotal"},"TAX":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tax"},"TOTAL":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total"},"VENDOR_ABN_NUMBER":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Abn Number"},"VENDOR_NAME":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"total_valid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Total Valid"},"BSB":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bsb"},"ACCOUNT_NUMBER":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Number"}},"type":"object","title":"HeaderData"},"IncomingEvent":{"properties":{"event_id":{"type":"string","title":"Event Id"},"webhook_url":{"type":"string","title":"Webhook Url"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["event_id","webhook_url","payload"],"title":"IncomingEvent"},"InvoiceApprovalResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"invoice_id":{"type":"integer","title":"Invoice Id"},"new_status":{"type":"string","title":"New Status"}},"type":"object","required":["success","message","invoice_id","new_status"],"title":"InvoiceApprovalResponse"},"InvoiceData":{"properties":{"data":{"$ref":"#/components/schemas/Body"},"plan_manager_id":{"type":"string","title":"Plan Manager Id"},"pm_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pm Provider Id"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"},"multiple_providers":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Multiple Providers","default":false},"multiple_participants":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Multiple Participants","default":false},"approval_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Status","default":"unknown"},"executionId":{"type":"string","title":"Executionid"},"s3_key":{"type":"string","title":"S3 Key"},"participant_names":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Participant Names"},"participant_age":{"anyOf":[{"type":"integer","maximum":130.0,"minimum":0.0},{"type":"null"}],"title":"Participant Age"},"email_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Message Id"}},"type":"object","required":["data","plan_manager_id","executionId","s3_key"],"title":"InvoiceData"},"InvoiceDataResults":{"properties":{"AMOUNT_DUE":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount Due"},"INVOICE_DUE_DATE":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Due Date"},"INVOICE_RECEIPT_DATE":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Receipt Date"},"INVOICE_RECEIPT_ID":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Receipt Id"},"SUBTOTAL":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subtotal"},"TAX":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tax"},"TOTAL":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total"},"VENDOR_ABN_NUMBER":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Abn Number"},"total_valid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Total Valid"},"BSB":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bsb"},"ACCOUNT_NUMBER":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Number"},"VENDOR_NAME":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"}},"type":"object","title":"InvoiceDataResults"},"InvoicePdfRequest":{"properties":{"s3_key":{"type":"string","title":"S3 Key","description":"S3 key for the invoice PDF","example":"invoices/participant_123/invoice_001.pdf"}},"type":"object","required":["s3_key"],"title":"InvoicePdfRequest","description":"Request model for invoice PDF."},"InvoiceRejectionRequest":{"properties":{"rejection_reason":{"type":"string","title":"Rejection Reason"}},"type":"object","required":["rejection_reason"],"title":"InvoiceRejectionRequest"},"InvoiceRejectionResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"invoice_id":{"type":"integer","title":"Invoice Id"},"new_status":{"type":"string","title":"New Status"},"rejection_reason":{"type":"string","title":"Rejection Reason"}},"type":"object","required":["success","message","invoice_id","new_status","rejection_reason"],"title":"InvoiceRejectionResponse"},"InvoiceRuleRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"target":{"type":"string","enum":["ndis_invoices","ndis_line_items"],"title":"Target"},"condition":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}]},"custom_sql":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Sql"},"rule_message":{"type":"string","title":"Rule Message"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active","default":true},"mode":{"anyOf":[{"type":"string","enum":["active","test","off"]},{"type":"null"}],"title":"Mode","default":"active"},"scoped_to":{"anyOf":[{"type":"string","enum":["global","plan_manager","provider","participant"]},{"type":"null"}],"title":"Scoped To","default":"global"},"scoped_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scoped Id"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"severity":{"anyOf":[{"type":"string","enum":["info","warning","error"]},{"type":"null"}],"title":"Severity","default":"warning"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"condition_type":{"anyOf":[{"type":"string","enum":["simple","composite"]},{"type":"null"}],"title":"Condition Type","default":"simple"}},"type":"object","required":["name","target","rule_message"],"title":"InvoiceRuleRequest","description":"Request model for creating/updating an invoice rule"},"InvoiceRuleResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"target":{"type":"string","enum":["ndis_invoices","ndis_line_items"],"title":"Target"},"condition":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}]},"custom_sql":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Sql"},"rule_message":{"type":"string","title":"Rule Message"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"mode":{"anyOf":[{"type":"string","enum":["active","test","off"]},{"type":"null"}],"title":"Mode"},"scoped_to":{"anyOf":[{"type":"string","enum":["global","plan_manager","provider","participant"]},{"type":"null"}],"title":"Scoped To"},"scoped_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scoped Id"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"severity":{"anyOf":[{"type":"string","enum":["info","warning","error"]},{"type":"null"}],"title":"Severity"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"condition_type":{"anyOf":[{"type":"string","enum":["simple","composite"]},{"type":"null"}],"title":"Condition Type"}},"type":"object","required":["id","name","target","rule_message"],"title":"InvoiceRuleResponse","description":"Response model for invoice rules"},"InvoiceStatsRequest":{"properties":{"participant_id":{"type":"string","title":"Participant Id","description":"Participant ID","example":"participant_123"},"month":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month","description":"Month in YYYY-MM format","example":"2024-01"}},"type":"object","required":["participant_id"],"title":"InvoiceStatsRequest","description":"Request model for invoice statistics."},"InvoiceStatsResponse":{"properties":{},"additionalProperties":true,"type":"object","title":"InvoiceStatsResponse","description":"Response model for invoice statistics."},"InvoicesRequest":{"properties":{"participant_id":{"type":"string","title":"Participant Id","description":"Participant ID","example":"participant_123"},"support_category_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Category Name","description":"Filter by support category name"},"support_category_name_pace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Category Name Pace","description":"Filter by PACE support category name"},"return_received":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Return Received","description":"Return received invoices (default is False)"}},"type":"object","required":["participant_id"],"title":"InvoicesRequest","description":"Request model for historical invoices."},"InvoicesResponse":{"properties":{"invoices":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Invoices","description":"Historical invoices data"}},"type":"object","required":["invoices"],"title":"InvoicesResponse","description":"Response model for historical invoices."},"JsonValue":{},"KlaviyoResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"data":{"anyOf":[{},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["success"],"title":"KlaviyoResponse"},"LineItem-Input":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"cancellation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cancellation","default":false},"claim_type":{"type":"string","title":"Claim Type"},"description":{"type":"string","title":"Description"},"early_childhood":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Early Childhood","default":false},"line_total":{"type":"number","title":"Line Total"},"quantity":{"type":"number","title":"Quantity"},"service_date_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Date From"},"service_date_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Date To"},"service_item_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Item Number"},"service_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Type"},"time_from":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Time From"},"time_to":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Time To"},"unit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unit Price"},"line_tax":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Line Tax"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"line_total_valid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Line Total Valid"},"gst_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gst Code"},"fallback_data":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Fallback Data"},"has_business_violations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Business Violations","default":false},"business_violation_messages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Business Violation Messages"},"business_violation_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Business Violation Types"},"page_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Number"},"coordinates":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Coordinates"}},"type":"object","required":["claim_type","description","line_total","quantity"],"title":"LineItem"},"LoginRequest":{"properties":{"email":{"type":"string","title":"Email","description":"User email address"},"password":{"type":"string","title":"Password","description":"User password"}},"type":"object","required":["email","password"],"title":"LoginRequest","description":"Email/password login request."},"LoginResponse":{"properties":{"access_token":{"type":"string","title":"Access Token","description":"JWT access token"},"refresh_token":{"type":"string","title":"Refresh Token","description":"JWT refresh token"},"expires_at":{"type":"integer","title":"Expires At","description":"Token expiration timestamp"},"user":{"$ref":"#/components/schemas/UserInfo","description":"User information"}},"type":"object","required":["access_token","refresh_token","expires_at","user"],"title":"LoginResponse","description":"Login response with session data."},"MobileBudgetCategory":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"approved":{"type":"number","title":"Approved","default":0.0},"spent":{"type":"number","title":"Spent","default":0.0},"released":{"type":"number","title":"Released","default":0.0},"remaining":{"type":"number","title":"Remaining","default":0.0},"spend_percentage":{"type":"number","title":"Spend Percentage","default":0.0},"item_count":{"type":"integer","title":"Item Count","default":0},"claim_count":{"type":"integer","title":"Claim Count","default":0},"management_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Management Type"},"category_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Type"},"funding_periods":{"anyOf":[{"items":{"$ref":"#/components/schemas/FundingPeriod"},"type":"array"},{"type":"null"}],"title":"Funding Periods"},"current_period":{"anyOf":[{"$ref":"#/components/schemas/CurrentPeriod"},{"type":"null"}]},"average_weekly_spend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Weekly Spend"},"available_weekly_spend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Available Weekly Spend"}},"type":"object","required":["id","name"],"title":"MobileBudgetCategory","description":"Mobile-optimized budget category."},"MobileBudgetType":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"approved":{"type":"number","title":"Approved","default":0.0},"spent":{"type":"number","title":"Spent","default":0.0},"released":{"type":"number","title":"Released","default":0.0},"remaining":{"type":"number","title":"Remaining","default":0.0},"spend_percentage":{"type":"number","title":"Spend Percentage","default":0.0},"claim_count":{"type":"integer","title":"Claim Count","default":0},"categories":{"items":{"$ref":"#/components/schemas/MobileBudgetCategory"},"type":"array","title":"Categories","default":[]},"funding_periods":{"anyOf":[{"items":{"$ref":"#/components/schemas/FundingPeriod"},"type":"array"},{"type":"null"}],"title":"Funding Periods"},"current_period":{"anyOf":[{"$ref":"#/components/schemas/CurrentPeriod"},{"type":"null"}]},"average_weekly_spend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Weekly Spend"},"available_weekly_spend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Available Weekly Spend"}},"type":"object","required":["id","name"],"title":"MobileBudgetType","description":"Mobile-optimized budget type."},"NDISInfoWorkerRequest":{"properties":{"participant_number":{"type":"string","title":"Participant Number"},"last_name":{"type":"string","title":"Last Name"},"date_of_birth":{"type":"string","title":"Date Of Birth"},"participant_id":{"type":"string","title":"Participant Id"}},"type":"object","required":["participant_number","last_name","date_of_birth"],"title":"NDISInfoWorkerRequest"},"Pagination":{"properties":{"page":{"type":"integer","title":"Page","default":1},"limit":{"type":"integer","title":"Limit","default":20},"total":{"type":"integer","title":"Total","default":0},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","title":"Pagination","description":"Pagination info."},"Participant":{"properties":{"participant_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Participant Number"},"backup_names":{"anyOf":[{"items":{"$ref":"#/components/schemas/BackupName"},"type":"array"},{"type":"null"}],"title":"Backup Names","default":[]}},"type":"object","required":["participant_number"],"title":"Participant"},"ParticipantDocument":{"properties":{"id":{"type":"integer","title":"Id","description":"Document record ID"},"created_at":{"type":"string","title":"Created At","description":"Upload timestamp (ISO 8601)"},"document_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Name","description":"Human-readable document name"},"document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type","description":"Document category/type"},"portal_access":{"type":"boolean","title":"Portal Access","description":"Whether document is visible in the portal","default":true},"document_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Key","description":"Storage key for the file"},"plan_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plan Id","description":"Associated plan ID"}},"type":"object","required":["id","created_at"],"title":"ParticipantDocument","description":"A document shared with the participant via the portal."},"ParticipantFormDataResponse":{"properties":{"form_requests":{"items":{"$ref":"#/components/schemas/ParticipantFormRequest"},"type":"array","title":"Form Requests"}},"type":"object","required":["form_requests"],"title":"ParticipantFormDataResponse"},"ParticipantFormRequest":{"properties":{"request_id":{"type":"string","title":"Request Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"fields":{"items":{"$ref":"#/components/schemas/FormSubmissionField"},"type":"array","title":"Fields"},"service_agreement_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Agreement Url"}},"type":"object","required":["request_id","fields"],"title":"ParticipantFormRequest"},"ParticipantIdRequest":{"properties":{"participant_id":{"type":"string","title":"Participant Id","description":"Participant ID","example":"participant_123"}},"type":"object","required":["participant_id"],"title":"ParticipantIdRequest","description":"Base request model with participant ID."},"ParticipantStatement":{"properties":{"id":{"type":"string","title":"Id","description":"Statement record ID"},"created_at":{"type":"string","title":"Created At","description":"Generation timestamp (ISO 8601)"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Statement type (e.g. postal, auto)"},"status":{"type":"string","title":"Status","description":"Statement status","default":"unknown"},"auto_statement":{"type":"boolean","title":"Auto Statement","description":"Whether generated automatically","default":false},"recipient_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Email","description":"Email address statement was sent to"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id","description":"Associated document ID for PDF"},"statement_period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Statement Period","description":"Date range of the statement period, e.g. '2024-01-01 - 2024-01-31'"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url","description":"Direct download URL for the statement PDF (set by PDFMonkey webhook)"}},"type":"object","required":["id","created_at"],"title":"ParticipantStatement","description":"A statement generated for the participant."},"ParticipantSummary":{"properties":{"id":{"type":"string","title":"Id","description":"Participant ID"},"first_name":{"type":"string","title":"First Name","description":"First name"},"last_name":{"type":"string","title":"Last Name","description":"Last name"},"participant_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Participant Number","description":"NDIS participant number"},"plan_manager_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Name","description":"Plan manager company name"},"is_pace_plan":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Pace Plan","description":"Whether this is a PACE plan"},"self_access":{"type":"boolean","title":"Self Access","description":"Whether user has self-access to this participant (is the participant)","default":false},"profile_picture_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Picture Url","description":"Profile picture URL (only for self-access participants)"},"plan_manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id","description":"Plan manager ID (for profile picture uploads)"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions","description":"List of permission IDs granted to this user for this participant"}},"type":"object","required":["id","first_name","last_name"],"title":"ParticipantSummary","description":"Lightweight participant info for list views."},"ParticipantsModel":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"middle_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Middle Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"service_region_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Region Id"},"postcode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postcode"},"participant_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Participant Number"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"status_category":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Category"},"plan_manager":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan Manager"},"shortcode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shortcode"},"xero_item_ref":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Xero Item Ref"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"xero_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Xero Status"},"approval_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Email"},"last_modified_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Modified By"},"modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified At"},"approval_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Approval Required"},"alias_first":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias First"},"alias_last":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias Last"},"account_manager":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Manager"},"date_of_birth":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Of Birth"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"is_pace_plan":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Pace Plan"},"statement_period":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}]},"statements_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Statements Email"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"preferred_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Name"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"setup_fee":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Setup Fee"},"approval_timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Approval Timeout"},"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"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"bsb":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bsb"},"bank_account_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Account Number"},"custom_fields":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}]},"primary_disability":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Disability"},"xero_contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Xero Contact Id"},"klaviyo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Klaviyo Id"},"date_ceased":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Ceased"},"reason_for_leaving":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason For Leaving"},"aboroginal_torres_strait":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aboroginal Torres Strait"},"preferred_communication":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Communication"},"pronouns":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pronouns"},"participant_approved":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Approved"},"approval_list":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}]}},"type":"object","title":"ParticipantsModel"},"ParticipantsResponse":{"properties":{"participants":{"items":{"$ref":"#/components/schemas/ParticipantSummary"},"type":"array","title":"Participants","description":"List of participants"},"total":{"type":"integer","title":"Total","description":"Total number of participants"}},"type":"object","required":["participants","total"],"title":"ParticipantsResponse","description":"List of participants response."},"PasswordResetPayload":{"properties":{"email":{"type":"string","title":"Email","description":"User email address"},"token":{"type":"string","title":"Token","description":"Reset token from email"},"new_password":{"type":"string","minLength":8,"title":"New Password","description":"New password (min 8 characters)"}},"type":"object","required":["email","token","new_password"],"title":"PasswordResetPayload","description":"Reset password with token."},"PasswordResetRequestPayload":{"properties":{"email":{"type":"string","title":"Email","description":"Email address to send reset link to"}},"type":"object","required":["email"],"title":"PasswordResetRequestPayload","description":"Request password reset."},"PasswordResetRequestResponse":{"properties":{"email":{"type":"string","title":"Email","description":"Email address reset link was sent to"},"message":{"type":"string","title":"Message","description":"Status message"}},"type":"object","required":["email","message"],"title":"PasswordResetRequestResponse","description":"Password reset request response."},"PasswordResetResponse":{"properties":{"message":{"type":"string","title":"Message","description":"Status message"}},"type":"object","required":["message"],"title":"PasswordResetResponse","description":"Password reset response."},"PendingApprovalCountResponse":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"PendingApprovalCountResponse"},"PlanInfo":{"properties":{"start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"},"days_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Remaining"},"days_elapsed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Elapsed"},"total_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Days"},"is_pace_plan":{"type":"boolean","title":"Is Pace Plan","default":false}},"type":"object","title":"PlanInfo","description":"Plan information for dashboard."},"PlanManagerModel":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"auth0_company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth0 Company Id"},"lookup_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lookup Name"},"ignored_errors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ignored Errors"},"codat_company_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Codat Company Id"},"codat_xero_connection_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Codat Xero Connection Id"},"reply_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Address"},"modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified At"},"plan_manager_abn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Abn"},"ff_accounting_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ff Accounting Enabled","default":false},"company_logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Logo"},"ff_statements_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ff Statements Enabled","default":false},"ff_ndis_api_integrated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ff Ndis Api Integrated","default":false},"b2b_device_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"B2B Device Name"},"device_expiry":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Device Expiry"},"careaccess_auth":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Careaccess Auth"},"key_expiry":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Key Expiry"},"custom_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Email"},"ff_careview_exporting":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ff Careview Exporting","default":false},"ff_pm_invoices":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ff Pm Invoices","default":false},"approval_as_link":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Approval As Link","default":false},"approval_timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Approval Timeout"},"x_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Api Key"},"svix_app_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Svix App Id"},"ff_sync_pm_invoice":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ff Sync Pm Invoice","default":false},"resend_domains":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}]},"ff_approved_to_claims":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ff Approved To Claims","default":false},"ff_select_best_multiple_provider":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ff Select Best Multiple Provider","default":false},"ff_partially_paid_tolerance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ff Partially Paid Tolerance"}},"type":"object","required":["id","created_at"],"title":"PlanManagerModel"},"ProfilePictureResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether upload was successful"},"profile_picture_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Picture Url","description":"URL of the uploaded profile picture"},"message":{"type":"string","title":"Message","description":"Status message"}},"type":"object","required":["success","message"],"title":"ProfilePictureResponse","description":"Profile picture upload response."},"ProfilePictureUploadRequest":{"properties":{"image_base64":{"type":"string","title":"Image Base64","description":"Base64 encoded image data"},"content_type":{"type":"string","title":"Content Type","description":"Image content type (image/jpeg, image/png, etc.)","default":"image/jpeg"}},"type":"object","required":["image_base64"],"title":"ProfilePictureUploadRequest","description":"Profile picture upload request."},"Provider":{"properties":{"raw_entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Entity Name"},"raw_abn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Abn"},"matched_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Id"},"invoice_bsb":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Bsb"},"invoice_account_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Account Number"}},"type":"object","required":["raw_entity_name","raw_abn","matched_id","invoice_bsb","invoice_account_number"],"title":"Provider"},"ProviderBudgetRuleRequest":{"properties":{"pm_provider_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pm Provider Id"},"budget_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Budget Category"},"budget_rule_type":{"type":"string","title":"Budget Rule Type"},"budget_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Budget Amount"},"effective_date":{"type":"string","format":"date","title":"Effective Date"},"expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiry Date"},"budget_table_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Budget Table Name"},"budget_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Budget Id"},"linked_document":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Linked Document"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["budget_rule_type","budget_amount","effective_date"],"title":"ProviderBudgetRuleRequest","description":"Request model for creating/updating a provider budget rule"},"ProviderBudgetRuleResponse":{"properties":{"id":{"type":"integer","title":"Id"},"plan_manager":{"type":"string","format":"uuid","title":"Plan Manager"},"participant_id":{"type":"string","format":"uuid","title":"Participant Id"},"pm_provider_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pm Provider Id"},"budget_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Budget Category"},"budget_rule_type":{"type":"string","title":"Budget Rule Type"},"budget_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Budget Amount"},"effective_date":{"type":"string","format":"date","title":"Effective Date"},"expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiry Date"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified At"},"current_used_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Current Used Amount"},"is_violated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Violated"},"is_75_percent_violated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is 75 Percent Violated"},"active":{"type":"boolean","title":"Active"},"budget_table_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Budget Table Name"},"budget_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Budget Id"},"linked_document":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Linked Document"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"temp_external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temp External Id"},"budget_rules_group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Budget Rules Group Id"}},"type":"object","required":["id","plan_manager","participant_id","budget_rule_type","budget_amount","effective_date","created_at","active"],"title":"ProviderBudgetRuleResponse","description":"Response model for provider budget rules"},"RecentClaim":{"properties":{"id":{"type":"integer","title":"Id"},"provider_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Name"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"amount":{"type":"number","title":"Amount","default":0.0},"status":{"type":"string","title":"Status","default":"unknown"}},"type":"object","required":["id"],"title":"RecentClaim","description":"Recent claim for dashboard."},"RefItemCatalogueModel":{"properties":{"service_item_number":{"type":"string","title":"Service Item Number"},"service_item_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Item Name"},"registration_group_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Registration Group Number"},"registration_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registration Group"},"support_category_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Support Category Number"},"support_category_number_pace":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Support Category Number Pace"},"support_category_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Category Name"},"support_category_name_pace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Category Name Pace"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"quote":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Quote"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"act":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Act"},"nsw":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nsw"},"nt":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nt"},"qld":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Qld"},"sa":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sa"},"tas":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tas"},"vic":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vic"},"wa":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wa"},"remote":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Remote"},"very_remote":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Very Remote"},"non_face_to_face_support_provision":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Non Face To Face Support Provision"},"provider_travel":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Provider Travel"},"short_notice_cancellations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Short Notice Cancellations"},"ndia_requested_reports":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ndia Requested Reports"},"irregular_sil_supports":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Irregular Sil Supports"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"profession_specific":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profession Specific"},"service_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Type"},"day_of_week":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Day Of Week"},"time_of_day":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Of Day"},"intensity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intensity"},"early_childhood":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Early Childhood"},"travel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Travel Type"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"category":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Category"},"sequence":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sequence"},"registration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Registration"},"outcome":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Outcome"},"purpose":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Purpose"},"t_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"T Group"},"pmts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pmts"},"unscoped_age":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unscoped Age"}},"type":"object","required":["service_item_number"],"title":"RefItemCatalogueModel","description":"Pydantic model for the ref_item_catalogue table."},"RefreshTokenRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token","description":"Refresh token"}},"type":"object","required":["refresh_token"],"title":"RefreshTokenRequest","description":"Token refresh request."},"ReimbursementRequest":{"properties":{"invoice_number":{"type":"string","title":"Invoice Number"},"total_amount":{"type":"number","title":"Total Amount"},"image_base64":{"type":"string","title":"Image Base64"}},"type":"object","required":["invoice_number","total_amount","image_base64"],"title":"ReimbursementRequest"},"ReimbursementResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"invoice_id":{"type":"integer","title":"Invoice Id"},"invoice_number":{"type":"string","title":"Invoice Number"},"total":{"type":"number","title":"Total"},"s3_key":{"type":"string","title":"S3 Key"}},"type":"object","required":["success","message","invoice_id","invoice_number","total","s3_key"],"title":"ReimbursementResponse"},"RemittancePortalRequest":{"properties":{"payment_ref":{"type":"string","title":"Payment Ref","description":"Payment reference to search for"},"provider_email":{"type":"string","title":"Provider Email","description":"Provider email address","example":"provider@example.com"},"plan_manager_id":{"type":"string","title":"Plan Manager Id","description":"Plan manager ID","example":"pm_123"}},"type":"object","required":["payment_ref","provider_email","plan_manager_id"],"title":"RemittancePortalRequest","description":"Request model for remittance portal endpoint."},"RemittancePortalResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether the request was successful"},"message":{"type":"string","title":"Message","description":"Response message"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data","description":"Response data containing invoices and line items"}},"type":"object","required":["success","message"],"title":"RemittancePortalResponse","description":"Response model for remittance portal endpoint."},"ResendBankDetailsFormEmailRequest":{"properties":{"form_request_id":{"type":"string","format":"uuid","title":"Form Request Id"},"plan_manager_id":{"type":"string","format":"uuid","title":"Plan Manager Id"},"sent_by_user_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sent By User Sid"},"sent_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sent By Name"}},"type":"object","required":["form_request_id","plan_manager_id"],"title":"ResendBankDetailsFormEmailRequest"},"Results":{"properties":{"status":{"type":"string","title":"Status"},"data":{"$ref":"#/components/schemas/Data"}},"type":"object","required":["status","data"],"title":"Results"},"RetoolSyncRequest":{"properties":{"plan_manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id"}},"type":"object","title":"RetoolSyncRequest"},"SBCreateRequest":{"properties":{"participant":{"type":"integer","title":"Participant"},"participant_surname":{"type":"string","title":"Participant Surname"},"date_of_birth":{"type":"string","title":"Date Of Birth"},"booking_type":{"type":"string","title":"Booking Type"},"start_date":{"type":"string","title":"Start Date"},"end_date":{"type":"string","title":"End Date"},"participant_plan_id":{"type":"integer","title":"Participant Plan Id"},"declaration":{"type":"boolean","title":"Declaration","default":true},"items":{"items":{},"type":"array","title":"Items"}},"type":"object","required":["participant","participant_surname","date_of_birth","booking_type","start_date","end_date"],"title":"SBCreateRequest"},"SBDeleteRequest":{"properties":{"participant_number":{"type":"string","title":"Participant Number"},"service_booking_id":{"type":"string","title":"Service Booking Id"}},"type":"object","required":["participant_number","service_booking_id"],"title":"SBDeleteRequest"},"SBGetRequest":{"properties":{"participant_number":{"type":"integer","title":"Participant Number"},"participant_id":{"type":"string","title":"Participant Id"}},"type":"object","required":["participant_number"],"title":"SBGetRequest"},"SBModifyRequest":{"properties":{"participant_number":{"type":"string","title":"Participant Number"},"service_booking_id":{"type":"string","title":"Service Booking Id"},"booking_type":{"type":"string","title":"Booking Type","default":"ZPLM"},"extend_end_date":{"type":"string","title":"Extend End Date"},"reduce_end_date":{"type":"string","title":"Reduce End Date"},"quantity":{"type":"integer","title":"Quantity"},"price":{"type":"number","title":"Price"},"product_category":{"type":"string","title":"Product Category"},"product_category_item":{"type":"string","title":"Product Category Item"}},"type":"object","required":["participant_number","service_booking_id"],"title":"SBModifyRequest"},"SendBatchInvoicesRequest":{"properties":{"invoices":{"items":{"type":"string"},"type":"array","title":"Invoices"},"plan_manager_id":{"type":"string","title":"Plan Manager Id"},"resend":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Resend","default":false}},"type":"object","required":["invoices","plan_manager_id"],"title":"SendBatchInvoicesRequest"},"SendSmsOtp":{"properties":{"phone_number":{"type":"string","title":"Phone Number"}},"type":"object","required":["phone_number"],"title":"SendSmsOtp"},"SmsRequestPayload":{"properties":{"phone_number":{"type":"string","title":"Phone Number","description":"Phone number in international format (e.g., +61412345678)"}},"type":"object","required":["phone_number"],"title":"SmsRequestPayload","description":"Request SMS OTP."},"SmsRequestResponse":{"properties":{"phone_number":{"type":"string","title":"Phone Number","description":"Phone number OTP was sent to"},"message":{"type":"string","title":"Message","description":"Status message"}},"type":"object","required":["phone_number","message"],"title":"SmsRequestResponse","description":"SMS OTP request response."},"SmsVerifyPayload":{"properties":{"phone_number":{"type":"string","title":"Phone Number","description":"Phone number that received OTP"},"token":{"type":"string","title":"Token","description":"OTP code"}},"type":"object","required":["phone_number","token"],"title":"SmsVerifyPayload","description":"Verify SMS OTP."},"SpendByTypeMonth":{"properties":{"month":{"type":"string","title":"Month"},"core":{"type":"number","title":"Core","default":0.0},"capital":{"type":"number","title":"Capital","default":0.0},"capacity_building":{"type":"number","title":"Capacity Building","default":0.0},"total":{"type":"number","title":"Total","default":0.0}},"type":"object","required":["month"],"title":"SpendByTypeMonth","description":"Monthly spend grouped by budget type."},"StatementsResponse":{"properties":{"statements":{"items":{"$ref":"#/components/schemas/ParticipantStatement"},"type":"array","title":"Statements","description":"Participant statements","default":[]},"total":{"type":"integer","title":"Total","description":"Total number of statements","default":0}},"type":"object","title":"StatementsResponse","description":"List of statements for a participant."},"SubmissionsDataModel":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"data":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}]},"data_encrypted":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Data Encrypted"},"data_key_encrypted":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Data Key Encrypted"}},"type":"object","required":["id","created_at"],"title":"SubmissionsDataModel","description":"Pydantic model for the forms.submissions_data table."},"SubmissionsModel":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"submitted_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitted By"},"data":{"anyOf":[{},{"type":"null"}],"title":"Data"},"form_submit_reference":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Form Submit Reference"},"submission_data_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Submission Data Id"},"submission_data_":{"anyOf":[{"$ref":"#/components/schemas/SubmissionsDataModel"},{"type":"null"}]}},"type":"object","required":["id","request_id","created_at"],"title":"SubmissionsModel","description":"Pydantic model for the forms.submissions table."},"Summary-Input":{"properties":{"service_number_extracted":{"type":"boolean","title":"Service Number Extracted"},"line_items_match_total":{"type":"boolean","title":"Line Items Match Total"},"total_valid":{"type":"boolean","title":"Total Valid"},"check_gst":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Check Gst","default":false},"check_dates":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Check Dates","default":false},"check_bank_details":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Check Bank Details","default":false},"has_overlapping_lines":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Overlapping Lines","default":false},"claims_rules_violation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Claims Rules Violation","default":false},"business_rules_validation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Business Rules Validation"}},"type":"object","required":["service_number_extracted","line_items_match_total","total_valid"],"title":"Summary"},"Summary-Output":{"properties":{"service_items_extracted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Service Items Extracted","default":false},"line_items_match_total":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Line Items Match Total","default":false}},"type":"object","title":"Summary"},"SvixData":{"properties":{"appId":{"type":"string","title":"Appid"},"appUid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appuid"},"endpointId":{"type":"string","title":"Endpointid"},"endpointUid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpointuid"}},"type":"object","required":["appId","endpointId"],"title":"SvixData"},"SvixWebhookRequest":{"properties":{"data":{"$ref":"#/components/schemas/SvixData"},"type":{"type":"string","title":"Type"}},"type":"object","required":["data","type"],"title":"SvixWebhookRequest"},"TopProvider":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"Provider ID"},"name":{"type":"string","title":"Name","description":"Provider name"},"total_spend":{"type":"number","title":"Total Spend","description":"Total spend amount","default":0.0},"invoice_count":{"type":"integer","title":"Invoice Count","description":"Number of invoices","default":0}},"type":"object","required":["name"],"title":"TopProvider","description":"Top provider by total spend."},"UpdateUserMetadata":{"properties":{"user_id":{"type":"string","title":"User Id"},"phone_number":{"type":"string","title":"Phone Number"},"plan_manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id"},"update_profile":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Update Profile","default":false}},"type":"object","required":["user_id","phone_number"],"title":"UpdateUserMetadata"},"User":{"properties":{"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"participant_id":{"type":"string","title":"Participant Id"},"plan_manager_id":{"type":"string","title":"Plan Manager Id"},"permissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permissions"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"self_access":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Self Access","default":false},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"pm_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pm Provider Id"}},"type":"object","required":["participant_id","plan_manager_id"],"title":"User"},"UserInfo":{"properties":{"id":{"type":"string","title":"Id","description":"User ID"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"User email"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number","description":"User phone number"}},"type":"object","required":["id"],"title":"UserInfo","description":"Basic user information."},"UserModel":{"properties":{"id":{"type":"string","title":"Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"active":{"type":"boolean","title":"Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_active":{"type":"string","format":"date-time","title":"Last Active"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"plan_manager":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan Manager"},"groups":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Groups"},"internal":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Internal","default":false},"qa_assigned":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}]},"profile_colour":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Colour"}},"type":"object","required":["id","active","created_at","last_active"],"title":"UserModel"},"UserParticipant":{"properties":{"user_id":{"type":"string","title":"User Id","description":"User ID"},"id":{"type":"string","title":"Id","description":"Participant ID"},"first_name":{"type":"string","title":"First Name","description":"Participant's first name"},"last_name":{"type":"string","title":"Last Name","description":"Participant's last name"},"participant_number":{"anyOf":[{"type":"string"},{"type":"integer"}],"title":"Participant Number","description":"Participant number"},"user_email":{"type":"string","title":"User Email","description":"User's email address"},"address_line_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 1","description":"Participant's address line 1"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"Participant's city"},"postcode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postcode","description":"Participant's postcode"},"service_region_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Region Id","description":"Service region ID"},"date_of_birth":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Of Birth","description":"Participant's date of birth"},"plan_manager":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager","description":"Plan manager ID"},"plan_manager_company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Company Name","description":"Plan manager company name"},"plan_start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Plan Start Date","description":"Plan start date"},"plan_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Plan End Date","description":"Plan end date"},"is_pace_plan":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Pace Plan","description":"Whether this is a pace plan"},"advanced_view":{"type":"boolean","title":"Advanced View","description":"Whether advanced view is enabled"},"permission_id":{"items":{"type":"string"},"type":"array","title":"Permission Id","description":"List of permission IDs (UUIDs)"},"permission_names_friendly":{"items":{"type":"string"},"type":"array","title":"Permission Names Friendly","description":"List of friendly permission names"}},"type":"object","required":["user_id","id","first_name","last_name","participant_number","user_email","advanced_view","permission_id","permission_names_friendly"],"title":"UserParticipant","description":"Model for a participant accessible by a user."},"UserParticipantsResponse":{"properties":{"participants":{"items":{"$ref":"#/components/schemas/UserParticipant"},"type":"array","title":"Participants","description":"List of participants accessible by the user"},"total_participants":{"type":"integer","title":"Total Participants","description":"Total number of participants"}},"type":"object","required":["participants","total_participants"],"title":"UserParticipantsResponse","description":"Response model for user participants."},"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"},"VerifySmsOtp":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"token":{"type":"string","title":"Token"}},"type":"object","required":["phone_number","token"],"title":"VerifySmsOtp"},"ViolationSummary":{"properties":{"total_violations":{"type":"integer","title":"Total Violations"},"general_violations":{"type":"integer","title":"General Violations"},"pace_violations":{"type":"integer","title":"Pace Violations"},"sap_violations":{"type":"integer","title":"Sap Violations"},"price_guide_violations":{"type":"integer","title":"Price Guide Violations"},"violation_types":{"additionalProperties":{"type":"integer"},"type":"object","title":"Violation Types"}},"type":"object","required":["total_violations","general_violations","pace_violations","sap_violations","price_guide_violations","violation_types"],"title":"ViolationSummary","description":"Summary of violations found during analysis"},"WebhookSubscribeRequest":{"properties":{"event_id":{"type":"string","title":"Event Id"},"webhook_frequency":{"type":"string","title":"Webhook Frequency"}},"type":"object","required":["event_id","webhook_frequency"],"title":"WebhookSubscribeRequest"},"WebhookUnsubscribeRequest":{"properties":{"event_id":{"type":"string","title":"Event Id"}},"type":"object","required":["event_id"],"title":"WebhookUnsubscribeRequest"},"WebhookValidateSubscriptionsRequest":{"properties":{"update_db_log":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Update Db Log","default":true}},"type":"object","title":"WebhookValidateSubscriptionsRequest"},"XeroGetContactsRequest":{"properties":{"plan_manager_id":{"type":"string","title":"Plan Manager Id"}},"type":"object","required":["plan_manager_id"],"title":"XeroGetContactsRequest"},"XeroResyncReferenceBatchRequest":{"properties":{"bill_ids":{"items":{"type":"integer"},"type":"array","title":"Bill Ids"},"plan_manager_id":{"type":"string","title":"Plan Manager Id"}},"type":"object","required":["bill_ids","plan_manager_id"],"title":"XeroResyncReferenceBatchRequest"},"XeroResyncReferenceRequest":{"properties":{"bill_id":{"type":"integer","title":"Bill Id"},"plan_manager_id":{"type":"string","title":"Plan Manager Id"}},"type":"object","required":["bill_id","plan_manager_id"],"title":"XeroResyncReferenceRequest"},"XeroSyncInvoiceRequest":{"properties":{"bill_id":{"type":"integer","title":"Bill Id"},"plan_manager_id":{"type":"string","title":"Plan Manager Id"}},"type":"object","required":["bill_id","plan_manager_id"],"title":"XeroSyncInvoiceRequest"},"ZapierSubscriptionRequest":{"properties":{"event_id":{"type":"string","title":"Event Id"},"hook_url":{"type":"string","title":"Hook Url"},"zap_id":{"type":"string","title":"Zap Id"}},"type":"object","required":["event_id","hook_url","zap_id"],"title":"ZapierSubscriptionRequest"},"ZapierUnsubscribeRequest":{"properties":{"event_id":{"type":"string","title":"Event Id"},"zap_id":{"type":"string","title":"Zap Id"}},"type":"object","required":["event_id","zap_id"],"title":"ZapierUnsubscribeRequest"},"abaFileRequest":{"properties":{"invoice_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Invoice Ids"},"line_item_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Line Item Ids"},"plan_manager_id":{"type":"string","title":"Plan Manager Id"},"generate_remittance":{"type":"boolean","title":"Generate Remittance","default":false},"remittance_message":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Remittance Message"},"aba_ref_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aba Ref Override"},"include_balancing_line":{"type":"boolean","title":"Include Balancing Line","default":false},"aba_type":{"anyOf":[{"$ref":"#/components/schemas/AbaType"},{"type":"null"}]}},"type":"object","required":["plan_manager_id"],"title":"abaFileRequest"},"app__api__v1__endpoints__accounting__statements_router__generateParticipantPayload":{"properties":{"statement_period":{"type":"string","title":"Statement Period"},"plan_manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Manager Id"}},"type":"object","required":["statement_period","plan_manager_id"],"title":"generateParticipantPayload"},"app__api__v1__endpoints__user_auth__user_auth_router__UserIdRequest":{"properties":{"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["user_id"],"title":"UserIdRequest"},"app__schemas__api_response__LineItem":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"quantity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quantity"},"unit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unit Price"},"total_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Price"},"service_item_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Item Number"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"cancellation_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancellation Type"},"cancellation_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancellation Reason"},"service_date_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Date From"},"service_date_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Date To"}},"type":"object","required":["description","quantity","unit_price","total_price","service_item_number","method","cancellation_type","cancellation_reason","service_date_from","service_date_to"],"title":"LineItem"},"app__schemas__business_rules_analysis__ParticipantInfo":{"properties":{"is_pace_plan":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Pace Plan"},"has_budget_data":{"type":"boolean","title":"Has Budget Data"},"has_service_bookings":{"type":"boolean","title":"Has Service Bookings"}},"type":"object","required":["is_pace_plan","has_budget_data","has_service_bookings"],"title":"ParticipantInfo","description":"Information about the participant for analysis context"},"app__schemas__documents__LineItem":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"cancellation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cancellation","default":false},"claim_type":{"type":"string","title":"Claim Type"},"description":{"type":"string","title":"Description"},"early_childhood":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Early Childhood","default":false},"line_total":{"type":"number","title":"Line Total"},"quantity":{"type":"number","title":"Quantity"},"service_date_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Date From"},"service_date_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Date To"},"service_item_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Item Number"},"service_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Type"},"time_from":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Time From"},"time_to":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Time To"},"unit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unit Price"},"line_tax":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Line Tax"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"line_total_valid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Line Total Valid"},"gst_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gst Code"},"fallback_data":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Fallback Data"},"has_business_violations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Business Violations","default":false},"business_violation_messages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Business Violation Messages"},"business_violation_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Business Violation Types"},"page_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Number"},"coordinates":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Coordinates"}},"type":"object","required":["claim_type","description","line_total","quantity"],"title":"LineItem"},"app__schemas__mobile__BudgetResponse":{"properties":{"plan_info":{"$ref":"#/components/schemas/PlanInfo"},"budget_types":{"items":{"$ref":"#/components/schemas/MobileBudgetType"},"type":"array","title":"Budget Types","default":[]},"total_approved":{"type":"number","title":"Total Approved","default":0.0},"total_spent":{"type":"number","title":"Total Spent","default":0.0},"total_remaining":{"type":"number","title":"Total Remaining","default":0.0},"average_weekly_spend":{"type":"number","title":"Average Weekly Spend","default":0.0},"available_weekly_spend":{"type":"number","title":"Available Weekly Spend","default":0.0}},"type":"object","required":["plan_info"],"title":"BudgetResponse","description":"Mobile budget response."},"app__schemas__mobile__ErrorResponse":{"properties":{"detail":{"type":"string","title":"Detail","description":"Error message"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Error code"}},"type":"object","required":["detail"],"title":"ErrorResponse","description":"Standard error response."},"app__schemas__mobile__InvoicePdfResponse":{"properties":{"url":{"type":"string","title":"Url","description":"Presigned URL for the invoice PDF"},"expires_in":{"type":"integer","title":"Expires In","description":"URL expiration time in seconds","default":3600}},"type":"object","required":["url"],"title":"InvoicePdfResponse","description":"Invoice PDF URL response."},"app__schemas__mobile__ParticipantInfo":{"properties":{"id":{"type":"string","title":"Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"participant_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Participant Number"}},"type":"object","required":["id","first_name","last_name"],"title":"ParticipantInfo","description":"Participant info for dashboard."},"app__schemas__participant_info__BudgetResponse":{"properties":{"budget":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Budget","description":"Budget data with types, categories, and items"},"plan_information":{"additionalProperties":true,"type":"object","title":"Plan Information","description":"Plan information including dates and usage"}},"type":"object","required":["budget","plan_information"],"title":"BudgetResponse","description":"Response model for participant budget."},"app__schemas__participant_info__ErrorResponse":{"properties":{"detail":{"type":"string","title":"Detail","description":"Error message"},"status_code":{"type":"integer","title":"Status Code","description":"HTTP status code"}},"type":"object","required":["detail","status_code"],"title":"ErrorResponse","description":"Standard error response model."},"app__schemas__participant_info__InvoicePdfResponse":{"properties":{"url":{"type":"string","title":"Url","description":"Presigned URL for the invoice PDF"}},"type":"object","required":["url"],"title":"InvoicePdfResponse","description":"Response model for invoice PDF URL."},"app__schemas__participant_info__UserIdRequest":{"properties":{"user_id":{"type":"string","title":"User Id","description":"User ID","example":"user_456"}},"type":"object","required":["user_id"],"title":"UserIdRequest","description":"Request model with user ID."},"app__schemas__pm_invoices__generateParticipantPayload":{"properties":{"billing_period_from":{"type":"string","title":"Billing Period From"},"billing_period_to":{"type":"string","title":"Billing Period To"},"plan_manager_id":{"type":"string","title":"Plan Manager Id"}},"type":"object","required":["billing_period_from","billing_period_to","plan_manager_id"],"title":"generateParticipantPayload"},"generatePmInvoicesPayload":{"properties":{"billing_period_from":{"type":"string","title":"Billing Period From"},"billing_period_to":{"type":"string","title":"Billing Period To"},"participant_id":{"type":"string","title":"Participant Id"},"plan_manager_id":{"type":"string","title":"Plan Manager Id"},"setup":{"type":"boolean","title":"Setup","default":false},"unit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unit Price"},"monthly_in_arrears":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Monthly In Arrears","default":false},"automatic_price_adjustment":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Automatic Price Adjustment","default":false}},"type":"object","required":["billing_period_from","billing_period_to","participant_id","plan_manager_id"],"title":"generatePmInvoicesPayload"},"generateRemittanceRequest":{"properties":{"plan_manager_id":{"type":"string","title":"Plan Manager Id"},"line_item_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Line Item Ids"},"payment_refs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Payment Refs"},"payment_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Date"},"delete_existing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Delete Existing","default":false},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"aba_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aba Ref"},"aba_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aba Type"}},"type":"object","required":["plan_manager_id"],"title":"generateRemittanceRequest"},"generateStatementsRequest":{"properties":{"participant_id":{"type":"string","title":"Participant Id"},"period":{"type":"string","title":"Period"},"date_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"},"date_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"},"mail_out":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mail Out","default":false},"by_claim_paid_date":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"By Claim Paid Date","default":true},"auto_statement":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Statement","default":false},"omit_pm_fees":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Omit Pm Fees","default":false},"own_pm_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Own Pm Provider"},"hide_pie_charts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hide Pie Charts","default":false},"detailed_statement":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Detailed Statement","default":false},"cover_page_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Page Text"},"hide_invoices":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hide Invoices","default":false}},"type":"object","required":["participant_id","period"],"title":"generateStatementsRequest"},"getBatchStatus":{"properties":{"claim_batch_ref":{"type":"string","title":"Claim Batch Ref"}},"type":"object","required":["claim_batch_ref"],"title":"getBatchStatus"},"getPresignedUrlResponse":{"properties":{"presigned_url":{"type":"string","title":"Presigned Url"},"expiration":{"type":"integer","title":"Expiration"},"bucket_name":{"type":"string","title":"Bucket Name"},"object_name":{"type":"string","title":"Object Name"}},"type":"object","required":["presigned_url","expiration","bucket_name","object_name"],"title":"getPresignedUrlResponse"},"regeneratePmInvoiceRequest":{"properties":{"invoice_id":{"type":"string","title":"Invoice Id"},"plan_manager_id":{"type":"string","title":"Plan Manager Id"},"wait":{"type":"boolean","title":"Wait","default":true}},"type":"object","required":["invoice_id","plan_manager_id"],"title":"regeneratePmInvoiceRequest","description":"Re-renders the PDF for an existing PM fee invoice, overwriting the file at the\ninvoice's current s3_key. Used after invoice fields or line items are edited,\nso the stored PDF matches the record without creating a new invoice.\n\nSet `wait` to false to return as soon as the render is queued instead of\nblocking until the PDF has been stored."}}},"tags":[{"name":"Forms App","description":"Forms app domain endpoints. For interacting with the Caresquare Forms App and it's data."},{"name":"NDIA","description":"NDIA domain endpoints. For interacting with Caresquare NDIA functions and data."},{"name":"ADMIN","description":"Admin only routes (for use by Caresquare Administrators)."}]}