Wex Health and Benefits APIs

Sections

Theme switcher

Create Expense

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 creating the expense.

Body Parameters

expense_namestring Required

The name/description of the expense (3–25 chars). Validation enforced by the handler.

Min length
1
date_of_servicestring Required

The date the service was provided.

expense_amountstring Required

The expense amount as a decimal string (e.g., "125.50"). Must be greater than 0.

Min length
1
total_billed_amountstring

The total billed amount as a decimal string. Must be greater than 0 and greater than or equal to ExpenseAmount when provided.

expense_categorystring

The expense category (optional). Values mirror the Configger DB constants from stm.usp_SelectExpenseCategories. When null, defaults to WEX.Benefits.Claims.Domain.Enums.ExpenseCategory.Other.

providerstring

The provider/payee name (max 100 chars).

Max length
100
recipientsarray

List of recipients/patients associated with the expense (max 50).

Show child attributes

notesstring

Additional notes for the expense (max 4000 chars).

Max length
4000
receiptsarray

List of pre-uploaded receipt documents to attach (max 4).

Show child attributes

Response

201
Object

Expense created successfully.

Response Attributes

expense_nbrstring

The unique GUID tracking number for the expense.

statusstring Required

The status of the created expense. For this endpoint, newly created consumer-tracked expenses are returned with a status of "UNPAID".

400
Object

Invalid request body.

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.

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. User not authorized to create expenses for this person.

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.

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?