Wex Health and Benefits APIs

Sections

Theme switcher

Get Plan Rules

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

consumer_idstring Required

Platform GUID of the participant (person_id).

plan_idstring Required

Platform GUID of the plan (BenefitsOffering.PlanSystemId).

Response

200
Object

Successfully retrieved plan rules.

Response Attributes

plan_informationobject

Show child attributes

filing_rulesobject

Show child attributes

plan_ordering_rulesobject

Show child attributes

plan_spend_rulesobject

Show child attributes

plan_group_balancesarray

Section 5 — plan group balances ordered by effective date.

Show child attributes

debit_card_rulesobject

Show child attributes

expense_reimbursement_rulesobject

Show child attributes

coinsurance_tier_sectionobject

Show child attributes

plan_balances_for_plan_templateobject

Balance grid for the full plan template (Section 9).

Show child attributes

limited_reimbursement_rulesobject

Balance grid for the limited reimbursement section (Section 10).

Show child attributes

lifetime_claim_summaryobject

Show child attributes

400
Object

Invalid request parameters (e.g. malformed GUID).

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

The caller is not authenticated or does not hold the required scope (ReadClaims). This code is emitted exclusively by the ASP.NET authorization filter and the System.UnauthorizedAccessException catch block — it is never used for identity or plan lookup failures.

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

Returned when the handler cannot produce a result for any of the following reasons: The consumer_id cannot be resolved to a known platform identity (unknown participant or a token with no resolvable person record). The plan_id does not exist in the participant's shard, or the participant has no active enrollment election for that plan. The plan type is not supported by the rules engine (e.g. HSA plans are suppressed at Gate 2 and the engine returns null).

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

Unexpected server error; the request may be retried.

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?