{
 "openapi": "3.1.0",
 "info": {
  "title": "Overdue Student Bills (Student Lifecycle)",
  "version": "20261030b",
  "description": "Every bill past its due date with money still open: how late, whether the student and finance were warned, its late fee and its hold. The late fee comes from the Fee Schedule (a fee of type Late), the hold from Alert Rules — neither is charged or placed unless the school has set one."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "overdue-bills": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "bill_no": {
      "type": "string",
      "description": "Bill no",
      "readOnly": true
     },
     "student_id": {
      "type": "string",
      "format": "uuid",
      "description": "Student id",
      "readOnly": true
     },
     "term_id": {
      "type": "string",
      "format": "uuid",
      "description": "Term id",
      "readOnly": true
     },
     "bill_date": {
      "type": "string",
      "format": "date",
      "description": "Bill date",
      "readOnly": true
     },
     "due_date": {
      "type": "string",
      "format": "date",
      "description": "Due date",
      "readOnly": true
     },
     "gross_charges": {
      "type": "string",
      "format": "decimal",
      "description": "Gross charges",
      "readOnly": true
     },
     "aid_applied": {
      "type": "string",
      "format": "decimal",
      "description": "Aid applied",
      "readOnly": true
     },
     "net_due": {
      "type": "string",
      "format": "decimal",
      "description": "Net due",
      "readOnly": true
     },
     "currency": {
      "type": "string",
      "description": "Currency",
      "readOnly": true
     },
     "status": {
      "type": "string",
      "description": "Status",
      "readOnly": true
     },
     "ar_invoice_id": {
      "type": "string",
      "format": "uuid",
      "description": "Ar invoice id",
      "readOnly": true
     },
     "cost_center_id": {
      "type": "string",
      "format": "uuid",
      "description": "Cost center id",
      "readOnly": true
     },
     "notes": {
      "type": "string",
      "description": "Notes",
      "readOnly": true
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "created_by": {
      "type": "string",
      "format": "uuid",
      "description": "Created by",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated at",
      "readOnly": true
     },
     "updated_by": {
      "type": "string",
      "format": "uuid",
      "description": "Updated by",
      "readOnly": true
     },
     "amount_settled": {
      "type": "string",
      "format": "decimal",
      "description": "Amount settled",
      "readOnly": true
     },
     "late_fee_for": {
      "type": "string",
      "format": "uuid",
      "description": "Late fee for",
      "readOnly": true
     },
     "late_fee_id": {
      "type": "string",
      "format": "uuid",
      "description": "Late fee id",
      "readOnly": true
     },
     "amount_paid": {
      "type": "string",
      "format": "decimal",
      "description": "Amount paid",
      "readOnly": true
     },
     "amount_credited": {
      "type": "string",
      "format": "decimal",
      "description": "Amount credited",
      "readOnly": true
     },
     "xf_text_1": {
      "type": "string",
      "description": "Xf text 1",
      "readOnly": true
     },
     "xf_text_2": {
      "type": "string",
      "description": "Xf text 2",
      "readOnly": true
     },
     "xf_text_3": {
      "type": "string",
      "description": "Xf text 3",
      "readOnly": true
     },
     "xf_text_4": {
      "type": "string",
      "description": "Xf text 4",
      "readOnly": true
     },
     "xf_text_5": {
      "type": "string",
      "description": "Xf text 5",
      "readOnly": true
     },
     "xf_num_1": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 1",
      "readOnly": true
     },
     "xf_num_2": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 2",
      "readOnly": true
     },
     "xf_num_3": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 3",
      "readOnly": true
     },
     "xf_date_1": {
      "type": "string",
      "format": "date",
      "description": "Xf date 1",
      "readOnly": true
     },
     "xf_date_2": {
      "type": "string",
      "format": "date",
      "description": "Xf date 2",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/slcm/overdue-bills": {
   "get": {
    "summary": "list overdue-bills",
    "operationId": "list_overdue_bills_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post overdue student bills",
    "operationId": "action_overdue_bills_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/slcm/overdue-bills/{id}": {
   "get": {
    "summary": "get overdue-bills",
    "operationId": "get_overdue_bills_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put overdue student bills",
    "operationId": "action_overdue_bills_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete overdue student bills",
    "operationId": "action_overdue_bills_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/slcm/overdue-bills/apply": {
   "post": {
    "summary": "Apply",
    "operationId": "action_overdue_bills_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/slcm/overdue-bills/{id}/apply": {
   "post": {
    "summary": "Apply",
    "operationId": "action_overdue_bills_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/slcm/overdue-bills/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_overdue_bills_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}