Flexible Benefits via SFTP
This guide covers how to implement the Flexible Benefits flow using Wellhub's SFTP file exchange.
Prerequisites
- Completed SFTP setup (SSH keys and server connection).
- Employees must already be created in the Eligibility flow before they can receive flexible benefit credits.
- Knowledge of your entity type — Flexible Benefits are available for Multi Entity (ME) and Channel Partners (CP).
Supported Operations
Loading diagram...
Add / Update Credits
Upload a file to create new benefit credits or update existing ones for employees. Credits allow employees to allocate amounts to the benefit options that best suit their needs.
Remove Credits
Upload a file to delete existing credits for employees.
Flexible Benefits uploads accept partial submissions. Valid rows are processed normally; rows with errors are rejected individually. Whenever a full or partial rejection occurs, admins are notified via email.
Upload History
Download a status file listing all previous Flexible Benefits uploads. Each row records one upload event and includes the following columns:
| Column | Description |
|---|---|
| File name | Identifier of the uploaded file. Follows the format {unix_timestamp}-{original_filename}, where the numeric prefix is a Unix epoch timestamp recording the exact moment the file was submitted. |
| Upload date + time | Date and time the upload was processed, in UTC. |
| Type | Operation type: ADD or CANCEL. |
| Method | How the upload was triggered: SFTP, WEB, ELIGIBILITY_LOSS, RELOCATION, or REASSOCIATION. |
| Status | Processing outcome: SUCCEEDED, REJECTED, ERROR, or CANCELED. |
| Author | Username of the person who submitted the upload. |
| # Errors | Number of errors recorded for the upload. |
Error Details
Download a report of errors from a failed or partially rejected upload, with details on what needs to be corrected.
Error files use the same naming convention as the File name column in the upload history: {unix_timestamp}-{original_filename}.csv. The timestamp matches the one shown in the history record, making it straightforward to correlate an error file with its corresponding upload event.
Beneficiaries List
Download a snapshot of all currently credited employees, showing the current state of benefit credit allocations.
File Fields
Flexible Benefits files contain a combination of employee identification fields and credit-specific data. See the Wellhub Data Model in the Glossary for the full field reference.
Entity-Type-Specific Instructions
The directory structure and operation details differ by entity type. See the SFTP Instructions page for complete guidance: