Skip to main content

Overview

The Purchase Orders importer creates or updates Purchase Orders and their Purchase Order Lines from a single CSV. The CSV is denormalized: one row per PO line, with the PO header columns repeated across every row that belongs to the same PO. Example: two POs, three lines. Rows sharing the same po_number are merged into a single PO header. If a header column is included in your CSV, it must be populated on every row of that PO and all values must match. Any blank cell or any value that disagrees with another row of the same PO fails the import with a per-conflict error before any data is written.

Header columns

These describe the PO itself. If you include a header column in your CSV, it must be present and identical on every row that shares a po_number. Otherwise the import fails.

Line columns

These describe a single PO line. Every row contributes one line if any line column is populated.
A row that populates only header columns (no part_number or other line column) contributes to the PO header but does not create a line. Use this to create or update a PO without lines.

Fees

The fees column accepts a semicolon-delimited list of fee records. Each record uses two bracketed fields after the fee name:
Example: Shipping[50.00][currency];VAT[8.5][percentage]
Fee names must be unique within a PO. Duplicate fee names in the same row’s fees cell are rejected at validation.

Custom attributes

Any column not in the standard set above is treated as a custom attribute. The importer routes each column to either PO-level or PO-line-level attributes based on which table defines it in your organization’s attribute configuration:
  • A column matching a PO custom attribute is attached to the PO.
  • A column matching a PO-line custom attribute is attached to the line.
  • A column matching both is ambiguous and rejected. Rename one side to disambiguate.
  • A column matching neither is rejected as unrecognized.
Matching is case- and format-sensitive, so a CSV header BatchID matches an attribute keyed BatchID only.

Header conflicts

Header-column conflicts are collected across all POs and reported together, so you can fix everything in one pass. For general import behavior, empty cell handling, and error reporting, see Importers.