Saltar al contenido principal
POST
Confirm a bulk adoption

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

Idempotency-Key
string
requerido

Client-supplied idempotency key, a UUID. Required: a request without it, with a value that is not a UUID, or with the nil UUID (00000000-0000-0000-0000-000000000000) is refused with 400 PBP-0012.

Parámetros de ruta

inventory_run_id
string<uuid>
requerido

Identifier of the inventory consumption.

Ejemplo:

"0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a20"

Cuerpo

application/json
expectedCount
integer<int64>
requerido

The preview's eligibleCount with the same filter: every adoptable divergence, even above 5,000. Another count than the current one is refused with 409 PBP-0822.

Rango requerido: x >= 1
Ejemplo:

1840

previewFingerprint
string
requerido

The preview's previewFingerprint with the same filter, recomputed over the adoptable group now; another one is refused with 409 PBP-0822.

Pattern: ^[0-9a-f]{64}$
Ejemplo:

"9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0a2b4d6f8091a3c5e7f9b1d3f5a7"

reason
string
requerido

Reason for the bulk adoption, recorded in the audit trail. Must not carry personal data.

Required string length: 10 - 500
Ejemplo:

"Initial load reviewed with the treasury."

productType
string

Product type filter of the preview confirmed; left out for every type. Only 01 and 07 are adopted; any other is refused with 422 PBP-0801.

Pattern: ^[0-9]{2}$
Ejemplo:

"01"

Respuesta

Accepted. The batch is created, and its items are processed in the background. Follow it with GET /v1/collections/enablement-batches/{batch_id}.

adopted
integer<int64>
requerido

Items whose registration change was accepted and whose agreement became ACTIVE (BULK_ADOPTION; 0 in an enablement).

Rango requerido: x >= 0
Ejemplo:

0

createdAt
string<date-time>
requerido

When the batch was accepted, RFC 3339 in UTC.

Ejemplo:

"2026-11-11T10:00:00Z"

enabled
integer<int64>
requerido

Items whose holder was accepted (ENABLEMENT; 0 in a bulk adoption).

Rango requerido: x >= 0
Ejemplo:

4900

failed
integer<int64>
requerido

Items that ended with an error.

Rango requerido: x >= 0
Ejemplo:

20

id
string<uuid>
requerido

Identifier of the batch.

Ejemplo:

"0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a21"

kind
enum<string>
requerido

ENABLEMENT: an enablement of accounts (createEnablementBatch). BULK_ADOPTION: a bulk adoption of the MISSING_LOCALLY divergences of an inventory.

Opciones disponibles:
ENABLEMENT,
BULK_ADOPTION
Ejemplo:

"ENABLEMENT"

pending
integer<int64>
requerido

Items still in progress, including those HELD_BY_ALERT and the adoptions waiting for the Núclea to accept the registration change (DDA0502).

Rango requerido: x >= 0
Ejemplo:

80

state
enum<string>
requerido

PROCESSING while an item is in progress; then COMPLETED when every item succeeded, or COMPLETED_WITH_ERRORS when some item failed.

Opciones disponibles:
PROCESSING,
COMPLETED,
COMPLETED_WITH_ERRORS
Ejemplo:

"PROCESSING"

totalItems
integer<int64>
requerido

Items of the batch.

Rango requerido: 1 <= x <= 5000
Ejemplo:

5000

completedAt
string<date-time> | null

When the last item ended, RFC 3339 in UTC; null while the batch is PROCESSING.

Ejemplo:

"2026-11-11T10:30:00Z"

inventoryRunId
string<uuid> | null

Inventory the bulk adoption adopts from; null for an enablement.

Ejemplo:

"0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a31"

productTypeFilter
string | null

Product type the bulk adoption is limited to; null for every product type, and for an enablement.

Pattern: ^[0-9]{2}$
Ejemplo:

"01"