Skip to main content

Export Expiry Report (async)

GET 

/api/inventory-expiry/export

Starts an asynchronous CSV export of the expiry report (lot-detail or product-summary view).

Required scope: reports:read

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

The export runs as a tray-tracked job: a full lot-detail export can run for minutes, and a synchronous response that long is terminated by the edge proxy (Cloudflare 524). The CSV is built off the request cycle, written to the model-exports disk, and surfaced as a download via the tracked job log endpoints.

Returns the tracked job log id; poll the tracked job log endpoints (or GET /api/export/download?file=...) for the finished file.

Authentication: Requires Bearer token (scope reports:read). Accepts the same filters as the report endpoint (view, warehouse_id, search, batch_number, bucket, brand_id, supplier_id, min_quantity, fba_only, near_expiry_only, and the advanced filter_groups tree on the POST variant).

Request

Responses

OK

Response Headers
    Content-Type