Skip to main content
GET
/
api
/
mexico-payroll
/
earnings
Get all available earnings for Mexico
curl --request GET \
  --url https://api.staging.fluxpayroll.ai/api/mexico-payroll/earnings \
  --header 'x-api-key: <api-key>'
[
  {
    "key": "SALARY",
    "country": "MX",
    "name": "Salario Base",
    "description": "<string>",
    "requiresManualInput": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
]

Authorizations

x-api-key
string
header
required

Response

List of available earning types

key
string
required

Unique earning code

Example:

"SALARY"

country
string
required

ISO country code

Example:

"MX"

name
string
required

Display name of the earning

Example:

"Salario Base"

description
string
required

Detailed description of the earning type

requiresManualInput
boolean
required

Whether this earning requires manual input (true for bonuses, false for auto-derived earnings like overtime)

Example:

true

createdAt
string<date-time>

Creation timestamp

updatedAt
string<date-time>

Last update timestamp