API Reference: Record Imports
Preview and import CSV or OFX/QFX statement records, with exact Money amounts, amount transforms, values for every row, matching existing records by a field, Simply ID, or integration record ID, scanned URL or ZIP files, row tracking, and undo of only the records an import created.
Overview
Native record import maps an uploaded CSV or OFX/QFX bank or credit card statement to fields in any Collection. Use a trusted, readable source File (a UTF-8 CSV, or an OFX 1.x/2.x statement; up to 10 MiB and 50,000 rows or transactions), preview its mapping, create a durable import, and run small chunks. File fields accept direct HTTPS links or exact paths from an existing scanned ZIP import. Rows wait for those files, then create records through the ordinary record writer. Signed URLs and CSV values are not returned in progress or error responses.
Authentication
JWT, OAuth, and API keys are supported. Preview and creation require current Collection read/create access, field write access, and access to the CSV File. Creating or continuing requires OAuth records:read, records:write, and, for reading the CSV, files:read. Importing into a Collection requires the RECORD_IMPORTS feature permission: view level to read an import and its rows, edit level to preview, save, start, run, or undo. Media Library imports require MEDIA_IMPORTS instead, and API keys need the permission in their own permission list. File fetching requires edit-level MEDIA_IMPORTS. The same account and application that created an import must start or run it; permissions are checked again on every call. An authorized administrator can inspect or undo another person's import. Undo requires current Collection read/delete access and the current permissions to archive each selected record.
Endpoints
| Method | Path | Purpose |
|---|---|---|
| POST | /v1/record-imports/preview | Read source identity, headers, and writable fields; with a mapping, return dry-run counts and unmatched rows/options/files. |
| POST | /v1/record-imports | Pin source version/hash, mapping, and a caller-chosen UUID v4 idempotencyKey. |
| GET | /v1/record-imports/{importSimplyId} | Get status and row counts. |
| GET | /v1/record-imports/{importSimplyId}/rows | Get row numbers, outcomes, safe errors, and readable created-record IDs; limit 1–100, offset. |
| POST | /v1/record-imports/{importSimplyId}/start | Start a validated import. |
| POST | /v1/record-imports/{importSimplyId}/run | Process up to limit rows (1–100); repeat until complete. |
| POST | /v1/record-imports/{importSimplyId}/undo | Archive up to limit import-created records (1–100); repeat until undone. |
Statement Files
A File uploaded as application/x-ofx (.ofx) or application/vnd.intu.qfx (.qfx) is read as a statement; the preview and status responses report sourceFormat: "OFX" (otherwise "CSV"). Every bank (STMTRS) and credit card (CCSTMTRS) statement in the file becomes one row per transaction, in file order, with these fixed headers: Date Posted, Transaction Date, Amount, Currency, Payee, Memo, Transaction ID (the FITID), Transaction Type, Check Number, Account Last Four, and Account Type. Row numbers are transaction positions. Dates are the calendar date the statement states (YYYY-MM-DD), whatever time zone suffix follows; Amount is signed (money in positive) and checked against the field currency. Map Transaction ID to a text field and give the Collection a duplicate rule on it so overlapping statements cannot import twice.
The reader is in-house and bounded. It accepts OFX 1.x SGML (with or without the header block, unclosed leaf elements, missing aggregate closing tags, Windows-1252 or UTF-8) and OFX 2.x XML, a byte-order mark, CRLF or LF line endings, and comma decimal amounts. It never processes a DTD: a document type, entity, or other markup declaration fails with 422 STATEMENT_DTD_NOT_ALLOWED, and only the XML entities, and numeric references are decoded. Other errors are 413 STATEMENT_TOO_LARGE and 422 STATEMENT_INVALID, STATEMENT_ENCODING_INVALID, STATEMENT_NOT_FOUND (no bank or card statement, including investment-only files), and STATEMENT_TOO_MANY_ROWS. A statement cannot target the Media Library (422 SOURCE_FORMAT_UNSUPPORTED). Statements that correct or delete earlier transactions (CORRECTACTION), files with more than 1,000 account statements, and files whose OFX 1.x header block does not end within 16 KiB fail with 422 STATEMENT_INVALID. Amount keeps the statement's digits except that zeros past the second decimal place are dropped (100.000 is 100.00); a comma decimal is converted to a point, so 1,000 becomes 1.000 and is refused as ambiguous for two-decimal currencies.
Money Fields and Column Transforms
Money fields can be mapped; the preview's fields list gives each one's currencyCode (the field's own, else the Team's). Amounts accept currency symbols or ISO codes that match that currency, comma, space, apostrophe, or Indian digit grouping, a leading or trailing minus, parentheses for negatives, and CR (positive) or DR (negative) suffixes, and are stored as exact four-place decimals. A row error is returned for a comma decimal separator, more than one sign marker, a different currency, or more decimal places than the currency's minor unit (extra zero digits are accepted; nothing is rounded). For currencies with fewer than three decimal places, one to three digits followed by a single point and exactly three digits (1.000, 12.500) is refused as ambiguous, because integer-only exports write one thousand that way. Messages never include cell values.
Optional columnTransforms on preview and create maps a mapped column header to a transform; only columns mapped to Money fields accept one, otherwise the preview reports INVALID_TRANSFORM. { "kind": "NEGATE" } flips the sign. { "kind": "SUBTRACT_COLUMN", "column": "Withdrawal" } sets the amount to the mapped column minus the named column, each taken as a magnitude, with a blank cell counting as zero and both blank leaving the field empty; map whichever column should be positive. A subtracted column is not reported as unmatched. Transforms are saved in the import plan.
Values for Every Row
Optional fixedValues on preview and create maps a field Simply ID to one value written on every row, for a field no column fills, for example the Bank Account a whole statement belongs to. The field must be one the import may write (the same rule as mapping, so a read-only, calculated, consent, or system field reports READ_ONLY_FIELD), and it cannot also be mapped from a column: that request fails with 400 FIXED_VALUE_CONFLICT. A linked-record field takes the Simply ID of a record it can link to (several separated by | for a multi-record field; a repeat counts once). A record name is not accepted. Each Simply ID is checked once by the same linked-record check a write uses: a record outside the field's linked Collection, archived, deleted, or in a Security Scope the caller cannot see reports UNMATCHED_OPTION. To choose one by name, add the field to optionsForFields (at most 20 fields) on a preview: that field in the response's fields then lists its options (simplyId and name) when the caller can search at most 100 records of its linked Collection, and lists nothing when there are more, none, several linked Collections, or a Collection the caller cannot search. Choices are never listed otherwise. Any other field takes text parsed exactly as a mapped cell would be, so a Money value accepts the same notations and a date is YYYY-MM-DD. File and image fields cannot take one (FIXED_VALUE_UNSUPPORTED). The value counts toward required fields. At most 50 fields and 1,000 characters across all values are accepted (400 FIXED_VALUES_TOO_LARGE), because every saved row holds them. A value that fails these checks is one plan error, so no row is ready until it is fixed. Values are saved in the import plan and on every saved row; creating the import checks them again, and each run checks every row as usual, so a record archived after create, or a Collection rule that refuses the value, fails those rows.
Mapping and Media
Preview accepts dataCollectionSimplyId, csvFileSimplyId, optional sourceVersionNumber, and mapping from exact header names to field Simply IDs. Creation replaces the CSV ID with source: { fileSimplyId, sourceVersionNumber, sourceSha256 }. Optional zipImportSimplyId selects the ZIP manifest. Unmapped columns are reported; fields that are required, protected, unavailable, or invalid produce safe row errors. Previews use the ordinary record-create dry run for mapped non-file values, including linked-record permissions. Media-specific system metadata and album/label name columns have separate checks. Files still await scan and admission. If validation takes too long, split the CSV into smaller files; incomplete previews are refused. Execution repeats current validation; a successful preview does not reserve permissions or disable later validation.
Set target: "MEDIA_LIBRARY" for the installed Media Collection. Each row must resolve one File. Identical clean bytes in the same Team reuse one File and Media record. Supported empty metadata fields are filled. For a File newly created by that import, a mapped title can replace the unchanged filename registration default. Status is filled only when empty, because registration does not seed a status; reused Media and manual edits are preserved. Optional mediaColumns: { albums, labels } names two CSV headers containing names separated by |. Album and label associations are additive; authorized missing names are created. Mapped multi-option category fields fill only when empty and preserve existing choices. Consent, File custody, and system-control fields cannot be imported.
Matching Existing Records
Without matching, every ready row creates a record, as before. Optional matching: { keys, onMatch } on preview and create (Collection imports only: a MEDIA_LIBRARY import already finds Media by its file, and refuses matching with 422 MATCHING_UNSUPPORTED) makes each row first look for the existing record it describes. keys holds 1 to 3 keys, tried in order until one finds a record:
{ kind: "FIELD", dataFieldSimplyId }: a text, email, phone, or number field mapped from a column. Values compare as duplicate rules compare them (case and spacing ignored), against active records of the Collection. A Collection too large to compare in one import is refused with422 MATCH_SCAN_TOO_LARGE; use a Simply ID or external ID key instead.{ kind: "SIMPLY_ID", column }: a column, not mapped to a field, holding the Simply ID of a record of this Collection. An ID that names no active record of the Collection is aMATCH_NOT_FOUNDrow error.{ kind: "EXTERNAL_ID", column, teamIntegrationSimplyId, externalEntityType }: a column, not mapped to a field, holding another system's record ID, such as a Raiser's Edge NXT constituent system ID or gift ID. At most one key per import.
onMatch is UPDATE (the default) or SKIP. UPDATE needs permission to edit records in the Collection (403 PERMISSION_DENIED) and writes the row's non-blank values to the matched record through the ordinary record update, so a blank cell leaves that field unchanged and a matched row needs no required field. SKIP leaves the matched record unchanged. A row whose keys find nothing creates a record as usual. An unusable key (a field that is not mapped, a type that cannot match, a mapped or missing key column, or a repeated key) is refused with 422 MATCH_KEY_INVALID.
Matching compares a key against every record of the Collection, so it needs a caller whose Security Scope covers all of them (for UPDATE, scope to change them; for SKIP, to see them). Otherwise preview and create refuse the whole plan with 403 MATCHING_SCOPE_RESTRICTED, so no row's outcome reveals whether a record the caller cannot see holds a value; import without a key instead, or ask someone with full access.
The import never guesses. A key that finds more than one record is an AMBIGUOUS_MATCH row error, and two rows that would write the same record or share any key value (not only the key that decided them) are both DUPLICATE_KEY_IN_FILE. The preview's summary.match counts create, update, skip, and ambiguous rows. Each row's decision is saved when the import is created, and a run acts on that saved record rather than searching again. Before writing, a run checks the caller's current edit permission and Security Scope for that record: a matched record archived or moved out of reach since then fails its row with MATCHED_RECORD_UNAVAILABLE, and a refused update fails its row with the update's error code. Retrying a create request with the same idempotencyKey and identical inputs returns the saved import even if records changed in between; different inputs under that key are 409 RECORD_IMPORT_CONFLICT. Updated rows report UPDATED and skipped rows SKIPPED, and a matched import's counts add updated and skipped (they are absent for an import without matching). Undo archives only the records the import created; updated records keep their imported values.
An EXTERNAL_ID key needs TEAM_ADMIN_INTEGRATIONS with edit access (403 EXTERNAL_ID_PERMISSION_DENIED), because it changes what that integration's sync does. The preview response's externalIdTargets lists the kinds of ID the caller may use for this Collection (teamIntegrationSimplyId, integrationProviderName, integrationDisplayName, externalEntityType): one per active integration and entity type its sync writes into this Collection. It is omitted when there are none, including for a caller without that permission. Raiser's Edge NXT supports constituent (People), organization (Organizations), and gift (Financial Transactions), as its companion Blueprint links those Collections. Any other combination is refused with 422 EXTERNAL_ID_TARGET_INVALID. The key matches records already linked to that ID, and every created or matched record is linked to it, so the next sync updates the record instead of adding a duplicate. An ID linked to an archived record or one in another Collection is EXTERNAL_LINK_UNAVAILABLE, and an ID or record already linked to something else is EXTERNAL_ID_CONFLICT. Permission and the integration are checked again on create and before each row is written. A row writes its record first and links it after. If the sync links the same ID in between, the row keeps the record it created or updated, reports EXTERNAL_ID_CONFLICT so the records can be reviewed, and the import ends PARTIAL; failureCounts counts such rows with the failed ones. Undo removes every link to the records it archives, whichever integration made it (a link an integration's update history still references is detached from the record instead), and stays UNDOING with 409 UNDO_INCOMPLETE while one remains; links to matched records stay.
Continuation and Undo
Imports move through VALIDATED, RUNNING, COMPLETED, or PARTIAL. Each source row has a stable create UUID, so repeating a chunk cannot duplicate its record. Rows are written as imports: duplicate rules apply according to their "on import" setting, a BLOCK match fails the row with CREATE_POLICY_REJECTED, and a QUEUE_FOR_REVIEW match creates the record and adds the pair to the review queue. Undo moves through UNDOING to UNDONE, using durable creation receipts and the ordinary ARCHIVE operation. It preserves reused Media records, Media from existing ZIPs, and pre-existing records. Undo can remain UNDOING while an import-owned file scan or Media registration is still finishing; continue undo until it settles. Closing the CSV drawer stops its continuation requests; the import can be resumed with its Simply ID. File fetching already queued through Import from link continues in the background.
SDK and Tools
The SDK exposes s360.recordImports with preview, create, get, listRows, start, run, undo, and bounded wait; the request and response types include columnTransforms, fixedValues, matching, externalIdTargets, optionsForFields, field options, and sourceFormat. Hosted MCP exposes preview/get/list tools and mutation tools, and preview_csv_record_import and draft_create_csv_record_import accept statement Files, columnTransforms, fixedValues, and matching (and the preview tool optionsForFields). A create draft lists the match keys and how many rows create, update, or skip a record. Ask Simply prepares create/start/run/undo drafts for a person to review; each approved run processes a bounded chunk. Use the screen, SDK, or MCP to continue larger imports after approval.