PayFit

App · 15 actions

Read PayFit company, employee, contract, absence and payroll records.

Actions

ActionWhat it does
Get accounting dataGet accounting data from PayFit.
Get collaboratorGet collaborator from PayFit.
Get companyGet company from PayFit.
Get contractGet contract from PayFit.
Get payroll statusGet payroll status from PayFit.
List absencesList absences from PayFit.
List auto enrolment documentsList auto enrolment documents from PayFit.
List collaboratorsList collaborators from PayFit.
List contractsList contracts from PayFit.
List health insurance contractsList health insurance contracts from PayFit.
List income tax documentsList income tax documents from PayFit.
List meal vouchersList meal vouchers from PayFit.
List payslipsList payslips from PayFit.
List provident fund contractsList provident fund contracts from PayFit.
List worked timeList worked time from PayFit.

Get accounting data

Get accounting data from PayFit. France only.

Inputs

DatedatedateRequired
Choose any date in the payroll month to fetch.

Outputs

datalist
The response from PayFit.
Example output
{
  "data": [
    {
      "accountId": "example",
      "accountName": "example",
      "analyticCodes": [
        {
          "code": "example",
          "type": "example",
          "value": "example"
        }
      ],
      "contractId": "example",
      "credit": 1,
      "debit": 1,
      "employeeFullName": "example",
      "operationDate": "example"
    }
  ]
}

Get collaborator

Get collaborator from PayFit.

Inputs

Collaborator IDcollaborator_idtextRequired
The id of collaborator to fetch

Outputs

dataobject
The response from PayFit.
Example output
{
  "data": {
    "birthDate": "example",
    "birthName": "example",
    "contracts": [
      {
        "endDate": "example",
        "id": "example",
        "startDate": "example",
        "status": "ACTIVE"
      }
    ],
    "countryOfBirth": "example",
    "firstName": "example",
    "gender": "example",
    "id": "example",
    "lastName": "example",
    "matricule": "example",
    "nationalIdentificationNumber": "example",
    "nationalIdentificationType": "example",
    "nationality": "example",
    "secondLastName": "example",
    "terminationDate": "example"
  }
}

Get company

Get company from PayFit.

Inputs

None.

Outputs

dataobject
The response from PayFit.
Example output
{
  "data": {
    "address": "example",
    "city": "example",
    "country": "FR",
    "id": "example",
    "identificationNumber": "example",
    "name": "example",
    "nbActiveContracts": 1,
    "postalCode": "example"
  }
}

Get contract

Get contract from PayFit.

Inputs

Contract IDcontract_idtextRequired
The id of the contract

Outputs

dataobject
The response from PayFit.
Example output
{
  "data": {
    "collaboratorId": "example",
    "companyId": "example",
    "contractId": "example",
    "endDate": "example",
    "fullTimeEquivalent": 1,
    "isFullTime": true,
    "jobName": "example",
    "probationEndDate": "example",
    "standardWeeklyHours": 1,
    "startDate": "example",
    "status": "ACTIVE"
  }
}

Get payroll status

Get payroll status from PayFit.

Inputs

DatedatedateRequired
Choose any date in the payroll month to fetch.

Outputs

dataobject
The response from PayFit.
Example output
{
  "data": {
    "executionEndDate": "example",
    "status": "completed"
  }
}

List absences

List absences from PayFit.

Inputs

Next page tokennext_page_tokentext
The encoded pagination token
Max resultsmax_resultstext
Allows to define the maximum number of items to fetch at once. (Max: 50, Default: 10)Default: 10.
Contract IDcontract_idtext
Filter by contractId.
Statusstatustext
Filter by status. Defaults to `approved`. Multiple statuses can be provided, separated by commas, for example `status=approved,pending_approval`. If `all` is provided, all absences will be returned, regardless of their status. Possible statuses are: - approved - pending_approval - declined - cancelled - pending_cancellation
Begin datebegin_datedate
Defines the minimal begin date of absences to fetch. Every absences with params.beginDate <= absences.endDate will be included.
End dateend_datedate
Defines the maximal end date of absences to fetch. Every absences with params.endDate >= absences.startDate will be included.

Outputs

dataobject
The response from PayFit.
Example output
{
  "data": {
    "absences": [
      {
        "contractId": "example",
        "endDate": {},
        "id": "example",
        "startDate": {},
        "status": "approved",
        "type": "fr_adoption"
      }
    ],
    "meta": {
      "count": 1,
      "nextPageToken": "example"
    }
  }
}

List auto enrolment documents

List auto enrolment documents from PayFit. United Kingdom only.

Inputs

None.

Outputs

dataobject
The response from PayFit.
Example output
{
  "data": {
    "documents": [
      {
        "contractId": "example",
        "createdAt": "example",
        "documentId": "example",
        "documentUrl": "example",
        "month": "example",
        "year": "example"
      }
    ]
  }
}

List collaborators

List collaborators from PayFit.

Inputs

