meta {
  name: Salary Advance Summary
  type: GET
  body: none
}

headers {
  Authorization: Bearer {{token}}
  X-Company-Id: {{company_uuid}}
  Accept: application/json
}

url: {{base_url}}/api/v1/payroll/salary-advances/summary?employee_id={{employee_id}}&month={{month}}&year={{year}}

params {
  employee_id: 123
  month: 6
  year: 2026
}

note: |
  The employee's advance position for the period: taken_so_far, the ceiling under
  each rule, the headroom left against each, and max_requestable — the largest
  amount a new request could ask for right now. Use it to stop doomed requests
  before they are sent.
