Payroll

Get Employee Scheduled Deductions

GET
/employee-scheduled-deductions

Returns a paginated list of scheduled deductions for employees. A scheduled deduction is a recurring or one-time amount withheld from an employee's paycheck for a specific deduction type (e.g., a weekly 401k contribution).

Optional Filters:

  • organization-id — limit to deductions for employees in companies belonging to these organizations
  • company-ids — limit to deductions for employees in these companies
  • employee-ids — limit to deductions for these employees
  • company-deduction-ids — limit to deductions of these deduction types
  • statusActive returns active deductions; InActive returns stopped deductions only
  • effective-from / effective-to — inclusive date bounds. Required when filtering by organization-id or company-ids only. Date range cannot exceed 365 days.

Date range behavior: When both dates are provided, returns deductions that started on or after effective-from AND ended on or before effective-to (or have no end date). One-time deductions are included if their start date falls within the range.

EffectiveTo behavior: effectiveTo is always null for one-time deductions. For recurring deductions, it is returned when set.

Multiple filters combine with AND logic; values within one parameter combine with OR.

Access control: Results are limited to companies your integration has access to. When organization-id is supplied, only results from organizations containing at least one accessible company are included. Inaccessible IDs in filter parameters are silently excluded; if none match, an empty list is returned.

Error Details:

  • 400 Bad Requesteffective-from is after effective-to, or the date range exceeds 365 days
X-API-KEY<token>

Your API key.

In: header

Query Parameters

api-version*string

API version

Default"3.0"
Value in"3.0"
organization-id?string

Limit results to deductions for employees in companies belonging to this organization.

Formatuuid
company-ids?array<>

Limit results to deductions for employees in these companies.

employee-ids?array<>

Limit results to deductions for these employees.

company-deduction-ids?array<>

Limit results to deductions of these deduction types.

status?string

Limit results to deductions with this status. When omitted, both active and inactive deductions are returned.

Value in"active" | "inActive"
effective-from?string

Start of the effective date range (inclusive, YYYY-MM-DD).

Formatdate
effective-to?string

End of the effective date range (inclusive, YYYY-MM-DD).

Formatdate
page-number?integer

Page number (1-based). Defaults to 1 if not specified.

Formatint32
Range1 <= value <= 2147483647
page-size?integer

Number of items per page. Defaults to 100 if not specified. Maximum 500.

Formatint32
Range1 <= value <= 500

Response Body

curl -X GET "https://external-app-prod.netchexonline.net/employee-scheduled-deductions?api-version=3.0"
{
  "pageNumber": 0,
  "pageSize": 0,
  "totalItemsCount": 0,
  "items": [
    {
      "employeeDeductionId": 0,
      "employeeId": 0,
      "companyDeductionId": 0,
      "companyId": 0,
      "categoryGroup": "voluntary",
      "isLocked": true,
      "isActive": true,
      "voluntaryDeduction": {
        "employeeContributionAmount": {
          "flatAmount": 0,
          "percentage": 0
        },
        "frequency": "oneTime",
        "effectiveFrom": "2019-08-24T14:15:22Z",
        "effectiveTo": "2019-08-24T14:15:22Z",
        "isEmployerContributionOverride": true,
        "employerContributionAmount": {
          "flatAmount": 0,
          "percentage": 0
        }
      }
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}

Get Company Tax Codes GET

Returns a paginated list of tax codes configured for companies. A company tax code identifies a tax jurisdiction or withholding obligation the company is registered for (e.g., a state income tax or local withholding code). **Optional Filters:** - `organization-id` — limit to tax codes for companies belonging to these organizations - `company-ids` — limit to tax codes for these companies - `include-federal` — set to `true` to include federal tax codes alongside state and local codes Multiple filters combine with AND logic; values within one parameter combine with OR. **Access control:** Results are limited to companies your integration has access to. When `organization-id` is supplied, only results from organizations containing at least one accessible company are included. Inaccessible IDs in filter parameters are silently excluded; if none match, an empty list is returned.

Get General Ledger Transactions GET

Returns a paginated list of general ledger journal entries for a specific company and payroll run. Each entry represents a debit or credit transaction used to record payroll costs in the company's accounting system. Use `distribution-options` to control how payroll costs are allocated to departments within each journal entry category. Each category can be independently set to `HomeDepartment` (the employee's primary assigned department), `WorkDepartment` (the department where the employee actually worked during the pay period), or `None` (no department allocation). When a category is omitted, the company's default allocation setting is used. Transaction categories available for distribution: - `salary-expenses` - `employer-tax-expenses` - `employer-tax-liabilities` - `employee-tax-liabilities` - `employer-deduction-expenses` - `employee-deduction-liabilities` - `employer-deduction-liabilities` - `workers-compensation-expenses` (only applies when `include-workers-compensation=true`) - `workers-compensation-liabilities` (only applies when `include-workers-compensation=true`) **Access control:** Results are limited to companies your integration has access to. **Error Details:** - **404 Not Found** — the specified company is not accessible, or no transactions were found for the given company and payroll number