Next page tokennext_page_tokentext
The encoded pagination token
Max resultsmax_resultstext
Allows to define the maximum number of items to fetch at once. (Max: 50, Default: 10)Default: 10.
Emailemailtext
Filter by email. Important note: only emails in the collaborator's contracts are used for the search, so you can't filter by the login email.

Outputs

dataobject
The response from PayFit.
Example output
{
  "data": {
    "collaborators": [
      {
        "birthDate": "example",
        "birthName": "example",
        "contracts": [
          {}
        ],
        "countryOfBirth": "example",
        "firstName": "example",
        "gender": "example",
        "id": "example",
        "lastName": "example",
        "matricule": "example",
        "nationalIdentificationNumber": "example",
        "nationalIdentificationType": "example",
        "nationality": "example",
        "secondLastName": "example",
        "terminationDate": "example"
      }
    ],
    "meta": {
      "count": 1,
      "nextPageToken": "example"
    }
  }
}

List contracts

List contracts from PayFit.

Inputs

Next page tokennext_page_tokentext
The encoded pagination token
Max resultsmax_resultstext
Allows to define the maximum number of items to fetch at once. (Max: 50, Default: 10)Default: 10.
Include in progress contractsinclude_in_progress_contractstext
Allow to returns the in progress contracts (or in creation)Default: false.

Outputs

dataobject
The response from PayFit.
Example output
{
  "data": {
    "contracts": [
      {
        "birthName": "example",
        "collaboratorId": "example",
        "companyId": "example",
        "contractId": "example",
        "endDate": "example",
        "firstName": "example",
        "fullTimeEquivalent": 1,
        "isFullTime": true,
        "jobName": "example",
        "lastName": "example",
        "probationEndDate": "example",
        "standardWeeklyHours": 1,
        "startDate": "example",
        "status": "ACTIVE"
      }
    ],
    "meta": {
      "count": 1,
      "nextPageToken": "example"
    }
  }
}

List health insurance contracts

List health insurance contracts from PayFit. France only.

Inputs

None.

Outputs

dataobject
The response from PayFit.
Example output
{
  "data": {
    "contracts": [
      {
        "affiliatedContractIds": [
          "example"
        ],
        "baseDeCotisation": "example",
        "codeOption": "example",
        "codePopulation": "example",
        "idContrat": "example",
        "modeCalculCotisation": "example",
        "refContrat": "example",
        "tauxCotisationPatronale": 1,
        "tauxCotisationSalariale": 1
      }
    ]
  }
}

List income tax documents

List income tax documents from PayFit. United Kingdom only.

Inputs

None.

Outputs

dataobject
The response from PayFit.
Example output
{
  "data": {
    "documents": [
      {
        "contractId": "example",
        "createdAt": "example",
        "documentId": "example",
        "documentUrl": "example",
        "month": "example",
        "type": "P60",
        "year": "example"
      }
    ]
  }
}

List meal vouchers

List meal vouchers from PayFit. France only.

Inputs

DatedatedateRequired
Choose any date in the payroll month to fetch.
Next page tokennext_page_tokentext
The encoded pagination token
Max resultsmax_resultstext
Allows to define the maximum number of items to fetch at once. (Max: 50, Default: 10)Default: 10.

Outputs

dataobject
The response from PayFit.
Example output
{
  "data": {
    "mealVouchers": [
      {
        "collaboratorId": "example",
        "dayOffEligibility": true,
        "voucherAmount": 1,
        "voucherCompanyPartAmount": 1,
        "voucherEmployeePartAmount": 1,
        "vouchersCount": 1
      }
    ],
    "meta": {
      "count": 1,
      "nextPageToken": "example"
    }
  }
}

List payslips

List payslips from PayFit.

Inputs

Collaborator IDcollaborator_idtextRequired
The id of collaborator to fetch payslips

Outputs

dataobject
The response from PayFit.
Example output
{
  "data": {
    "payslips": [
      {
        "contractId": "example",
        "month": "example",
        "payslipId": "example",
        "payslipUrl": "example",
        "year": "example"
      }
    ]
  }
}

List provident fund contracts

List provident fund contracts from PayFit. France only.

Inputs

None.

Outputs

dataobject
The response from PayFit.
Example output
{
  "data": {
    "contracts": [
      {
        "affiliatedContractIds": [
          "example"
        ],
        "baseDeCotisation": "example",
        "codeOption": "example",
        "codePopulation": "example",
        "idContrat": "example",
        "modeCalculCotisation": "example",
        "refContrat": "example"
      }
    ]
  }
}

List worked time

List worked time from PayFit. France only.

Inputs

Next page tokennext_page_tokentext
The encoded pagination token
Max resultsmax_resultstext
Allows to define the maximum number of items to fetch at once. (Max: 50, Default: 10)Default: 10.
DatedatedateRequired
Choose any date in the payroll month to fetch.

Outputs

dataobject
The response from PayFit.
Example output
{
  "data": {
    "contracts": [
      {
        "contractId": "example",
        "effectiveWorkedTime": 1,
        "payedWorkedTime": 1,
        "workTimeUnit": "days"
      }
    ],
    "meta": {
      "count": 1,
      "nextPageToken": "example"
    }
  }
}

On this page