Confirm a bulk adoption
Second step of the bulk adoption. Creates a BULK_ADOPTION batch with one item per adoptable divergence of the inventory, for productType or for every type, and answers 202 with the batch.
Providers: Lerian (PCR).
How it works
- Call
GET /v1/collections/inventory-runs/{inventory_run_id}/bulk-adoption-previewfirst. Send itseligibleCountasexpectedCountand itspreviewFingerprint, with the sameproductType. - Both values are recomputed over the adoptable group as it is now. A different count, or the same count over other divergences or accounts, is refused with
PBP-0822. - An inventory has one bulk adoption in progress at a time. Another is refused with
PBP-0823. - A
productTypeoutside 01 and 07 is refused withPBP-0801. - The batch’s divergences move to
RESOLVING. - A batch holds at most 5,000 items. With more adoptable divergences, it takes the 5,000 oldest. The rest wait for the next bulk adoption, after this one ends.
- Divergences of an ambiguous account or without an account are left out.
- Items are processed in the background, each by the rule of the single adoption. Follow them with
GET /v1/collections/enablement-batches/{batch_id}andGET /v1/collections/enablement-batches/{batch_id}/items. - The action is recorded in the audit trail as
BULK_ADOPT_AGREEMENT_DIVERGENCES, with the reason.
POST
Confirm a bulk adoption
Encabezados
Parámetros de ruta
Cuerpo
application/json
Respuesta
Accepted. The batch is created, and its items are processed in the background. Follow it with GET /v1/collections/enablement-batches/{batch_id}.

