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.
mrp:read|manufacturing:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.