Suggest Issue Lots
READ-ONLY lot-allocation suggestions for an issue (backlog item 1 — services/batch_serial.py FEFO/FIFO wired over the org’s live lots).
Given an item (material/SKU/style) + qty (+ optional location), runs the pure FEFO (default) or FIFO engine over the live (lot, location) balances — qty_available (net of reservations) from stock_balance, expires_at / received_at / quality_status from stock_lot, org-scoped, soft-deletes excluded — and returns the suggested allocations soonest-expiry-first. Expired and non-quality-passed lots are skipped by the engine. When stock cannot cover the request the best PARTIAL allocation is returned with the shortfall (never a 400). Nothing is written: actual issuing stays with POST /stock/movements.
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.