Wex Health and Benefits APIs

Sections

Theme switcher

Activate Consumer Bank Account

Header Parameters

Idempotency-Keystring Required

Required client-generated UUID v4 used to deduplicate retried mutating requests (POST, PUT, PATCH, DELETE). Requests without this header are rejected with 400 Bad Request. The first successful (2xx) response is cached for 24h and replays of the same key return the cached response without re-executing the operation.

X-Request-Idstring

Optional correlation ID associated with the request for tracing and log aggregation.

Path Parameters

bank_account_idstring Required

The unique identifier (UUID) of the bank account to activate

Body Parameters

consumer_idstring Required

The unique identifier (UUID) of the consumer who owns the bank account

account_usestring Required

The intended use of the bank account. Determines how the account will be utilized within the system.

micro_deposit_amount_centsinteger Required

The micro-deposit amount in cents that was sent to the consumer's bank account for verification. Must be a positive integer.

Minimum
1
Maximum
99

Response

200
Object

Bank account successfully activated or already active (idempotent)

Response Attributes

consumer_idstring Required

The unique identifier (UUID) of the consumer who owns the bank account

account_usestring Required

The intended use of the bank account

validation_statusstring Required

The current validation status of the bank account. ACTIVE indicates successful activation, PENDING indicates awaiting validation, INACTIVE indicates locked after failed attempts.

activated_atstring

The timestamp when the bank account was activated, in ISO 8601 format (UTC timezone). Only present when validation_status is ACTIVE.

remaining_attemptsinteger Required

The number of remaining activation attempts before the account is locked. Maximum of 2 failed attempts are allowed.

Maximum
2
messagestring

Optional informational message providing additional context about the activation result

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.

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.

409
Object

Conflict – Returned for duplicate-record conflicts and optimistic concurrency version mismatches. See duplicate_record and version_conflict examples.

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

POST

/

Select
1

Response

Was this section helpful?