Wex Health and Benefits APIs

Sections

Theme switcher

List Hsa Contribution Details

Header Parameters

X-Request-Idstring

Optional correlation ID associated with the request, comprised of alphanumeric or hyphen characters up to 36 characters in length.

Query Parameters

employer_idarray

Restricts results to the given employers. Repeat the parameter to select several. Every value is validated against the calling partner's authorized employer set, and a value outside it fails the request with 403.

Show child attributes

participant_identifierstring

Restricts results to a single participant. The identifier is assigned by the employer and is not unique across employers, so employer_id must be supplied alongside it; otherwise the request fails with 400.

Max length
64
hsa_account_idstring

Restricts results to a single custodian-issued HSA account identifier.

Max length
64
contribution_transaction_keystring

Restricts results to the single contribution transaction with this key. Returns at most one record.

Max length
64
tax_yeararray

Restricts results to the given contribution tax years. Repeat the parameter to select several. Defaults to the current tax year when omitted.

Show child attributes

contribution_type_codearray

Restricts results to the given contribution type codes. Repeat the parameter to select several. Codes outside those the caller is entitled to see are rejected with 403.

Show child attributes

funding_source_codearray

Restricts results to the given funding source codes. Repeat the parameter to select several. Codes outside those the caller is entitled to see are rejected with 403.

Show child attributes

process_date_fromstring

Earliest processed date to include, inclusive of the whole day, in ISO 8601 format (for example, 2025-06-01). Defaults to 90 days before process_date_to when both dates are omitted.

process_date_tostring

Latest processed date to include, inclusive of the whole day, in ISO 8601 format (for example, 2025-06-30). The span between process_date_from and process_date_to may not exceed 366 days.

contribution_date_fromstring

Earliest contribution date to include, inclusive of the whole day, in ISO 8601 format (for example, 2025-01-01). Filters on when the contribution was made rather than when it was processed.

contribution_date_tostring

Latest contribution date to include, inclusive of the whole day, in ISO 8601 format (for example, 2025-12-31). Filters on when the contribution was made rather than when it was processed.

pageinteger

Zero-based page index.

page_sizeinteger

Maximum number of rows to return per page (1-100).

Minimum
1
Maximum
100

Response

200
Object

Contribution detail records retrieved successfully

Response Attributes

itemsarray Required

The contribution detail records for this page.

Show child attributes

paginationobject Required

Show child attributes

400
Object

Bad Request – Validation failed. The errors map keys mirror the snake_case JSON property names used in the request payload.

Response Attributes

typestring
titlestring
statusinteger
detailstring
instancestring
errorsobject

Human-readable validation error messages keyed by field name. Each key maps to one or more error message strings.

validation_errorsobject

Field-level validation errors keyed by field name. Each key maps to one or more structured error details.

401
Object

Unauthorized – Missing or invalid credentials.

Response Attributes

typestring
titlestring
statusinteger
detailstring
instancestring
errorsobject

Human-readable validation error messages keyed by field name. Each key maps to one or more error message strings.

validation_errorsobject

Field-level validation errors keyed by field name. Each key maps to one or more structured error details.

403
Object

Forbidden – Insufficient permissions.

Response Attributes

typestring
titlestring
statusinteger
detailstring
instancestring
errorsobject

Human-readable validation error messages keyed by field name. Each key maps to one or more error message strings.

validation_errorsobject

Field-level validation errors keyed by field name. Each key maps to one or more structured error details.

404
Object

Not Found – Employee record does not exist.

Response Attributes

typestring
titlestring
statusinteger
detailstring
instancestring
errorsobject

Human-readable validation error messages keyed by field name. Each key maps to one or more error message strings.

validation_errorsobject

Field-level validation errors keyed by field name. Each key maps to one or more structured error details.

500
Object

Internal Server Error.

Response Attributes

typestring
titlestring
statusinteger
detailstring
instancestring
errorsobject

Human-readable validation error messages keyed by field name. Each key maps to one or more error message strings.

validation_errorsobject

Field-level validation errors keyed by field name. Each key maps to one or more structured error details.

default
Object

Unexpected error

Response Attributes

typestring
titlestring
statusinteger
detailstring
instancestring
errorsobject

Human-readable validation error messages keyed by field name. Each key maps to one or more error message strings.

validation_errorsobject

Field-level validation errors keyed by field name. Each key maps to one or more structured error details.

Was this section helpful?

Base URL

Production:

Sandbox:

Language Box

GET

/

Select
1

Response

Was this section helpful?