Skip to main content

Import Lines from CSV

POST 

/api/purchase-orders/import-lines

Import purchase order line items from a CSV file. CSV must have a 'sku' column. Optional columns: quantity, unit_cost, description, discount_rate, tax_rate_id, pricing_tier, barcode.

Required scope: purchase-orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

If purchase_order_id is provided, lines are added/merged into that PO. If only supplier_id is provided, returns parsed line resources without saving.

Requires permission: purchase_orders.import

Request

Responses

OK

Response Headers
    Content-Type