General File Requirements
This guide outlines the common technical requirements that apply to all data files transmitted to Paytient, including eligibility and claims files.
File Format Specifications
All files must adhere to the following technical specifications to ensure proper processing:
File Type & Structure
| Requirement | Value | Description |
|---|---|---|
| Format | CSV (Comma Separated Values) | Plain text format with comma-delimited fields |
| Encoding | UTF-8 | Standard encoding for handling special characters in names and addresses |
| Line Endings | LF or CRLF | Unix (LF) or Windows (CRLF) line endings are both acceptable |
| Header Row | Required | First row must contain field names exactly as specified |
| Delimiter | Comma (,) | Fields must be separated by commas |
| Text Qualifier | Double quotes (") | Use when field values contain commas or line breaks |
Character Encoding (UTF-8)
UTF-8 encoding is required to properly handle:
- International characters (é, ñ, ö, etc.)
- Special symbols and punctuation
- Emoji (though not recommended in formal data)
Most modern text editors and programming languages default to UTF-8. If you're unsure, check your export settings or file properties.
Header Row Requirements
The first row of every file must be a header row containing the exact field names as specified in the file specification.
Example Header Row:
Client ID,Employee ID,First Name,Last Name,Birth Date,Email Address
Field names are case-sensitive and spacing must match the specification exactly. Client ID is correct, client id, ClientID, or Client ID (extra space) will cause processing errors.
Data Formatting Standards
Numeric Values
Currency & Dollar Amounts:
- check_circle Correct:
100.00or1500.50or-25.00 - cancel Incorrect:
$100.00or1,500.50or(25.00)
Rules:
- No currency symbols (
$) - No thousand separators (
,) - Use decimal point (
.) for cents - For decimal currency fields (e.g., claims amounts), always include exactly two decimal places
- For fields defined as integer dollar amounts in a specific file spec (e.g.,
Credit Limitin the Eligibility File), do not include decimal places and follow that file's definition
Whole Numbers (IDs, Phone Numbers, ZIP Codes):
- check_circle Correct:
12345or5555555555 - cancel Incorrect:
12,345or(555) 555-5555
Rules:
- No formatting characters
- No spaces or special characters
- Digits only
Date Values
Format: YYYY-MM-DD (ISO 8601 standard)
Examples:
- check_circle
2024-01-15 - check_circle
2023-12-31 - cancel
01/15/2024- Wrong format - cancel
15-Jan-2024- Wrong format - cancel
2024-1-15- Missing leading zero
Rules:
- Four-digit year
- Two-digit month (01-12)
- Two-digit day (01-31)
- Use hyphens (
-) as separators
Address Values
State Codes:
- Use standard 2-letter state abbreviations
- check_circle Correct:
NY,CA,TX,TN - cancel Incorrect:
New York,Calif,n.y.
Rules:
- Uppercase letters only
- No periods or spaces
Text Values
Rules:
- Trim leading and trailing whitespace
- Avoid line breaks within fields (use text qualifiers if necessary)
- Use standard ASCII characters when possible
- Special characters should be properly escaped in CSV format
Text Qualifier Usage:
When a field contains commas or quotes, wrap it in double quotes:
"Smith, John","123 Main St, Apt 4"
File Naming Conventions
Each file type has a specific naming convention to follow:
Pattern: ClientID_FileType_YYYYMMDD.csv
Examples:
ACME123_Eligibility_20240315.csvACME123_Claims_20240315.csv
Rules:
- Replace
ClientIDwith your assigned client identifier - Use exact file type names:
EligibilityorClaims - Date format:
YYYYMMDD(no hyphens or slashes) - Must end with
.csvextension
Files that don't follow the naming convention may not be processed automatically.
Common Issues & Solutions
Issue: "Invalid UTF-8 encoding"
Cause: File saved with wrong character encoding
Solution:
- Re-save file with UTF-8 encoding
- Most CSV export tools have an encoding option
- Excel: Save As → CSV UTF-8 (Comma delimited)
Issue: "Header row mismatch"
Cause: Field names don't match specification exactly
Solution:
- Compare your headers to the specification
- Check for typos, extra spaces, or case differences
- Don't add or remove any fields
Issue: "Invalid date format"
Cause: Dates not in YYYY-MM-DD format
Solution:
- Reformat dates to ISO 8601 standard (YYYY-MM-DD)
- Check for missing leading zeros
- Verify month and day are valid (e.g., month 13 is invalid)
Issue: "Numeric parsing error"
Cause: Currency or numeric fields contain formatting characters
Solution:
- Remove all
$,,,(), and other formatting - Use
.for decimals,-for negative numbers - Ensure consistent decimal places
File Validation Checklist
Before submitting any file, verify:
- File is saved as CSV format with UTF-8 encoding
- First row contains the exact header names from specification
- File follows naming convention:
ClientID_FileType_YYYYMMDD.csv - All required fields are populated (no blank values)
- Dates are formatted as
YYYY-MM-DD - Numeric values have no formatting characters ($, commas)
- State codes are 2-letter uppercase abbreviations
- No trailing commas or blank rows at the end of file
- File is transmitted via secure SFTP, not email
Related Documentation
- Data Synchronization and ID Management - Understanding identifier consistency across all files
- Security & Transmission Guidelines - How to securely transmit files
- SFTP Connection Setup Guide - Configure your SFTP connection
- Claims File Integration Guide - Specific requirements for claims files
- Claims Response File Integration Guide - How to receive and process claims response files from Paytient
- Eligibility File Integration Guide - Specific requirements for eligibility files
Need Help?
If you're experiencing file formatting issues:
- Review the file specification for your specific file type
- Use the validation checklist above
- Contact your Paytient implementation team with:
- Sample file (first 5 rows with sensitive data removed)
- Specific error messages received
- Steps you've already tried