mapping_create
Create field mappings to import CSV/XLSX accounting data into QuickBooks Online or Xero by mapping columns or constants to entity fields.
Instructions
Creates a new field mapping for an entity (e.g. 'Journal Entry', 'Bill', 'Invoice'). Look up valid target fields with fields_get first. Returns the created mapping including its id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | Company id from companies_list. | |
| title | Yes | Human-readable mapping name. | |
| entityName | Yes | Entity this mapping targets — must match entities_list output (e.g. 'Journal Entry'). | |
| fields | Yes | Field mappings. Each entry maps a CSV column or a constant to an Importer target field. |