Skip to main content

Overview

Purchase order import creates PO headers and line items in one request. Each PO row requires header keys plus at least one line in lines[].

Quick Start

  1. Build purchaseOrders[] with PO headers and nested lines.
  2. POST to /api/import/purchase-orders.
  3. Poll /api/import/status/[jobId] for row-level failures.

Header Fields

Line Fields (lines[])

Validation Rules

  • purchaseOrders[] must be present and non-empty.
  • Header requires externalPoNumber, supplierId, destinationLocationId, and non-empty lines[].
  • Line numbering is derived by array position (1..n).

Common Errors