---
updatedAt: 2026-06-16T07:30:12.000Z
agentTools:
  projectIndex: https://developers.getknit.dev/llms.txt
---

# Create a company-wide deduction

Creates a new payroll deduction type in your HR system.

### Supported Apps

Here are the list of apps that support this API.

<Accordion title="ADP Run (adp-run)" />

<Accordion title="Workday (workday)">
  For Workday you need additional data for creating deduction. See guide [Workday Guide](https://developers.getknit.dev/docs/creating-comapny-wide-deduction-using-workday-apis)
</Accordion>

<Accordion title="Quickbooks Payroll (quickbooks-payroll)">
  **Supported Request Fields:**

  * `name` - Required
  * `type` - Required
</Accordion>

<Accordion title="Netsuite Payroll (netsuite-payroll)">
  **Supported Request Fields:**

  * `name` - Required
  * `metadata.companyId` - Required
  * `metadata.accountId` - Required

  **Supported Response Fields:**

  * `deductionId`

  **Remarks**

  * Use [list all companies endpoint](https://developers.getknit.dev/reference/list-all-companies) to get the companyId.
  * Use [passthrough request](https://developers.getknit.dev/docs/passthrough-requests-1) to get the accountId.
</Accordion>

<br />

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "base-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.getknit.dev/v1.0"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      },
      "sec1": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Knit-Integration-Id"
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": []
    }
  ],
  "paths": {
    "/hr.deductions.create": {
      "post": {
        "summary": "Create a company-wide deduction",
        "description": "",
        "operationId": "create-deduction",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "frequency": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "metadata": {
                    "type": "object",
                    "properties": {}
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": true,\n  \"data\": {\n    \"deductionId\": \"AFDF44\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "deductionId": {
                          "type": "string",
                          "example": "AFDF44"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": false,\n  \"error\": {\n    \"msg\": \"descriptive error message\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "msg": {
                          "type": "string",
                          "example": "descriptive error message"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```