imports_historyRun
Owner only: write a history import the owner confirmed in imports.historyPreview (send its preview_hash, plus the same csv, kind, source, on_match and mapping). Records already imported are matched by old id and skipped or updated, never duplicated. Imported quotes and invoices are drafts and are not sent. Maintenance plans become service-due reminders (no invoice, no charge), or with plans_as billed, maintenance plans at the confirmed price with auto_send off and no invoice until the next due date; payments become read-only history records (no charge, no fee, no invoice change). flat_rate rows become price book tasks, matched by old id, then task code, then name. mode all_or_nothing (default) or per_row.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | ||
| kind | Yes | ||
| mode | No | ||
| source | No | Where the file came from, like jobber or housecall_pro. Old ids are remembered per source. Defaults to the preset, or csv. | |
| mapping | Yes | ||
| shop_id | Yes | ||
| on_match | No | What to do with a record already imported (same old id) or already in Doing Work. skip (default) leaves it as it is; update refreshes jobs (summary, status, new visits) and price book items. Quotes and invoices are never changed after import. | |
| plans_as | No | maintenance_plans only. reminders (default): service due reminders, no money. billed: real maintenance plans at the price per term in the file, which the owner confirms in the preview. Each plan's next invoice is made on its next due date and is not sent on its own (auto_send off). | |
| preview_hash | Yes | ||
| equipment_kind | No | equipment kind only: the type for every row when the file has no type column, like Furnace for a Jobber custom field "Furnace Model". Guessed from the column names when left out; the preview returns it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||