Skip to main content
GET
Preview a bulk adoption

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Path Parameters

inventory_run_id
string<uuid>
required

Identifier of the inventory consumption.

Example:

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

Query Parameters

productType
string

Only the divergent agreements of this product type at NΓΊclea, two digits, as the beneficiary base carries it. Left out, every type.

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

"01"

group
enum<string>

Group of the page's items. Left out, ADOPTABLE. The counts always cover the three.

Available options:
ADOPTABLE,
AMBIGUOUS_ACCOUNT,
NO_LEDGER_ACCOUNT
Example:

"ADOPTABLE"

cursor
string

Opaque cursor returned in nextCursor or prevCursor. Left out, the first page.

Maximum string length: 512
limit
integer<int64>
default:20

Most divergences per page.

Required range: 1 <= x <= 100
Example:

20

Response

OK. The preview, with the group counts and one page of items.

adoptCount
integer<int64>
required

How many the confirmation takes now: eligibleCount up to 5,000, the oldest first.

Required range: 0 <= x <= 5000
Example:

1840

eligibleCount
integer<int64>
required

Adoptable divergences now, equal to groups.adoptable: the confirmation's expectedCount.

Required range: x >= 0
Example:

1840

group
enum<string>
required

Group of the page's items.

Available options:
ADOPTABLE,
AMBIGUOUS_ACCOUNT,
NO_LEDGER_ACCOUNT
Example:

"ADOPTABLE"

groups
object
required

Count of each of the three groups, whatever group the page shows.

inventoryRunId
string<uuid>
required

Identifier of the inventory consumption.

Example:

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

items
object[]
required

The page's divergences, oldest first.

limit
integer<int64>
required

Most divergences the page holds.

Example:

20

previewFingerprint
string
required

Fingerprint of the whole adoptable group of this preview, recomputed by the confirmation: SHA-256, in lower-case hex, of the UTF-8 text \n\n followed by one line :\n per adoptable divergence, in increasing divergenceId order. The confirmation's previewFingerprint.

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

"9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0a2b4d6f8091a3c5e7f9b1d3f5a7"

nextCursor
string | null

Cursor of the page after this one; null on the last page.

Maximum string length: 512
prevCursor
string | null

Cursor of the page before this one; null on the first page.

Maximum string length: 512
productType
string | null

Product type filter applied; null for every type.

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

"01"