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

# List deductions

> Returns an employer's standing deductions. Pass `pay_date` to get the amounts that apply
to one payday: each deduction is returned with `employee_amount` and `employer_amount`
already resolved for that date, and deductions that don't apply on it are left out.




## OpenAPI

````yaml /openapi.yaml get /deductions
openapi: 3.1.0
info:
  title: Hammock Partner API
  version: '2026-12-01'
  summary: Offer Hammock benefits inside your payroll product.
  description: |
    Preview of the Hammock Partner API. Nothing in this document is live yet:
    object shapes and endpoints may change before release.
  contact:
    name: Hammock
    email: support@usehammock.co
servers:
  - url: https://api.usehammock.co
    description: Live
  - url: https://api.sandbox.usehammock.co
    description: Sandbox
security:
  - bearerAuth: []
tags:
  - name: Employers
    description: The companies you offer Hammock benefits to.
  - name: Pay schedules
    description: >-
      How often an employer pays its employees, and the lock date of each pay
      period.
  - name: Employees
    description: An employer's roster, kept in sync by you.
  - name: Benefits
    description: The benefits an employer offers for a plan year.
  - name: Elections
    description: What an employee chose in the hosted enrollment flow.
  - name: Deductions
    description: >-
      Standing instructions for what to withhold and contribute on each
      paycheck.
  - name: Reimbursements
    description: One-time amounts to pay an employee through payroll.
  - name: Employer contributions
    description: >-
      One-time employer contributions made outside payroll, for year-end
      reporting.
  - name: Payrolls
    description: Payrolls you report to Hammock, with what was withheld and paid.
  - name: Pulls
    description: ACH debits from an employer's bank account.
  - name: Events
    description: A record of everything that changed.
  - name: Webhook endpoints
    description: Where Hammock delivers events.
  - name: Test helpers
    description: Sandbox-only endpoints that skip hosted flows and waiting periods.
