Skip to main content
GET
Get an agreement divergence

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Path Parameters

divergence_id
string<uuid>
required

Identifier of the divergence.

Example:

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

Response

OK. The divergence.

detectedAt
string<date-time>
required

When the divergence was detected, RFC 3339 in UTC.

Example:

"2026-11-10T12:00:00Z"

id
string<uuid>
required

Identifier of the divergence.

Example:

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

kind
enum<string>
required

What the reconciliation found. MISSING_IN_NUCLEA: a live collections agreement the beneficiary base lacks. MISSING_LOCALLY: an agreement of the base that collections lacks, registered outside collections. ATTRIBUTE_MISMATCH: an agreement whose attributes differ between the two. SITUATION_MISMATCH: an agreement whose situation differs between the two.

Available options:
MISSING_IN_NUCLEA,
MISSING_LOCALLY,
ATTRIBUTE_MISMATCH,
SITUATION_MISMATCH
Example:

"MISSING_LOCALLY"

state
enum<string>
required

Where the divergence is in the operator's queue. OPEN: waiting. RESOLVING: its correction or adoption is in flight. RESOLVED: corrected or adopted.

Available options:
OPEN,
RESOLVING,
RESOLVED
Example:

"OPEN"

accountId
string<uuid> | null

Midaz account of the agreement or, on an open MISSING_LOCALLY, the holder's single ledger account; null when there is none.

Example:

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

adoptionBlockReason
enum<string> | null

Only on a MISSING_LOCALLY: why it is not adopted without the operator's decision. AMBIGUOUS_ACCOUNT: the holder has several ledger accounts. NO_LEDGER_ACCOUNT: the holder has none, or the person was not found. Null when the holder has a single account, answered in accountId. After an adoption with an account given, it stays as history.

Available options:
AMBIGUOUS_ACCOUNT,
NO_LEDGER_ACCOUNT,
null
Example:

"AMBIGUOUS_ACCOUNT"

agreementId
string<uuid> | null

Collections agreement the divergence is about; null when collections holds none.

Example:

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

beneficiaryId
string<uuid> | null

Collections beneficiary the divergence is about; null when collections holds none.

Example:

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

fields
object[]

The attributes that differ; empty when the divergence lists none.

Maximum array length: 32
inventoryRunId
string<uuid> | null

Consumption of the inventory that raised the divergence; null when none did.

Example:

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

nucleaBeneficiaryNumber
string | null

Number of the beneficiary at NΓΊclea; null when the divergence has none.

Pattern: ^[0-9]{1,19}$
Example:

"1234567890123"

organizationId
string<uuid> | null
read-only

Midaz organization of the related account; null when there is none.

Example:

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

productType
string | null

Product type of the diverging agreement at NΓΊclea, two digits, as the base carries it; null when the divergence is not about an agreement.

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

"01"

resolution
enum<string> | null

How the divergence was resolved. CORRECTED: the base was corrected from what collections holds. ADOPTED: collections adopted what the base holds. Null until it is resolved.

Available options:
CORRECTED,
ADOPTED,
null
Example:

"ADOPTED"

resolvedAt
string<date-time> | null

When the divergence was resolved, RFC 3339 in UTC; null until it is resolved.

Example:

"2026-11-10T13:00:00Z"