Skip to main content

Get PO Lines for Receiving

GET 

/api/purchase-orders/:purchase_order/lines-for-receiving

Lean endpoint for the Receive drawer. Returns only the 8 fields the UI consumes (id, sku, name, barcode, img_url, quantity, received) — no COGS, no allocations, no inventory snapshots, no resource transformation.

Required scope: purchase-orders:read

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

For POs with ~1000 lines this is ~9× faster than /lines (~100ms vs ~900ms) and returns ~5× smaller payloads.

Authentication: Requires Bearer token.

product.tracks_serials and product.serial_generation_mode (none | manual | auto) tell you which lines need one serial per received unit when you call Receive Shipment.

Request​

Responses​

OK

Response Headers
    Content-Type