Wex Health and Benefits APIs

Sections

Theme switcher

Get Agreements Agreement File

Header Parameters

X-Request-Idstring

Optional correlation ID.

Authorizationstring

Query Parameters

agreement_file_idinteger

Optional. The specific agreement_file_id to download. When omitted, the most recently uploaded active file is returned.

Path Parameters

agreementIdinteger Required

The agreement whose file content should be retrieved.

Response

200
Object

File content returned as base64-encoded JSON.

Response Attributes

contentstring | null

Base64-encoded file contents.

mime_typestring | null

MIME type of the file (e.g. application/pdf).

content_lengthinteger

File size in bytes.

401
Object

Bearer token is missing or invalid.

Response Attributes

typestring | null
titlestring | null
statusinteger | null
detailstring | null
instancestring | null
invalid_paramsarray | null

List of invalid parameters that caused the validation error.

Max items
10

Show child attributes

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

Caller token does not resolve to a known customer shard.

Response Attributes

typestring | null
titlestring | null
statusinteger | null
detailstring | null
instancestring | null
invalid_paramsarray | null

List of invalid parameters that caused the validation error.

Max items
10

Show child attributes

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

Agreement not found, or the specified file does not exist or is not active.

Response Attributes

typestring | null
titlestring | null
statusinteger | null
detailstring | null
instancestring | null
invalid_paramsarray | null

List of invalid parameters that caused the validation error.

Max items
10

Show child attributes

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.

502
Object

Upstream document service returned an error or unexpected response.

default
Object

Unexpected error

Response Attributes

typestring | null
titlestring | null
statusinteger | null
detailstring | null
instancestring | null
invalid_paramsarray | null

List of invalid parameters that caused the validation error.

Max items
10

Show child attributes

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?

GET

/

Select
1

Response

Was this section helpful?