# Flux Payroll API ## Docs - [Calculate Payroll (G2N)](https://docs.fluxpayroll.ai/api-reference/endpoint/mexico-payroll/calculate.md): Calculates gross-to-net payroll for an array of employees, including all Mexican taxes (ISR, IMSS, INFONAVIT). Returns detailed breakdown of employee and employer taxes for each employee. - [Calculate Payroll with Derived Earnings](https://docs.fluxpayroll.ai/api-reference/endpoint/mexico-payroll/calculate-with-derived-earnings.md): Calculates gross-to-net payroll by first generating earnings from time entries and compensation, then calculating all Mexican taxes. This endpoint accepts time entries (start/end times per day) and compensation (daily/weekly/monthly/annual) and automatically derives earnings like SALARY, DOUBLE_OVER… - [Generate Earnings](https://docs.fluxpayroll.ai/api-reference/endpoint/mexico-payroll/generate-earnings.md): Generates earnings (SALARY, DOUBLE_OVERTIME, TRIPLE_OVERTIME, SUNDAY_PREMIUM, VACATION_PREMIUM) from time entries and compensation data. This endpoint does NOT calculate taxes — it only returns the generated earnings and calculated daily wage for each employee. Useful for previewing earnings before… - [Get Social Security Contributions](https://docs.fluxpayroll.ai/api-reference/endpoint/mexico-payroll/get-contributions.md): Returns a list of all social security contributions for Mexico, including jurisdiction and agency details. Supports optional locale parameter for translated names and descriptions. - [Get Available Earnings](https://docs.fluxpayroll.ai/api-reference/endpoint/mexico-payroll/get-earnings.md): Returns a list of all earning types available for Mexico payroll calculations (e.g., SALARY, DOUBLE_OVERTIME, XMAS, VACATION_PREMIUM, etc.). Supports optional locale parameter for translated names and descriptions. - [Get Taxes](https://docs.fluxpayroll.ai/api-reference/endpoint/mexico-payroll/get-taxes.md): Returns a list of all taxes for Mexico, including jurisdiction and agency details. Supports optional locale parameter for translated names and descriptions. - [G2N API](https://docs.fluxpayroll.ai/api-reference/introduction.md) - [Welcome to Flux Payroll API!](https://docs.fluxpayroll.ai/getting-started/welcome.md) ## OpenAPI Specs - [openapi](https://docs.fluxpayroll.ai/api-reference/openapi.json)