Skip to main content

Bulk Map MCF Orders to Sales Orders

POST 

/api/amazon/unified/fulfillment-orders/bulk-map

Maps each unmapped order to its top suggested sales order when that suggestion is high-confidence (score ≥ min_confidence, default 90) and carries no blockers; orders without such a match are skipped with a reason. Historical orders are skipped unless include_historical is true. Requires sales_orders.fulfill. Scope is either ids (1–1000 order IDs) or apply_to_all: true with filters (the list filters as a flat map, e.g. {"mapping_status": "unmapped"}), resolved when the job runs and capped at 5,000 orders — a larger set is rejected with 422 stating the matched count. Each order is processed independently; the job's results report succeeded_count, skipped_count, failed_count, has_failures, and per-order failures[]/skipped[] with a reason. Returns tracked_job_log_id.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Request

Responses

OK

Response Headers
    Content-Type