{
  "openapi": "3.0.1",
  "info": {
    "title": "Colombia Payroll & Severance Calculator (Liquidación 2026)",
    "description": "Calculate Colombian labor settlements (liquidación), net salary, employer cost, overtime and Sunday surcharges, severance and contractor social security with 2026 rules (Ley 2466 de 2025, 42-hour week). Batch-ready API for HR software and AI agents.",
    "version": "0.1",
    "x-build-id": "bag3QUszCN5lTJAUq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ceibadata~colombia-payroll-calculator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ceibadata-colombia-payroll-calculator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/ceibadata~colombia-payroll-calculator/runs": {
      "post": {
        "operationId": "runs-sync-ceibadata-colombia-payroll-calculator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/ceibadata~colombia-payroll-calculator/run-sync": {
      "post": {
        "operationId": "run-sync-ceibadata-colombia-payroll-calculator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Calculation",
            "enum": [
              "liquidacion",
              "salario_neto",
              "costo_empleado",
              "horas_extras",
              "indemnizacion",
              "seguridad_social_independiente",
              "parametros"
            ],
            "type": "string",
            "description": "What to calculate. Liquidación = final settlement when a labor contract ends.",
            "default": "liquidacion"
          },
          "salary": {
            "title": "Monthly base salary (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "Basic monthly salary in Colombian pesos, without transport allowance. Used by every calculation except contractor social security."
          },
          "startDate": {
            "title": "Start date (fecha de ingreso)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "First day of the contract, YYYY-MM-DD. Needed for liquidación and indemnización."
          },
          "endDate": {
            "title": "End date (fecha de retiro)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Last day worked, YYYY-MM-DD. Needed for liquidación and indemnización."
          },
          "contractType": {
            "title": "Contract type",
            "enum": [
              "indefinido",
              "fijo",
              "obra"
            ],
            "type": "string",
            "description": "indefinido = open-ended, fijo = fixed term, obra = for a specific job or task.",
            "default": "indefinido"
          },
          "terminationReason": {
            "title": "Termination reason",
            "enum": [
              "renuncia",
              "despido_sin_justa_causa",
              "despido_con_justa_causa",
              "mutuo_acuerdo",
              "terminacion_plazo"
            ],
            "type": "string",
            "description": "Only dismissal without just cause adds the indemnización (CST art. 64).",
            "default": "renuncia"
          },
          "agreedEndDate": {
            "title": "Agreed end date of the contract",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only for fixed-term or specific-job contracts dismissed without just cause: the date the contract was supposed to end, YYYY-MM-DD."
          },
          "integralSalary": {
            "title": "Integral salary (salario integral)",
            "type": "boolean",
            "description": "Integral salary already includes cesantías, intereses and prima, so they are not paid separately.",
            "default": false
          },
          "variablePay": {
            "title": "Average monthly variable pay (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "Average salary-type variable pay (commissions, overtime, surcharges) that enters the base for benefits.",
            "default": 0
          },
          "vacationDaysTaken": {
            "title": "Vacation days already taken",
            "minimum": 0,
            "type": "integer",
            "description": "Business days of vacation already enjoyed during the whole contract (for liquidación).",
            "default": 0
          },
          "pendingSalaryDays": {
            "title": "Unpaid salary days",
            "minimum": 0,
            "type": "integer",
            "description": "Days of salary not yet paid at termination (for liquidación).",
            "default": 0
          },
          "cesantiasFrom": {
            "title": "Cesantías owed since",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional. Date from which cesantías are still owed. Defaults to January 1 of the termination year (or the start date if later), assuming previous years were deposited in a fund."
          },
          "primaFrom": {
            "title": "Prima owed since",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional. Date from which the prima de servicios is still owed. Defaults to the start of the current semester."
          },
          "date": {
            "title": "Reference date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Date whose rules apply to monthly calculations (net salary, employer cost, overtime, contractor). Defaults to today in Colombia."
          },
          "hours": {
            "title": "Overtime and surcharge hours",
            "type": "object",
            "description": "For horas_extras. Keys: HED (daytime overtime), HEN (night overtime), RN (night surcharge on ordinary hours), RDD (Sunday/holiday daytime), RDN (Sunday/holiday night), HEDD (Sunday/holiday daytime overtime), HEDN (Sunday/holiday night overtime). Values are hours."
          },
          "riskClass": {
            "title": "Occupational risk class (ARL)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "1 (lowest) to 5 (highest). Used for employer cost and contractor social security.",
            "default": 1
          },
          "employerExempt": {
            "title": "Employer exempt from health 8.5%, ICBF and SENA (ET art. 114-1)",
            "type": "boolean",
            "description": "True for companies (personas jurídicas) and qualifying employers, for workers earning under 10 minimum wages.",
            "default": true
          },
          "otherSalaryPay": {
            "title": "Other salary-type pay this month (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "For salario_neto: overtime, surcharges or commissions paid this month.",
            "default": 0
          },
          "nonSalaryPay": {
            "title": "Non-salary bonuses this month (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "For salario_neto: payments agreed as non-salary. The part above 40% of total pay adds to the contribution base (Ley 1393 de 2010).",
            "default": 0
          },
          "hasDependents": {
            "title": "Has economic dependents (for withholding tax)",
            "type": "boolean",
            "description": "For salario_neto: applies the dependents deduction of 10% of income, capped at 32 UVT per month.",
            "default": false
          },
          "monthlyIncome": {
            "title": "Contractor monthly income (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "For seguridad_social_independiente: gross monthly income from service contracts, before VAT."
          },
          "year": {
            "title": "Year",
            "minimum": 2025,
            "maximum": 2030,
            "type": "integer",
            "description": "For parametros: the year whose official values you want (2025 or 2026)."
          },
          "batch": {
            "title": "Batch of calculations (advanced)",
            "type": "array",
            "description": "Optional list of calculation objects with the same field names as above, for example [{\"operation\":\"salario_neto\",\"salary\":3500000},{\"operation\":\"liquidacion\",\"salary\":2000000,\"startDate\":\"2025-03-01\",\"endDate\":\"2026-10-23\"}]. When present, the single-calculation fields are ignored. Each item may carry an \"id\" that is copied to its output."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}