> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kombo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Schedule one-time deductions

> Schedule 1 to 1,000 one-time deductions. Kombo checks and saves them right away, answers for each one. The next sync writes them to the payroll tool.

> [!WARNING]
>
> **Closed Beta Feature:** This endpoint is now in closed beta. Please reach out to your account manager or [support](mailto:support@kombo.dev).

Each item is one deduction for one employment. One request can mix employees from different pay groups and pay schedules: you never send a pay group, Kombo takes it from the employment.

Kombo answers with one result per item, each with the `origin_id` you sent and either the saved deduction in `data` or an `error`. The results don’t have to be in the order you sent them, so match them by `origin_id`. Items with `data` are saved even if other items in the same request have an `error`.

> [!NOTE]
>
> `data` means Kombo has your deduction, not the payroll tool. Kombo writes it with the next sync, by default within 3 hours, or right away when you call [`POST /hris/force-sync`](https://docs.kombo.dev/hris/v1/post-force-sync). It can still fail there. Check the status with [`GET /payroll/one-time-deductions`](https://docs.kombo.dev/payroll/v1/get-one-time-deductions).

Safe to retry: sending a known `origin_id` with the same values returns the existing deduction in `data` and saves nothing twice.

[Write deductions guide](https://docs.kombo.dev/payroll/guides/write-deductions.md)


## OpenAPI

````yaml POST /payroll/one-time-deductions/schedule
openapi: 3.1.0
info:
  title: Kombo API
  version: 1.0.0
servers:
  - url: https://api.kombo.dev/v1
    description: Kombo EU API
  - url: https://api.us.kombo.dev/v1
    description: Kombo US API
  - url: https://api.ca.kombo.dev/v1
    description: Kombo CA API
security:
  - ApiKey: []
tags:
  - name: General
  - name: Kombo Connect
    description: >-
      Endpoints for Kombo Connect, our end-user-facing flow for setting up new
      integrations.
  - name: Unified HRIS API
    description: Unified endpoints to access all the HR concepts you might need.
  - name: Unified ATS API
    description: Unified endpoints to access all the ATS concepts you might need.
  - name: Unified ATS (Assessment & Background Check) API
    description: >-
      Unified endpoints to operate Assessments and Background Checks for many
      applicant tracking systems.
  - name: Unified LMS API
    description: Unified endpoints to access all the LMS concepts you might need.
  - name: Unified Payroll API
    description: >-
      Unified endpoints to read payroll data and write deductions into payroll
      tools.
  - name: AI Apply
    description: Endpoints for AI-powered job application features.
  - name: Custom Endpoints
    description: Custom integration-specific endpoints.
paths:
  /payroll/one-time-deductions/schedule:
    post:
      tags:
        - Unified Payroll API
      summary: Schedule one-time deductions
      description: >-
        Schedule 1 to 1,000 one-time deductions. Kombo checks and saves them
        right away, answers for each one. The next sync writes them to the
        payroll tool.




        <Warning>**Closed Beta Feature:** This endpoint is now in closed beta.
        Please reach out to your account manager or
        [support](mailto:support@kombo.dev).</Warning>




        Each item is one deduction for one employment. One request can mix
        employees from different pay groups and pay schedules: you never send a
        pay group, Kombo takes it from the employment.


        Kombo answers with one result per item, each with the `origin_id` you
        sent and either the saved deduction in `data` or an `error`. The results
        don’t have to be in the order you sent them, so match them by
        `origin_id`. Items with `data` are saved even if other items in the same
        request have an `error`.


        <Note>`data` means Kombo has your deduction, not the payroll tool. Kombo
        writes it with the next sync, by default within 3 hours, or right away
        when you call [`POST /hris/force-sync`](/hris/v1/post-force-sync). It
        can still fail there. Check the status with [`GET
        /payroll/one-time-deductions`](/payroll/v1/get-one-time-deductions).</Note>


        Safe to retry: sending a known `origin_id` with the same values returns
        the existing deduction in `data` and saves nothing twice.


        [Write deductions guide](/payroll/guides/write-deductions)
      operationId: PostPayrollOneTimeDeductionsSchedule
      parameters:
        - in: header
          name: X-Integration-Id
          schema:
            type: string
          description: ID of the integration you want to interact with.
          example: paycor:HWUTwvyx2wLoSUHphiWVrp28
          required: true
      requestBody:
        description: POST /payroll/one-time-deductions/schedule Request body
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/PostPayrollOneTimeDeductionsScheduleRequestBody
            examples:
              example1:
                value:
                  items:
                    - origin_id: inv-2026-11-emp-123
                      deduction:
                        employment_id: 3Rr5mVhEoJ4zQJMDfRfkYcFi
                        deduction_type: gym_membership
                        employee_contribution:
                          type: FLAT
                          amount: 19.9
                        effective_at:
                          type: NEXT_AVAILABLE_PAY_RUN
                    - origin_id: inv-2026-11-emp-456
                      deduction:
                        employment_id: 9mKq2TfWxB7nLpYc4ZsDhEuA
                        deduction_type: gym_membership
                        employee_contribution:
                          type: FLAT
                          amount: 29.9
                        effective_at:
                          type: NEXT_AVAILABLE_PAY_RUN
      responses:
        '200':
          description: POST /payroll/one-time-deductions/schedule Positive response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostPayrollOneTimeDeductionsSchedulePositiveResponse
              examples:
                example1:
                  value:
                    status: success
                    data:
                      results:
                        - origin_id: inv-2026-11-emp-123
                          data:
                            id: 26vafvWSRmbhNcxJYqjCzuJg
                            origin_id: inv-2026-11-emp-123
                            remote_id: null
                            employment_id: 3Rr5mVhEoJ4zQJMDfRfkYcFi
                            deduction_type: gym_membership
                            employee_contribution:
                              type: FLAT
                              amount: 19.9
                              currency: EUR
                            deduction_code:
                              id: Bq9zVXhSPZ4nEmT6yWkLdRc2
                              remote_id: GYM01
                              name: Wellness benefit 1
                            pay_run:
                              id: 4nQx8sLbWm2TcRvYk7HdJpZe
                              start_date: '2026-12-01'
                              end_date: '2026-12-31'
                              pay_date: '2026-12-31'
                            status: QUEUED
                            error: null
                            created_at: '2026-12-02T10:12:00.000Z'
                            updated_at: '2026-12-02T10:12:00.000Z'
                        - origin_id: inv-2026-11-emp-456
                          error:
                            code: PAYROLL.EMPLOYMENT_NOT_FOUND
                            title: >-
                              The employment could not be found or has no pay
                              run left.
                            message: >-
                              No employment with this ID exists for the
                              integration.
                            log_url: >-
                              https://app.kombo.dev/my-prod/logs?interactionId=123456
        default:
          $ref: '#/components/responses/ErrorResponseHRIS'
components:
  schemas:
    PostPayrollOneTimeDeductionsScheduleRequestBody:
      type: object
      properties:
        items:
          type: array
          items:
            type: object
            properties:
              origin_id:
                type: string
                minLength: 1
                maxLength: 255
                pattern: ^[A-Za-z0-9\-_.:]+$
                description: >-
                  Your own unique ID for this deduction, for example your
                  invoice line per employee and month. Kombo matches it per
                  integration to protect against double deductions. 1 to 255
                  characters: letters, numbers, `-`, `_`, `.` and `:`.
              deduction:
                type: object
                properties:
                  employment_id:
                    type: string
                    description: >-
                      The Kombo ID of the employment the deduction is for. You
                      find it in the employee’s employments when you read
                      employees through Kombo.
                  deduction_type:
                    type: string
                    description: >-
                      Key of a deduction type from the Kombo dashboard, for
                      example `gym_membership`. The mapping for this connection
                      and the employee’s company or country decides the
                      deduction code and currency.
                  employee_contribution:
                    type: object
                    properties:
                      type:
                        type: string
                        const: FLAT
                        description: >-
                          How the amount is defined. Always `FLAT`: a fixed
                          amount.
                      amount:
                        type: number
                        format: double
                        exclusiveMinimum: 0
                        description: >-
                          The amount to deduct, for example `19.90`. Must be
                          greater than 0, with at most 2 decimal places. You
                          don’t send a currency: it comes from the deduction
                          code mapping.
                        multipleOf: 0.01
                    required:
                      - type
                      - amount
                    description: The amount taken from the employee’s pay.
                  effective_at:
                    type: object
                    properties:
                      type:
                        type: string
                        const: NEXT_AVAILABLE_PAY_RUN
                        description: >-
                          The employee’s next regular pay run that still takes
                          deductions. Off-cycle runs are never picked.
                    required:
                      - type
                    description: >-
                      Which pay run the deduction goes into. There’s no date
                      option on purpose: Kombo picks the pay run and returns it
                      in `pay_run`.
                required:
                  - employment_id
                  - deduction_type
                  - employee_contribution
                  - effective_at
                description: The deduction itself.
            required:
              - origin_id
              - deduction
          minItems: 1
          maxItems: 1000
          description: >-
            1 to 1000 deductions. Each `origin_id` must be unique within one
            request. If you have more, split them over several requests.
      required:
        - items
    PostPayrollOneTimeDeductionsSchedulePositiveResponse:
      type: object
      properties:
        status:
          type: string
          const: success
        data:
          type: object
          properties:
            results:
              type: array
              items:
                anyOf:
                  - type: object
                    properties:
                      origin_id:
                        type: string
                        minLength: 1
                        maxLength: 255
                        pattern: ^[A-Za-z0-9\-_.:]+$
                        description: >-
                          Your own unique ID for this deduction, for example
                          your invoice line per employee and month. Kombo
                          matches it per integration to protect against double
                          deductions. 1 to 255 characters: letters, numbers,
                          `-`, `_`, `.` and `:`.
                      data:
                        type: object
                        properties:
                          id:
                            type: string
                            description: >-
                              The globally unique ID of this object generated by
                              Kombo. We recommend using this as a stable primary
                              key for syncing.
                          origin_id:
                            type: string
                            minLength: 1
                            maxLength: 255
                            pattern: ^[A-Za-z0-9\-_.:]+$
                            description: >-
                              Your own unique ID for this deduction, for example
                              your invoice line per employee and month. Kombo
                              matches it per integration to protect against
                              double deductions. 1 to 255 characters: letters,
                              numbers, `-`, `_`, `.` and `:`.
                          remote_id:
                            type:
                              - string
                              - 'null'
                            description: >-
                              The deduction’s ID in the payroll tool. `null`
                              until Kombo writes it, or if the tool doesn’t
                              return one.
                          employment_id:
                            type: string
                            description: >-
                              The Kombo ID of the employment the deduction is
                              for.
                          deduction_type:
                            type: string
                            description: >-
                              The deduction type key you sent, for example
                              `gym_membership`.
                          employee_contribution:
                            type: object
                            properties:
                              type:
                                type: string
                                const: FLAT
                                description: >-
                                  How the amount is defined. Always `FLAT`: a
                                  fixed amount.
                              amount:
                                type: number
                                format: double
                                exclusiveMinimum: 0
                                description: >-
                                  The amount to deduct, for example `19.90`.
                                  Must be greater than 0, with at most 2 decimal
                                  places. You don’t send a currency: it comes
                                  from the deduction code mapping.
                                multipleOf: 0.01
                              currency:
                                type: string
                                description: >-
                                  ISO 4217 currency code, taken from the
                                  deduction code mapping.
                            required:
                              - type
                              - amount
                              - currency
                            description: The amount taken from the employee’s pay.
                          deduction_code:
                            type: object
                            properties:
                              id:
                                type: string
                                description: >-
                                  The globally unique ID of this object
                                  generated by Kombo. We recommend using this as
                                  a stable primary key for syncing.
                              remote_id:
                                type: string
                                description: >-
                                  The ID of the deduction code in the payroll
                                  tool.
                              name:
                                type: string
                                description: The name of the deduction code.
                            required:
                              - id
                              - remote_id
                              - name
                            description: >-
                              The deduction code in the payroll tool that Kombo
                              writes the deduction with. It comes from your
                              deduction type mapping for this connection and the
                              employee’s company or country.
                          pay_run:
                            type: object
                            properties:
                              id:
                                type: string
                                description: >-
                                  The globally unique ID of this object
                                  generated by Kombo. We recommend using this as
                                  a stable primary key for syncing.
                              start_date:
                                type: string
                                format: date
                                pattern: ^\d{4}-\d{2}-\d{2}$
                                description: First day of the pay period (`yyyy-MM-dd`).
                              end_date:
                                type: string
                                format: date
                                pattern: ^\d{4}-\d{2}-\d{2}$
                                description: Last day of the pay period (`yyyy-MM-dd`).
                              pay_date:
                                type: string
                                format: date
                                pattern: ^\d{4}-\d{2}-\d{2}$
                                description: The day employees get paid (`yyyy-MM-dd`).
                            required:
                              - id
                              - start_date
                              - end_date
                              - pay_date
                            description: >-
                              The pay run Kombo plans to write the deduction
                              into, or wrote it into. Set as soon as Kombo
                              accepts the deduction, and it doesn’t change: if
                              Kombo misses the cutoff, the deduction fails with
                              `PAYROLL.CUTOFF_MISSED` instead of moving to the
                              next pay run.
                          status:
                            type: string
                            enum:
                              - QUEUED
                              - PENDING_APPROVAL
                              - PENDING
                              - PROCESSED
                              - DECLINED
                              - FAILED
                              - CANCELLED
                            description: >-
                              Where the deduction is right now:

                              - `QUEUED`: saved in Kombo, written to the payroll
                              tool with the next sync. Can be cancelled.

                              - `PENDING_APPROVAL`: in the payroll tool, waiting
                              for HR to approve it. Only in tools where approval
                              is turned on.

                              - `PENDING`: in the payroll tool, scheduled for
                              its pay run. HR can still change or remove it
                              there.

                              - `PROCESSED`: a finished pay run processed it.
                              Kombo’s part is done.

                              - `DECLINED`: HR declined it while it was
                              `PENDING_APPROVAL`. Nothing is taken.

                              - `FAILED`: it never got into a pay run, for
                              example because the tool rejected it or Kombo
                              missed the cutoff. `error` tells you why. Can be
                              cancelled.

                              - `CANCELLED`: you cancelled it before Kombo wrote
                              it. Only returned when you filter for it.
                          error:
                            type:
                              - object
                              - 'null'
                            properties:
                              code:
                                type: string
                                enum:
                                  - PAYROLL.DEDUCTION_TYPE_NOT_CONFIGURED
                                  - PAYROLL.CUTOFF_MISSED
                                  - PAYROLL.EMPLOYMENT_NOT_FOUND
                                  - PAYROLL.ORIGIN_ID_CONFLICT
                                  - PAYROLL.DEDUCTION_REMOVED_IN_TOOL
                                  - PAYROLL.DEDUCTION_ALREADY_WRITTEN
                                  - PAYROLL.DEDUCTION_LOCKED
                                  - PAYROLL.DEDUCTION_NOT_FOUND
                                  - REMOTE.INPUT_INVALID
                              title:
                                type:
                                  - string
                                  - 'null'
                              message:
                                type: string
                              log_url:
                                type:
                                  - string
                                  - 'null'
                            required:
                              - code
                              - title
                              - message
                              - log_url
                            description: >-
                              Only set for `FAILED` deductions, otherwise
                              `null`.
                          created_at:
                            description: When Kombo saved the deduction.
                          updated_at:
                            description: When the deduction last changed.
                        required:
                          - id
                          - origin_id
                          - remote_id
                          - employment_id
                          - deduction_type
                          - employee_contribution
                          - deduction_code
                          - pay_run
                          - status
                          - error
                          - created_at
                          - updated_at
                        description: >-
                          Kombo has the deduction. Same shape as the list
                          endpoint. For a new deduction, `status` is `QUEUED`,
                          with `deduction_code` and `pay_run` already set. If
                          you sent a known `origin_id` with the same values,
                          this is the existing deduction with its current
                          status.
                        examples:
                          - id: 26vafvWSRmbhNcxJYqjCzuJg
                            origin_id: inv-2026-11-emp-123
                            remote_id: PI-000123
                            employment_id: 3Rr5mVhEoJ4zQJMDfRfkYcFi
                            deduction_type: gym_membership
                            employee_contribution:
                              type: FLAT
                              amount: 19.9
                              currency: EUR
                            deduction_code:
                              id: Bq9zVXhSPZ4nEmT6yWkLdRc2
                              remote_id: GYM01
                              name: Wellness benefit 1
                            pay_run:
                              id: 4nQx8sLbWm2TcRvYk7HdJpZe
                              start_date: '2026-12-01'
                              end_date: '2026-12-31'
                              pay_date: '2026-12-31'
                            status: PENDING
                            error: null
                            created_at: '2026-12-02T10:12:00.000Z'
                            updated_at: '2026-12-02T13:04:51.000Z'
                    required:
                      - origin_id
                      - data
                  - type: object
                    properties:
                      origin_id:
                        type: string
                        minLength: 1
                        maxLength: 255
                        pattern: ^[A-Za-z0-9\-_.:]+$
                        description: >-
                          Your own unique ID for this deduction, for example
                          your invoice line per employee and month. Kombo
                          matches it per integration to protect against double
                          deductions. 1 to 255 characters: letters, numbers,
                          `-`, `_`, `.` and `:`.
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - PAYROLL.DEDUCTION_TYPE_NOT_CONFIGURED
                              - PAYROLL.CUTOFF_MISSED
                              - PAYROLL.EMPLOYMENT_NOT_FOUND
                              - PAYROLL.ORIGIN_ID_CONFLICT
                              - PAYROLL.DEDUCTION_REMOVED_IN_TOOL
                              - PAYROLL.DEDUCTION_ALREADY_WRITTEN
                              - PAYROLL.DEDUCTION_LOCKED
                              - PAYROLL.DEDUCTION_NOT_FOUND
                              - REMOTE.INPUT_INVALID
                          title:
                            type:
                              - string
                              - 'null'
                          message:
                            type: string
                          log_url:
                            type:
                              - string
                              - 'null'
                        required:
                          - code
                          - title
                          - message
                          - log_url
                        description: Nothing was saved for this item. The `code` says why.
                    required:
                      - origin_id
                      - error
              description: >-
                One result per item, not necessarily in the order you sent them.
                Match them by `origin_id`. Each result has either `data` or
                `error`.
          required:
            - results
          examples:
            - results:
                - origin_id: inv-2026-11-emp-123
                  data:
                    id: 26vafvWSRmbhNcxJYqjCzuJg
                    origin_id: inv-2026-11-emp-123
                    remote_id: null
                    employment_id: 3Rr5mVhEoJ4zQJMDfRfkYcFi
                    deduction_type: gym_membership
                    employee_contribution:
                      type: FLAT
                      amount: 19.9
                      currency: EUR
                    deduction_code:
                      id: Bq9zVXhSPZ4nEmT6yWkLdRc2
                      remote_id: GYM01
                      name: Wellness benefit 1
                    pay_run:
                      id: 4nQx8sLbWm2TcRvYk7HdJpZe
                      start_date: '2026-12-01'
                      end_date: '2026-12-31'
                      pay_date: '2026-12-31'
                    status: QUEUED
                    error: null
                    created_at: '2026-12-02T10:12:00.000Z'
                    updated_at: '2026-12-02T10:12:00.000Z'
                - origin_id: inv-2026-11-emp-456
                  error:
                    code: PAYROLL.EMPLOYMENT_NOT_FOUND
                    title: The employment could not be found or has no pay run left.
                    message: No employment with this ID exists for the integration.
                    log_url: https://app.kombo.dev/my-prod/logs?interactionId=123456
      required:
        - status
        - data
  responses:
    ErrorResponseHRIS:
      description: The standard error response with the error codes for the HRIS use case.
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: object
                properties:
                  code:
                    type:
                      - string
                      - 'null'
                    enum:
                      - PLATFORM.RATE_LIMIT_EXCEEDED
                      - PLATFORM.CONCURRENCY_LIMIT_EXCEEDED
                      - PLATFORM.INTEGRATION_NOT_FOUND
                      - PLATFORM.INPUT_INVALID
                      - PLATFORM.UNKNOWN_ERROR
                      - PLATFORM.IP_NOT_WHITELISTED
                      - PLATFORM.AUTHENTICATION_INVALID
                      - PLATFORM.TASK_TIMED_OUT
                      - INTEGRATION.PERMISSION_MISSING
                      - INTEGRATION.AUTHENTICATION_INVALID
                      - INTEGRATION.QA_FAILED
                      - INTEGRATION.SETUP_SYNC_PENDING
                      - INTEGRATION.SETUP_INCOMPLETE
                      - INTEGRATION.INACTIVE
                      - INTEGRATION.MODEL_NOT_AVAILABLE
                      - INTEGRATION.MODEL_DISABLED
                      - INTEGRATION.ACTION_NOT_AVAILABLE
                      - INTEGRATION.ACTION_DISABLED
                      - REMOTE.SERVICE_UNAVAILABLE
                      - REMOTE.RATE_LIMIT_EXCEEDED
                      - REMOTE.INPUT_INVALID
                      - REMOTE.UNKNOWN_HTTP_ERROR
                      - HRIS.STAFFING_ENTITY_CLOSED
                      - HRIS.EMPLOYEE_ALREADY_EXISTS
                    example: HRIS.EMPLOYEE_ALREADY_EXISTS
                    description: >-
                      Some errors include an error code that can be used to
                      identify their cause. See the [Error Handling
                      Docs](https://docs.kombo.dev/guides/errors) for more
                      information. For your error handling logic please use the
                      error `code` instead of other properties (e.g. message,
                      http status code, ...).
                  title:
                    type:
                      - string
                      - 'null'
                    description: A static, human-readable label.
                  message:
                    type: string
                    description: >-
                      A dynamic, detailed description of what went wrong in this
                      specific instance.
                  log_url:
                    type:
                      - string
                      - 'null'
                    format: uri
                    description: >-
                      The log page in the Kombo UI lists every interaction with
                      full details. If you need assistance, share that link with
                      our support team.
                required:
                  - code
                  - title
                  - message
                  - log_url
                description: Error details with structured code for programmatic handling.
            required:
              - status
              - error
          examples:
            Error Response:
              description: >-
                When building error handling logic, always use the `code` field
                to identify specific error types programmatically. See the
                complete list of error codes in the
                [docs](https://docs.kombo.dev/guides/errors).
              value:
                status: error
                error:
                  code: INTEGRATION.MODEL_NOT_AVAILABLE
                  title: >-
                    This data model isn't supported for the selected
                    integration.
                  message: >-
                    The "employees" model is not yet available for Greenhouse.
                    Please reach out to Kombo if you need this functionality.
                  log_url: https://app.kombo.dev/my-prod/logs?interactionId=123456
            Minimal Error Response:
              description: >-
                The "message" is always required while other fields can also be
                `null`. See the [docs](https://docs.kombo.dev/guides/errors) for
                more information.
              value:
                status: error
                error:
                  code: null
                  title: null
                  message: The message is always in the response.
                  log_url: null
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      description: >-
        Create an API key on the [Secrets](https://app.kombo.dev/secrets) page
        in the Kombo dashboard.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.