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

# addCompanyEmployeeBenefits

> 
The `addCompanyEmployeeBenefits` API adds company benefits with employees enrolled in a single operation. Combines `addCompanyBenefits` and `addEmployeeBenefits` into a single, efficient API call.

### What it does:

- Creates company-wide benefit plans and enrolls selected employees simultaneously
- Sets up benefit types, effective dates, and employee participation together

### Note:

- Streamlines the process of setting up benefits and enrolling employees at the same time



## OpenAPI

````yaml post /benefits/addCompanyEmployeeBenefits
openapi: 3.0.1
info:
  title: Default module
  description: ''
  version: 1.0.0
servers: []
security:
  - basic: []
tags: []
paths:
  /benefits/addCompanyEmployeeBenefits:
    post:
      tags: []
      summary: addCompanyEmployeeBenefits
      description: >-

        The `addCompanyEmployeeBenefits` API adds company benefits with
        employees enrolled in a single operation. Combines `addCompanyBenefits`
        and `addEmployeeBenefits` into a single, efficient API call.


        ### What it does:


        - Creates company-wide benefit plans and enrolls selected employees
        simultaneously

        - Sets up benefit types, effective dates, and employee participation
        together


        ### Note:


        - Streamlines the process of setting up benefits and enrolling employees
        at the same time
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  title: ''
                benefitCompanyElection:
                  type: object
                  properties:
                    companyId:
                      type: string
                      format: uuid
                    benefitType:
                      type: string
                      maxLength: 40
                    effectiveMonth:
                      type: string
                      maxLength: 40
                    benefitEmployeeElections:
                      type: object
                      properties:
                        userId:
                          type: string
                          format: uuid
                        companyContributionAmountPerPayPeriod:
                          type: string
                        employeeDeductionAmountPerPayPeriod:
                          type: string
                      required:
                        - userId
                        - companyContributionAmountPerPayPeriod
                        - employeeDeductionAmountPerPayPeriod
                  required:
                    - companyId
                    - benefitEmployeeElections
                  maxProperties: 9
                  x--orders:
                    - employeeId
                    - address1
                    - address2
                    - city
                    - state
                    - zipcode
                    - phoneNumber
              required:
                - method
                - benefitCompanyElection
              x--orders:
                - method
                - kycInformation
            example:
              method: addCompanyEmployeeBenefits
              benefitCompanyElection:
                companyId: 9C952CC4-7652-4E2A-9303-912D876057AE
                benefitType: Dental
                effectiveMonth: December 2024
              benefitEmployeeElections:
                - userId: C0378C3F-0B62-491D-9CD9-1B4CE347D8F1
                  companyContributionAmountPerPayPeriod: 55
                  employeeDeductionAmountPerPayPeriod: 25
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  Benefits:
                    type: object
                    properties:
                      status:
                        type: string
                      message:
                        type: string
                      benefitType:
                        type: string
                    required:
                      - status
                      - benefitType
                    x--orders:
                      - employeeId
                      - status
                      - message
                x--orders:
                  - kycInformation
                required:
                  - Benefits
              examples:
                '1':
                  summary: Success
                  value:
                    Benefits:
                      status: Ready
                      message: The Benefits for Dental has been saved successfully.
                      benefitType: Dental
                '2':
                  summary: Exception
                  value:
                    error:
                      code: 400
                      message: Invalid CompanyId
          headers: {}
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: integer
                        message:
                          type: string
                      required:
                        - code
                required:
                  - error
              example:
                error:
                  code: 400
                  message: Invalid CompanyId
          headers: {}
      deprecated: false
      security:
        - basic: []
components:
  securitySchemes:
    basic:
      type: http
      scheme: basic

````