> ## 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.

# Retrieve a pull



## OpenAPI

````yaml /openapi.yaml get /pulls/{id}
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:
  /pulls/{id}:
    parameters:
      - $ref: '#/components/parameters/Id'
    get:
      tags:
        - Pulls
      summary: Retrieve a pull
      operationId: retrievePull
      parameters:
        - $ref: '#/components/parameters/HammockVersion'
      responses:
        '200':
          description: The pull.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Pull'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: string
    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'
  schemas:
    Pull:
      type: object
      required:
        - id
        - object
        - employer
        - purpose
        - amount
        - currency
        - status
        - scheduled_date
        - expected_settlement_date
        - livemode
        - created
      properties:
        id:
          type: string
          examples:
            - pull_3Vb7Nm1qWe5R
        object:
          type: string
          const: pull
        employer:
          type: string
          examples:
            - empr_1Qx8Zt2eZvKYlo2C
        purpose:
          $ref: '#/components/schemas/PullPurpose'
        amount:
          type: integer
          description: Cents debited from the employer's bank account.
          examples:
            - 20000
        currency:
          type: string
          const: usd
        status:
          $ref: '#/components/schemas/PullStatus'
        scheduled_date:
          type: string
          format: date
          description: The day the ACH debit starts.
          examples:
            - '2027-03-19'
        expected_settlement_date:
          type: string
          format: date
          description: Three business days after `scheduled_date`.
          examples:
            - '2027-03-24'
        payroll:
          type:
            - string
            - 'null'
          description: The payroll this pull funds, for `payroll_contributions`.
          examples:
            - pay_6Mn2Bv8cXz4L
        pay_date:
          type:
            - string
            - 'null'
          format: date
          description: The payday an `ichra_installment` settles on.
        coverage_month:
          type:
            - string
            - 'null'
          description: The month of coverage an `ichra_installment` funds, as `YYYY-MM`.
          examples:
            - 2027-04
        failure_code:
          type:
            - string
            - 'null'
          description: Why the bank returned the debit, when `status` is `failed`.
          examples:
            - insufficient_funds
        livemode:
          type: boolean
        created:
          type: string
          format: date-time
    PullPurpose:
      type: string
      enum:
        - payroll_contributions
        - ichra_installment
        - employer_contribution
        - account_funding
      description: >
        `payroll_contributions`: what a reported payroll withheld and
        contributed.

        `ichra_installment`: the employer's ICHRA allowance for a coverage
        month, scheduled by

        Hammock ahead of payday. `employer_contribution`: a one-time employer
        contribution.

        `account_funding`: keeps the employer's FSA funding account at its
        required level.
    PullStatus:
      type: string
      enum:
        - scheduled
        - processing
        - settled
        - failed
        - canceled
    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.