PayFit Company GetPayrollStatus

PayFit Company GetPayrollStatus

Certified

Get PayFit payroll status

Fetches GET /companies/{companyId}/payroll-status?date=YYYYMM. Returns the payroll status (completed or not_completed) and execution end timestamp for a given pay period. No scope is required beyond a valid company token.

yaml
type: io.kestra.plugin.payfit.company.GetPayrollStatus

Check whether a payroll period has completed

yaml
id: payfit_payroll_status
namespace: company.team

tasks:
  - id: status
    type: io.kestra.plugin.payfit.company.GetPayrollStatus
    apiKey: "{{ secret('PAYFIT_API_KEY') }}"
    date: "202610"
Installation

Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:

kestractl plugins get io.kestra.plugin:plugin-payfit --compatible-for $KESTRA_VERSION

For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.

Properties

API key

PayFit API key or OAuth access token, sent as a bearer token. Create a customer key in the PayFit app under Integrations > API Access, or use the access token returned by auth.AccessToken. Store this value in a Kestra secret.

Payroll period in YYYYMM format

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

Declares a dataset that a task writes outside of a database table, such as files in a data lake. system, location and format are stored in the metadata of the asset, so they can be matched with metadataQuery on an asset trigger.

Example

Register the dataset a task has written.

yaml
id: export_trips
namespace: company.data

tasks:
  - id: export
    type: io.kestra.plugin.core.log.Log
    message: Exporting trips
    assets:
      outputs:
        - type: io.kestra.plugin.ee.assets.Dataset
          id: trips
          system: s3
          location: s3://company-lake/trips/
          format: parquet
id*string
Min length1
Max length150
assetActionsarray
Max items100

The day-2 actions offered on this asset, each backing onto a flow.

Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.

flowId*string
Min length1

The id of the flow backing this action.

namespace*string
Min length1

The namespace of the flow backing this action.

labelstring

The label displayed on this action.

whenarray
Max items20

The conditions under which this action is offered.

All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.

descriptionstring
displayNamestring
formatstring

The format of the data, for example parquet or csv.

locationstring

Where the dataset is stored, for example a bucket prefix.

metadataobject
Default{}
namespacestring
Min length1
Max length150
partOf

The asset this one is part of.

At most one parent. Parent depth is limited by the service layer, not by this model.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

relatedarray
Max items50

Assets related to this one.

Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

systemstring

The system storing the dataset, for example s3 or gcs.

typeobject

Declares a deployment that groups the resources a flow provisions together. Other assets join a deployment by naming it in their partOf. A TtlTrigger targets deployments when no assetType is set.

Example

Register a deployment and the virtual machine it is made of.

yaml
id: provision_environment
namespace: company.infra

tasks:
  - id: provision
    type: io.kestra.plugin.core.log.Log
    message: Provisioning staging-eu
    assets:
      outputs:
        - type: io.kestra.plugin.ee.assets.Deployment
          id: staging-eu
          displayName: Staging EU
        - type: io.kestra.plugin.ee.assets.VM
          id: staging-eu-web-01
          provider: aws
          region: eu-west-1
          partOf:
            id: staging-eu
id*string
Min length1
Max length150
assetActionsarray
Max items100

The day-2 actions offered on this asset, each backing onto a flow.

Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.

flowId*string
Min length1

The id of the flow backing this action.

namespace*string
Min length1

The namespace of the flow backing this action.

labelstring

The label displayed on this action.

whenarray
Max items20

The conditions under which this action is offered.

All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
partOf

The asset this one is part of.

At most one parent. Parent depth is limited by the service layer, not by this model.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

relatedarray
Max items50

Assets related to this one.

Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

typeobject

Declares a single file that a task writes to a storage system. system and path are stored in the metadata of the asset, so they can be matched with metadataQuery on an asset trigger.

Example

Register the file a task has uploaded.

yaml
id: upload_report
namespace: company.finance

tasks:
  - id: upload
    type: io.kestra.plugin.core.log.Log
    message: Uploading the monthly report
    assets:
      outputs:
        - type: io.kestra.plugin.ee.assets.File
          id: monthly-report
          system: s3
          path: s3://company-reports/monthly.pdf
id*string
Min length1
Max length150
assetActionsarray
Max items100

The day-2 actions offered on this asset, each backing onto a flow.

Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.

flowId*string
Min length1

The id of the flow backing this action.

namespace*string
Min length1

The namespace of the flow backing this action.

labelstring

The label displayed on this action.

whenarray
Max items20

The conditions under which this action is offered.

All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
partOf

The asset this one is part of.

At most one parent. Parent depth is limited by the service layer, not by this model.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

pathstring

The path or URI of the file.

relatedarray
Max items50

Assets related to this one.

Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

systemstring

The storage system holding the file, for example s3 or sftp.

typeobject