paths:
  /deductions:
    get:
      tags:
        - Deductions
      summary: List deductions
      description: >
        Returns an employer's standing deductions. Pass `pay_date` to get the
        amounts that apply

        to one payday: each deduction is returned with `employee_amount` and
        `employer_amount`

        already resolved for that date, and deductions that don't apply on it
        are left out.
      operationId: listDeductions
      parameters:
        - $ref: '#/components/parameters/HammockVersion'
        - $ref: '#/components/parameters/EmployerQuery'
        - $ref: '#/components/parameters/EmployeeQuery'
        - name: status
          in: query
          schema:
            type: string
            enum:
              - scheduled
              - active
              - ended
        - name: benefit_type
          in: query
          schema:
            $ref: '#/components/schemas/BenefitType'
        - name: pay_date
          in: query
          description: Resolve amounts for this payday.
          schema:
            type: string
            format: date
          example: '2027-03-19'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/StartingAfter'
        - $ref: '#/components/parameters/EndingBefore'
      responses:
        '200':
          description: A list of deductions.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/List'
                  - type: object
                    properties:
                      url:
                        type: string
                        examples:
                          - /deductions
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/Deduction'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    HammockVersion:
      name: Hammock-Version
      in: header
      description: >-
        The API version to use for this request. Defaults to the version pinned
        to your API key.
      schema:
        type: string
      example: '2026-12-01'
    EmployerQuery:
      name: employer
      in: query
      required: true
      description: ID of the employer.
      schema:
        type: string
      example: empr_1Qx8Zt2eZvKYlo2C
    EmployeeQuery:
      name: employee
      in: query
      description: Only return objects for this employee.
      schema:
        type: string
      example: emp_5Tg7Rw2nBx8P
    Limit:
      name: limit
      in: query
      description: How many objects to return, from 1 to 100.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 10
    StartingAfter:
      name: starting_after
      in: query
      description: An object ID. Returns the page that follows this object.
      schema:
        type: string
    EndingBefore:
      name: ending_before
      in: query
      description: An object ID. Returns the page that precedes this object.
      schema:
        type: string
  schemas:
    BenefitType:
      type: string
      enum:
        - hsa
        - health_fsa
        - limited_purpose_fsa
        - dependent_care_fsa
        - ichra
        - lsa
        - hra
        - cobra
        - wellness
    List:
      type: object
      required:
        - object
        - data
        - has_more
        - url
      properties:
        object:
          type: string
          const: list
        data:
          type: array
          items: {}
        has_more:
          type: boolean
          description: Whether more objects follow this page.
        url:
          type: string
          description: The path of this list.
    Deduction:
      type: object
      required:
        - id
        - object
        - employer
        - employee
        - benefit
        - election
        - benefit_type
        - category
        - tax_treatment
        - status
        - employee_amount
        - employer_amount
        - currency
        - effective_date
        - variable
        - livemode
        - created
        - updated
      properties:
        id:
          type: string
          examples:
            - ded_2Lp9Xc4vNm7K
        object:
          type: string
          const: deduction
        employer:
          type: string
          examples:
            - empr_1Qx8Zt2eZvKYlo2C
        employee:
          type: string
          examples:
            - emp_5Tg7Rw2nBx8P
        benefit:
          type: string
          examples:
            - ben_4Df8Gh2jKl6M
        election:
          type: string
          examples:
            - elec_3Sd6Fg9hJk2L
        benefit_type:
          $ref: '#/components/schemas/BenefitType'
        category:
          type: string
          enum:
            - contribution
            - premium
          description: >-
            `contribution` for money going into an account. `premium` for the
            employee's share of an ICHRA health insurance premium.
        tax_treatment:
          $ref: '#/components/schemas/TaxTreatment'
        status:
          type: string
          enum:
            - scheduled
            - active
            - ended
          description: >-
            `scheduled` before `effective_date`, `active` from then on, and
            `ended` after `end_date`.
        employee_amount:
          type: integer
          description: Cents to withhold from the employee on each payday.
          examples:
            - 15000
        employer_amount:
          type: integer
          description: Cents the employer contributes on each payday.
          examples:
            - 5000
        currency:
          type: string
          const: usd
        effective_date:
          type: string
          format: date
          description: The first pay date the current amounts apply to.
          examples:
            - '2027-03-19'
        end_date:
          type:
            - string
            - 'null'
          format: date
          description: >-
            The last pay date to withhold on. `null` while the deduction is
            open-ended.
        upcoming_change:
          oneOf:
            - $ref: '#/components/schemas/DeductionAmounts'
            - type: 'null'
          description: >-
            New amounts that replace the current ones from their own
            `effective_date`.
        variable:
          type: boolean
          description: >-
            Whether Hammock recalculates the amounts before each lock date, as
            it does for an HSA set to reach the annual limit. Fetch with
            `pay_date` before each payroll.
        livemode:
          type: boolean
        created:
          type: string
          format: date-time
        updated:
          type: string
          format: date-time
    TaxTreatment:
      type: string
      enum:
        - pre_tax
        - post_tax
    DeductionAmounts:
      type: object
      required:
        - employee_amount
        - employer_amount
        - effective_date
      properties:
        employee_amount:
          type: integer
          description: Cents to withhold from the employee on each payday.
          examples:
            - 17500
        employer_amount:
          type: integer
          description: Cents the employer contributes on each payday.
          examples:
            - 5000
        effective_date:
          type: string
          format: date
          description: The first pay date these amounts apply to.
          examples:
            - '2027-04-05'
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - message
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - idempotency_error
                - api_error
              description: The category of error.
            code:
              type: string
              description: A short, stable string identifying the specific error.
              examples:
                - payroll_not_voidable
            message:
              type: string
              description: >-
                A human-readable explanation. Don't parse it, and don't show it
                to end users.
            param:
              type:
                - string
                - 'null'
              description: >-
                The parameter the error relates to, using dot and bracket
                notation for nested fields.
              examples:
                - deductions[0].employee_amount
            doc_url:
              type: string
              format: uri
            request_id:
              type: string
              examples:
                - req_9Kd2Lm5nPq8R
  responses:
    Error:
      description: An error. The HTTP status and `error.type` say what kind.
      headers:
        Request-Id:
          description: Identifies this request. Include it when you contact support.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              type: invalid_request_error
              code: parameter_missing
              message: 'Missing required parameter: employer.'
              param: employer
              doc_url: https://docs.usehammock.co/api/errors#parameter_missing
              request_id: req_9Kd2Lm5nPq8R
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your secret API key, sent as `Authorization: Bearer hmk_test_...`.'

````

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