CsvMappingDto
Represents a saved CSV mapping configuration.
Mappings define how CSV columns map to client fields and can be reused across imports and exports.
Preset mappings are available to all tenants; tenant mappings are private.
Properties
| Name | Type | Description |
|---|---|---|
| code | string | Unique code identifying this mapping. |
Unique code identifying this mapping. | ||
| name | string | Human-readable display name for this mapping. |
Human-readable display name for this mapping. | ||
| columnMappings | array of CsvColumnMappingDto | The column mappings that define how CSV headers map to target fields. |
The column mappings that define how CSV headers map to target fields. | ||
| matchField | enum | Code Name CompanyNumber InternalReference NiNumber |
Code Name CompanyNumber InternalReference NiNumber | ||
| isPreset | boolean | True if this is a preset mapping available to all tenants. |
True if this is a preset mapping available to all tenants. | ||
| mappingType | enum | Client |
Client | ||
| createdDate | string | When this mapping was created (UTC). |
When this mapping was created (UTC). | ||
| updatedDate | string | When this mapping was last updated (UTC). Null if never updated. |
When this mapping was last updated (UTC). Null if never updated. | ||
JSON Example
{
"code": "string",
"name": "string",
"columnMappings": [
{
"csvHeader": "...",
"targetField": "..."
}
],
"matchField": "Code",
"isPreset": false
}