Declares a database table that a task creates or loads. system, database, schema and name are stored in the metadata of the asset, so they can be matched with metadataQuery on an asset trigger.

Example

Register the table a task has created.

yaml
id: create_orders_table
namespace: company.data

tasks:
  - id: create
    type: io.kestra.plugin.core.log.Log
    message: Creating analytics.public.orders
    assets:
      outputs:
        - type: io.kestra.plugin.ee.assets.Table
          id: analytics.public.orders
          system: postgres
          database: analytics
          schema: public
          name: orders
id*string
Min length1
Max length150
assetActionsarray
Max items100

The day-2 actions offered on this asset, each backing onto a flow.

Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.

flowId*string
Min length1

The id of the flow backing this action.

namespace*string
Min length1

The namespace of the flow backing this action.

labelstring

The label displayed on this action.

whenarray
Max items20

The conditions under which this action is offered.

All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.

databasestring

The database the table belongs to.

descriptionstring
displayNamestring
metadataobject
Default{}
namestring

The name of the table.

namespacestring
Min length1
Max length150
partOf

The asset this one is part of.

At most one parent. Parent depth is limited by the service layer, not by this model.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

relatedarray
Max items50

Assets related to this one.

Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

schemastring

The schema the table belongs to.

systemstring

The database system, for example postgres, snowflake or bigquery.

typeobject

Declares a virtual machine that a task provisions or manages. provider, region and state are stored in the metadata of the asset, so they can be matched with metadataQuery on an asset trigger.

Example

Register the virtual machine a task has provisioned.

yaml
id: provision_vm
namespace: company.infra

tasks:
  - id: provision
    type: io.kestra.plugin.core.log.Log
    message: Provisioning web-01
    assets:
      outputs:
        - type: io.kestra.plugin.ee.assets.VM
          id: web-01
          displayName: Web server 01
          provider: aws
          region: eu-west-1
          state: running
id*string
Min length1
Max length150
assetActionsarray
Max items100

The day-2 actions offered on this asset, each backing onto a flow.

Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.

flowId*string
Min length1

The id of the flow backing this action.

namespace*string
Min length1

The namespace of the flow backing this action.

labelstring

The label displayed on this action.

whenarray
Max items20

The conditions under which this action is offered.

All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
partOf

The asset this one is part of.

At most one parent. Parent depth is limited by the service layer, not by this model.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

providerstring

The cloud provider or hypervisor hosting the virtual machine, for example aws, gcp or vsphere.

regionstring

The region or zone the virtual machine runs in.

relatedarray
Max items50

Assets related to this one.

Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

statestring

The state of the virtual machine, for example running or stopped.

typeobject
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

assetActionsarray
Max items100

The day-2 actions offered on this asset, each backing onto a flow.

Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.

flowId*string
Min length1

The id of the flow backing this action.

namespace*string
Min length1

The namespace of the flow backing this action.

labelstring

The label displayed on this action.

whenarray
Max items20

The conditions under which this action is offered.

All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
partOf

The asset this one is part of.

At most one parent. Parent depth is limited by the service layer, not by this model.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

relatedarray
Max items50

Assets related to this one.

Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

Defaulthttps://partner-api.payfit.com

Partner API base URL

Base URL of the PayFit Partner API. Defaults to https://partner-api.payfit.com.

Company ID

PayFit company identifier used in /companies/{companyId} paths. When omitted, the task calls POST https://oauth.payfit.com/introspect and uses company_id from the token.

Defaulthttps://oauth.payfit.com

OAuth base URL

Base URL used for token introspection and authorization-code exchange. Defaults to https://oauth.payfit.com.

HTTP client options

Optional HTTP client configuration applied to PayFit requests.

Definitions
allowFailedbooleanstring
Defaultfalse

If true, allow a failed response code (response code >= 400)

allowedResponseCodesarray
SubTypeinteger

List of response code allowed for this request

auth

The authentication to use.

passwordstring

The password for HTTP basic authentication.

typeobject
usernamestring

The username for HTTP basic authentication.

tokenstring

The token for bearer token authentication.

typeobject
passwordstring

The password for HTTP Digest authentication.

typeobject
usernamestring

The username for HTTP Digest authentication.

defaultCharsetstring
DefaultUTF-8

The default charset for the request.

enabledTcpExtendedKeepAlivebooleanstring
Defaulttrue

Whether to enable TCP Keep-Alive extended socket options (TCP_KEEPIDLE, TCP_KEEPINTERVAL, TCP_KEEPCOUNT).

Set to false when running on Windows workers, as these extended socket options are not supported by the Windows JDK and will cause connection failures.

followRedirectsbooleanstring
Defaulttrue

Whether redirects should be followed automatically.

httpVersionstring
DefaultHTTP_1_1
Possible Values
HTTP_1_1HTTP_2NEGOTIATE

