Wex Health and Benefits APIs

Sections

Theme switcher

Cancel Claim

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

person_idstring Required

The GUID of the person (participant) cancelling the claim.

Path Parameters

claim_numberstring Required

The human-readable claim number (e.g. ROHEMP260511P0000101) identifying the claim to cancel.

Response

200
Object

Claim successfully cancelled.

Response Attributes

claim_numberstring

The human-readable claim number (e.g. ROHEMP260511P0000101). Serialised as claim_number.

claim_statusstring

The status of the claim after cancellation. Always "Denied". Serialised as claim_status.

receipt_statusstring

The receipt status after cancellation. Always "Not Needed". Serialised as receipt_status.

cancelled_atstring

The UTC timestamp when the claim was cancelled. Serialised as cancelled_at.

cancelled_bystring

The person_id (GUID) of the participant who cancelled the claim. Serialised as cancelled_by.

400
Object

claim_number or person_id is missing or invalid.

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 JWT token.

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. Authenticated user does not own this claim.

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

No claim found for the given claim_number.

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

Claim is not in a cancellable status (e.g. already Denied or Paid).

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.

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?