Export Planning Policies
GET/api/manufacturing/mrp/planning-policies/export
Download item planning policies as a spreadsheet. The columns are the import template's own columns, in the template's order, so an exported file can be edited and handed straight back to the importer.
Authorization: requires the mrp.view permission and a token carrying the mrp:read scope (manufacturing:read also satisfies it).
Response is a file download, not JSON: an Excel workbook for format=xlsx, text/csv for format=csv. Column headings: product_id, product_sku, warehouse, planning_method, procurement_type, lot_sizing_rule, lead_time_source, lead_time_days, safety_stock, safety_lead_time_days, reorder_point, reorder_up_to_level, order_minimum, order_multiple, order_maximum, fixed_order_quantity, period_order_days, days_of_supply, eoq_ordering_cost, eoq_holding_cost_pct. Enum columns carry display labels, and a blank warehouse cell means the item-level default policy.
With scope=filtered the same filters and sort as GET /api/manufacturing/mrp/planning-policies apply, including their operator forms (filter[safety_stock.less_than], filter[planning_method.is_one_of], filter[updated_at.between], and the same for id, procurement_type, lot_sizing_rule, lead_time_source, warehouse_id, reorder_point, reorder_up_to_level, order_minimum, order_multiple, order_maximum, lead_time_days, low_level_code and created_at).
format=xlsx (the default) returns a workbook; format=csv returns a comma-separated file. Any other value is treated as xlsx. At most 50,000 rows are exported.
mrp:read|manufacturing:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Request
Responses
- 200
- 401
- 403
- 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.
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.