Skip to main content

Upload Lot Document

POST 

/api/v2/fifo-layers/:fifoLayer/documents

File a compliance document against a lot.

Required scope: inventory:write

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

A Certificate of Analysis belongs to the lot, not the purchase order: one purchase order receives many lots, one lot can arrive across many purchase orders, and a recall is scoped by lot.

Set apply_to_batch to link the same stored file to every lot sharing this lot's batch number — a supplier batch routinely lands as several lots (two warehouses, a split receipt), and the certificate covers the batch.

Send as multipart/form-data. Max file size 20 MB.

Request

Responses

OK

Response Headers
    Content-Type