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.
po_numbersuppliercurrencypart_numberquantitycost
PO-001AcmeUSDWIDGET-A105.00
PO-001AcmeUSDWIDGET-B512.00
PO-002GlobexEURGADGET-X1100.00
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.
ColumnRequiredDescription
po_numberYesPO identifier. The grouping key.
original_po_numberNoExisting PO number when renaming. Lookup column — an empty cell means “no rename,” not "".
po_descriptionNoFree-text PO description.
supplierNoSupplier name. Must match an existing supplier.
ship_to_locationNoShip-to location name. Must match an existing location.
bill_to_locationNoBill-to location name. Must match an existing location.
currencyNoCurrency type (e.g. USD, EUR). Must match an existing currency.
ordered_atNoOrder date. Parsed flexibly (any pandas-recognized date format).
assigned_toNoEmail of the user the PO is assigned to. Must match an existing user.
po_intent_optionNoIntent option value at the PO level. Prefixed with po_ to disambiguate from the line-level intent_option.
po_labelsNoSemicolon-delimited list of label values to attach to the PO.
terms_and_conditionsNoTitle of a Requirement with type TERMS_AND_CONDITIONS. Overrides the org’s default.
feesNoSemicolon-delimited list of fee records. See Fees below.

Line columns

These describe a single PO line. Every row contributes one line if any line column is populated.
ColumnRequiredDescription
part_numberNoPart number for the line. Combined with revision to look up the part.
revisionNoPart revision. If omitted, the latest revision of part_number is used.
descriptionNoLine description.
quantityNoLine quantity. Must be non-negative.
costNoLine unit cost. Must be non-negative.
need_dateNoDate needed. Parsed flexibly.
estimated_arrival_dateNoEstimated arrival date. Parsed flexibly.
paidNoMarks the line as paid. Boolean field (see accepted values).
percentage_fee_exemptNoExcludes this line from percentage-based PO fees. Boolean field (see accepted values).
labelsNoSemicolon-delimited list of label values to attach to the line.
quality_clausesNoSemicolon-delimited list of quality clause titles. Must match Requirements with requirement_type = QUALITY_CLAUSE.
intent_optionNoIntent option value at the line level.
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:
Name[value][type];Name[value][type]
FieldNotes
NameRequired. Must be unique within the PO.
valueRequired. Must parse as a number.
typeRequired. One of currency or percentage.
Example: Shipping[50.00][currency];VAT[8.5][percentage]
Fee names must be unique within a PO — the database enforces this with a unique constraint on (purchase_order_id, name). 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.