Wex Health and Benefits APIs

Sections

Theme switcher

Get Consumer

Header Parameters

X-Request-Idstring

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

Authorizationstring

Query Parameters

expandarray

Optional field expansion of consumer response. Accepts multiple comma-delimited values. For example, ADDRESSES,PHONE_NUMBERS expands the corresponding fields.

Show child attributes

ssn_modestring

Optional SSN masking mode. Valid values: MASKED (default), LAST4, UNMASKED. MASKED returns xxx-xx-1234, LAST4 returns 1234, UNMASKED returns 555441234.

Path Parameters

consumer_idstring Required

The consumer's unique identifier.

Response

200
Object

Successfully retrieved consumer information.

Response Attributes

consumer_idstring Required

Unique identifier of a consumer.

first_namestring Required

First name of a consumer.

Min length
1
middle_namestring | null

Middle name of a consumer.

last_namestring Required

Last name of a consumer.

Min length
1
genderstring Required

Gender of a consumer.

marital_statusstring Required

Marital status of a consumer.

addressesobject | null

Show child attributes

email_addressesobject | null

Show child attributes

phone_numbersobject | null

Show child attributes

protected_personal_dataobject | null

Show child attributes

citizenshipobject | null

Show child attributes

identificationobject | null

Show child attributes

employmentobject | null

Show child attributes

400
Object

Invalid request. Check query parameters.

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.

401
Object

Unauthorized. Authentication failed.

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

Forbidden. Insufficient permissions to access this resource.

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

Not Found. No Consumer was found for the supplied Consumer ID.

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.

500
Object

Internal server error.

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?