# Global Employment Rules API > Calculate UK statutory notice, redundancy pay, working-time prechecks, US federal/California overtime, and UK gender pay gap figures from caller-supplied facts and published rules. Each paid operation uses a fixed USDC price on Base with the x402 exact scheme. Unpaid GET, HEAD, and POST return 402 payment terms (POST validates the body only after payment terms are satisfied). A request that carries payment-signature is not yet charged: settlement happens only after a successful (2xx) result. HTTP 4xx/5xx are not charged. Coverage bodies with status complete, partial, or failed all return HTTP 200 and are charged at the full listed price. Settled 2xx responses include a payment-response header; 4xx/5xx do not. Follow https://www.brainiac.software/agent-instructions.txt for install, payment pins, idempotency, and billing rules. - Product: https://www.brainiac.software/api/global-employment - Docs: https://www.brainiac.software/api/global-employment/docs - OpenAPI: https://www.brainiac.software/api/global-employment/openapi.json - Contact: support@brainiac.software (https://www.brainiac.software/contact) ## Operations ### POST /api/v1/global-employment/uk-statutory-notice-period $0.03 USDC. Calculate the minimum statutory employer notice period in Great Britain from continuous employment dates, and compare it with caller-supplied contractual notice. Inputs: startDate, noticeDate, contractualNoticeWeeks? Docs: https://www.brainiac.software/api/global-employment/docs#global-employment-uk-statutory-notice-period Example request: ```json { "startDate": "2019-03-01", "noticeDate": "2026-11-14", "contractualNoticeWeeks": 4 } ``` Example response: ```json { "completedYears": 7, "statutoryWeeks": 7, "applicableWeeks": 7, "reason": "statutory_exceeds_contract", "sources": [ { "source": "GOV.UK Redundancy: your rights - notice periods", "url": "https://www.gov.uk/redundancy-your-rights/notice-periods", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are statutory calculations and prechecks for human review, not legal, tax, payroll, or HR advice.", "Only the cited published rules are encoded; contractual, collective-agreement, sector-specific, and local exceptions ar…" ] } ``` ### POST /api/v1/global-employment/uk-statutory-redundancy-pay $0.04 USDC. Calculate Great Britain statutory redundancy pay from age, service, redundancy date, and weekly pay using the 2026 cap and 20-year service limit. Inputs: dateOfBirth, startDate, redundancyDate, weeklyPayPence Docs: https://www.brainiac.software/api/global-employment/docs#global-employment-uk-statutory-redundancy-pay Example request: ```json { "dateOfBirth": "1966-05-01", "startDate": "2001-01-15", "redundancyDate": "2026-11-14", "weeklyPayPence": 80000 } ``` Example response: ```json { "eligible": true, "countedYears": 20, "weeksEntitlement": 29.5, "cappedWeeklyPayPence": 75100, "amountPence": 2215450, "breakdown": [ { "from": "2006-11-14", "to": "2007-11-14", "ageInYear": 40, "multiplier": 1 }, { "from": "2007-11-14", "to": "2008-11-14", "ageInYear": 41, "multiplier": 1.5 } ], "sources": [ { "source": "GOV.UK Redundancy: your rights - statutory redundancy pay", "url": "https://www.gov.uk/redundancy-your-rights/redundancy-pay", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are statutory calculations and prechecks for human review, not legal, tax, payroll, or HR advice.", "Only the cited published rules are encoded; contractual, collective-agreement, sector-specific, and local exceptions ar…" ] } ``` ### POST /api/v1/global-employment/uk-working-time-check $0.04 USDC. Check caller-supplied shifts against UK 48-hour average, under-18 limits, 20-minute breaks, daily rest, and weekly or fortnightly rest rules. Inputs: shifts, referenceWeeks?, optedOut?, under18? Docs: https://www.brainiac.software/api/global-employment/docs#global-employment-uk-working-time-check Example request: ```json { "shifts": [ { "start": "2026-11-02T08:00", "end": "2026-11-02T17:00", "breakMinutes": 30 } ], "referenceWeeks": 17, "optedOut": false, "under18": false } ``` Example response: ```json { "averageWeeklyHours": 0.5, "violations": [], "ok": true, "sources": [ { "source": "GOV.UK Maximum weekly working hours", "url": "https://www.gov.uk/maximum-weekly-working-hours", "retrievedAt": "2026-11-14", "status": "ok" }, { "source": "GOV.UK Rest breaks at work", "url": "https://www.gov.uk/rest-breaks-work", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are statutory calculations and prechecks for human review, not legal, tax, payroll, or HR advice.", "Only the cited published rules are encoded; contractual, collective-agreement, sector-specific, and local exceptions ar…" ] } ``` ### POST /api/v1/global-employment/us-overtime-calculate $0.04 USDC. Calculate federal FLSA weekly overtime, or California daily, seventh-day, and weekly overtime, from one caller-supplied workweek. Inputs: jurisdiction, hourlyRateCents, days Docs: https://www.brainiac.software/api/global-employment/docs#global-employment-us-overtime-calculate Example request: ```json { "jurisdiction": "california", "hourlyRateCents": 2000, "days": [ { "date": "2026-11-02", "hours": 9 }, { "date": "2026-11-03", "hours": 9 }, { "date": "2026-11-04", "hours": 9 }, { "date": "2026-11-05", "hours": 9 }, { "date": "2026-11-06", "hours": 9 }, { "date": "2026-11-07", "hours": 9 }, { "date": "2026-11-08", "hours": 9 } ] } ``` Example response: ```json { "regularHours": 40, "overtime15Hours": 22, "doubleTimeHours": 1, "regularPayCents": 80000, "overtimePayCents": 66000, "doubleTimePayCents": 4000, "totalCents": 150000, "sources": [ { "source": "29 U.S.C. 207(a) and 29 CFR 778.107, FLSA overtime", "url": "https://www.ecfr.gov/current/title-29/subtitle-B/chapter-V/subchapter-B/part-778/subpart-B/section-778.107", "retrievedAt": "2026-11-14", "status": "ok" }, { "source": "California DLSE overtime FAQ", "url": "https://www.dir.ca.gov/dlse/faq_overtime.htm", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are statutory calculations and prechecks for human review, not legal, tax, payroll, or HR advice.", "Only the cited published rules are encoded; contractual, collective-agreement, sector-specific, and local exceptions ar…" ] } ``` ### POST /api/v1/global-employment/gender-pay-gap-calc $0.04 USDC. Compute UK gender pay gap mean, median, bonus, bonus proportion, quartile, headcount, and reporting-threshold figures from caller-supplied employee-level data. Inputs: snapshotDate, employees Docs: https://www.brainiac.software/api/global-employment/docs#global-employment-gender-pay-gap-calc Example request: ```json { "snapshotDate": "2026-04-05", "employees": [ { "sex": "male", "fullPayRelevant": true, "hourlyPayPence": 1000, "bonusPence": 0 }, { "sex": "male", "fullPayRelevant": true, "hourlyPayPence": 2000, "bonusPence": 0 }, { "sex": "female", "fullPayRelevant": true, "hourlyPayPence": 1000, "bonusPence": 0 }, { "sex": "female", "fullPayRelevant": true, "hourlyPayPence": 1000, "bonusPence": 0 } ] } ``` Example response: ```json { "meanHourlyGapPct": 33.3, "medianHourlyGapPct": 33.3, "meanBonusGapPct": null, "medianBonusGapPct": null, "receivingBonusPct": { "male": 0, "female": 0 }, "quartiles": [ { "quartile": "lower", "malePct": 50, "femalePct": 50 }, { "quartile": "lower_middle", "malePct": 0, "femalePct": 100 }, "…" ], "headcount": 4, "reportingRequired": false, "sources": [ { "source": "GOV.UK Gender pay gap reporting: make your calculations", "url": "https://www.gov.uk/guidance/gender-pay-gap-reporting-make-your-calculations", "retrievedAt": "2026-11-14", "status": "ok" }, { "source": "Equality Act 2010 (Gender Pay Gap Information) Regulations 2017", "url": "https://www.legislation.gov.uk/uksi/2017/172/contents/made", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are statutory calculations and prechecks for human review, not legal, tax, payroll, or HR advice.", "Only the cited published rules are encoded; contractual, collective-agreement, sector-specific, and local exceptions ar…" ] } ```