Template structure
A template includes:Columns configuration
Each column mapping defines how a file column maps to a field.Properties
If both
headerName and columnIndex are provided, columnIndex takes precedence.
Basic example
Using column index
Default values
Row configuration
Header row
Defines where headers are located. Example:Data start row
Defines where data begins. Example:Object types
Each template targets one object type: Payee, Payout, or Payout method. That choice controls whichpropertyPath values are valid for column mappings.
Available parameters
The lists below are generated fromdata/importTemplateObjectFields.json in this repository. Run npx tsx scripts/generate-import-template-field-docs.ts after you edit the JSON.
Payee
Use when the template creates or updates payee records. Payout upload rows often use dot paths such aspayee.first_name instead; see File format for that layout.
Company or organization name when the payee is a business, or a default label such as Individual when you use
defaultValue in the column mapping.Payout
Use when each row represents a payout. Required fields depend on payee type, payout method, and destination; see File format and Validation rules.Identifier or external reference that ties the row to a payee, per your template and environment.
Alternative column name some templates use for the payout currency; align with
currency if both appear in your file.Payout method identifier or selector for the row, when your template separates method choice from bank details.
Payout method
Use when the template maps bank or rail identifiers and related attributes. Exact required fields depend on the method and country; use Supported payout countries for method-specific requirements.Validation behavior
When you process a file against a template, typical outcomes include:Best practices
- Use header names instead of indexes when you can.
- Mark required fields explicitly.
- Test with small files first.
- Use defaults to reduce required columns.