{"endpoints":{"/":"GET - This information","/health":"GET - Health check","/process_creditor_aging":"POST - Process two creditor aging files and find common records"},"message":"Creditor Aging Processing API","output_columns":{"Amount":"Outstanding amount","Client":"Supplier/Client name","Due Date":"Payment due date","Invoice Date":"Date of invoice","Invoice Reference":"Reference number","Total":"Total amount","VAT":"VAT amount"},"response_format":{"common_invoices":"Array of matching invoice records from File 2","matching_logic":"Reference column (primary) or Date+Supplier (fallback)","message":"Success message","output_file":"Path to Excel file","total_records":"Number of matching records"},"usage":{"description":"Upload two creditor aging files. Returns JSON with File 2 records that match with File 1 based on Reference column (primary) or Date+Supplier (fallback)","endpoint":"/process_creditor_aging","file_priority":"File 2 is the primary/current file - only its records are returned if they match with File 1","files":["file1","file2"],"method":"POST","optional_params":["year1","year2"],"supported_formats":["CSV","XLSX","XLS"]},"version":"2.0"}
