Bulk-import proposed replenishment plans (commandes de réapprovisionnement)
Pushes the merch app’s ML-computed reorder lines into the centrale as purchase orders (bons de commande). Each orders[] item is { id, supplierId, shopId, lines: [{ skuId, orderedQuantity, unitCostCents }] } and runs through the SAME create-purchase-order use-case the interactive route uses (the supplier is validated, quantities/costs checked). Idempotent: an item whose id already exists is skipped, so re-pushing the same batch creates nothing new. A malformed / unknown-supplier item is failed without aborting the rest. Machine-only: authenticate with the service token in X-Internal-Token.
Authorizations
The data-platform SERVICE token (DATA_PLATFORM_API_TOKEN) in the X-Internal-Token header. Guards the machine-only incremental CDC export; not a user credential and never a POS session — reachable only server-to-server.
Body
The pushed orders; each item is re-validated server-side and reported per row.
1Response
A per-row report: every pushed item as created / skipped / failed.
A per-row report: every pushed item as created / skipped / failed.
One entry per pushed item, in payload order.
How many items were newly persisted.
0 <= x <= 9007199254740991How many already existed (no-op / idempotent).
0 <= x <= 9007199254740991How many were rejected (see each reason).
0 <= x <= 9007199254740991
