Skip to main content

Export Action Messages

GET 

/api/manufacturing/mrp/runs/:mrpRun/action-messages/export

Download a run's action and exception messages as a file, with each quantity/date pair split into its own column so the file can be sorted and split up in a spreadsheet. Authorization: requires the mrp.view permission and a token carrying the mrp:read scope (manufacturing:read also satisfies it). Path param: mrpRun = MRP run id. Response is a file download, not JSON: text/csv for format=csv, an Excel workbook for format=xlsx. Columns: Type, Severity, Status, Product, SKU, Warehouse, Current Qty, Current Due Date, Recommended Qty, Recommended Due Date, Days Late. Type, severity and status are written as their display labels. The export replays the same filters and sort as GET /api/manufacturing/mrp/runs/{mrpRun}/action-messages, so a narrowed list downloads as the narrowed set. The operator forms of each filter are accepted too (filter[type.is_one_of], filter[days_late.greater_than], filter[current_due_date.between], and the same for severity, status, message_class, product, product_sku, id, warehouse_id, current_qty, recommended_qty, recommended_due_date and created_at). format=csv (the default) streams the file and has no size ceiling; format=xlsx builds the workbook in memory and is refused with 422 Export too large above 1,500,000 cells. Any other value is treated as csv.

Required scope: mrp:read|manufacturing:read

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

Request

Responses

OK

Response Headers
    Content-Type
    Content-Disposition