The HTTP protocol version to use.

HTTP_1_1 (default) keeps the existing behavior. HTTP_2 forces HTTP/2: over TLS the server must support it (ALPN h2), and over plain HTTP it connects with prior knowledge. NEGOTIATE uses HTTP/2 when the server supports it through ALPN over TLS and falls back to HTTP/1.1 otherwise. HTTP/2 can keep long-running requests alive through intermediaries that close idle connections, when the server or a proxy in between sends PING frames, as the client sends none itself. With HTTP_2 or NEGOTIATE, the REQUEST_BODY and RESPONSE_BODY logs are not available.

logsarray
SubTypestring
Possible Values
REQUEST_HEADERSREQUEST_BODYRESPONSE_HEADERSRESPONSE_BODY

The enabled log.

proxy

The proxy configuration.

addressstring

The address of the proxy server.

passwordstring

The password for proxy authentication.

portintegerstring

The port of the proxy server.

typestring
DefaultDIRECT
Possible Values
DIRECTHTTPSOCKS

The type of proxy to use.

usernamestring

The username for proxy authentication.

retry

Retry strategy for HTTP requests.

retry is disabled by default.

Retry with a fixed delay between attempts.

interval*string
Formatduration
behaviorstring
DefaultRETRY_FAILED_TASK
Possible Values
RETRY_FAILED_TASKRETRY_FLOWABLECREATE_NEW_EXECUTION
maxAttemptsinteger
Minimum>= 1
maxDurationstring
Formatduration
typeobject
warningOnRetryboolean
Defaultfalse

Retry with exponentially increasing delays between attempts.

interval*string
Formatduration
maxInterval*string
Formatduration
behaviorstring
DefaultRETRY_FAILED_TASK
Possible Values
RETRY_FAILED_TASKRETRY_FLOWABLECREATE_NEW_EXECUTION
delayFactornumber
maxAttemptsinteger
Minimum>= 1
maxDurationstring
Formatduration
typeobject
warningOnRetryboolean
Defaultfalse

Retry with a random delay within a configurable range between attempts.

maxInterval*string
Formatduration
minInterval*string
Formatduration
behaviorstring
DefaultRETRY_FAILED_TASK
Possible Values
RETRY_FAILED_TASKRETRY_FLOWABLECREATE_NEW_EXECUTION
maxAttemptsinteger
Minimum>= 1
maxDurationstring
Formatduration
typeobject
warningOnRetryboolean
Defaultfalse
retryOnStatusCodesarray
SubTypeinteger
Default[502,503,504]

HTTP status codes that should be retried.

Used for idempotent methods (GET, HEAD) without their own entry in retryOnStatusCodesByMethod. Non-idempotent methods are never retried on a status code unless listed in retryOnStatusCodesByMethod. Defaults to 502, 503 and 504 for idempotent methods (GET, HEAD) only.

retryOnStatusCodesByMethodobject
SubTypearray

Per-HTTP-method overrides for which status codes should be retried.

Keys are HTTP methods (e.g. GET, POST). A method with no entry here falls back to retryOnStatusCodes. This lets a caller retry more broadly for safe, read-only methods (for example, every 5xx and a 429 for GET/HEAD) while keeping a narrower list for methods that write, where retrying a request that may have already been processed by the origin risks duplicating the effect. Example: {GET: [429, 500, 502, 503, 504], HEAD: [429, 500, 502, 503, 504]}.

retryableTransportFailureMethodsarray
SubTypestring
Default["GET","HEAD"]

HTTP methods for which any transport-level failure may be retried.

A transport-level failure is a connection or timeout error rather than an HTTP response (e.g. a read timeout or a connection reset mid-request). For a method listed here, any such failure is retried. Defaults to GET and HEAD HTTP methods.

ssl

The SSL request options

insecureTrustAllCertificatesbooleanstring

Whether to disable checking of the remote SSL certificate.

Only applies if no trust store is configured. Note: This makes the SSL connection insecure and should only be used for testing. If you are using a self-signed certificate, set up a trust store instead.

timeout

The timeout configuration.

connectTimeoutstring

The time allowed to establish a connection to the server before failing.

readIdleTimeoutstring
DefaultPT5M

The time allowed for a read connection to remain idle before closing it.

Defaultfalse

Whether the payroll for the given period is completed

Convenience boolean flag indicating whether status is completed.

Formatdate-time

Execution end timestamp of the payroll run for the period, if available

Execution end timestamp in UTC, null while the payroll is not completed.

Payroll status payload returned by PayFit

Definitions
additionalPropertiesobject
executionEndDatestring

Execution end date

ISO-8601 timestamp, null while the payroll is not completed.

statusstring

Payroll status

Either completed or not_completed.

Payroll status (completed or not_completed)

Either completed or not_completed.