Saltar al contenido principal
GET
Get a credit entry

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Parámetros de ruta

credit_entry_id
string<uuid>
requerido

Identifier of the credit entry.

Ejemplo:

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

Respuesta

OK. The credit entry.

amount
string
requerido

Amount the entry moves in reais, the write-off's, as a decimal string with two decimal places.

Maximum string length: 32
Pattern: ^[0-9]{1,15}(\.[0-9]{1,2})?$
Ejemplo:

"1000.00"

counterpartyAlias
string
requerido

Alias of the ledger account on the other side of the entry: resolved once per write-off for its RELEASE, which takes the money from it, and kept for the CHARGEBACK, which returns the money to it. Present on every entry.

Maximum string length: 100
Ejemplo:

"@external/BRL"

createdAt
string<date-time>
requerido

When the entry was recorded, RFC 3339 in UTC.

Ejemplo:

"2026-11-12T09:00:00Z"

id
string<uuid>
requerido

Identifier of the credit entry.

Ejemplo:

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

ledgerKey
string
requerido

Idempotency key the entry is presented to the ledger with: one per write-off and phase, never presented with another body.

Maximum string length: 128
Ejemplo:

"col:7c9e6679-7425-40de-944b-e07fc1f90ae7:5b0c1e2d-3f4a-4b5c-8d6e-7f8091a2b3c4:RELEASE"

organizationId
string<uuid>
requerido
read-only

Midaz organization of the title's account.

Ejemplo:

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

phase
enum<string>
requerido

What the entry moves. RELEASE: the write-off's amount, from the counterparty to the available balance of the title's account, when the credit is released. CHARGEBACK: the same amount back, from that balance to the counterparty of the RELEASE, when the write-off is cancelled after its release.

Opciones disponibles:
RELEASE,
CHARGEBACK
Ejemplo:

"RELEASE"

state
enum<string>
requerido

Where the entry stands with the ledger. PENDING_CALL: not posted yet: waiting to be presented, presented without an answer yet, or waiting for an operator in the STUCK_CREDIT_ENTRY queue, with lastError saying why. POSTED: posted by the ledger, in ledgerTransactionId. ABANDONED: final, without any effect on the ledger.

Opciones disponibles:
PENDING_CALL,
POSTED,
ABANDONED
Ejemplo:

"PENDING_CALL"

titleId
string<uuid>
requerido

Collections title of the write-off.

Ejemplo:

"7c9e6679-7425-40de-944b-e07fc1f90ae7"

writeOffId
string<uuid>
requerido

Write-off whose credit the entry moves.

Ejemplo:

"5b0c1e2d-3f4a-4b5c-8d6e-7f8091a2b3c4"

accountId
string<uuid>

Midaz account of the title, whose available balance the entry credits or debits.

Ejemplo:

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

attempts
integer<int64>

How many times the entry was presented to the ledger.

Rango requerido: x >= 0
Ejemplo:

1

lastError
enum<string> | null

Why the entry is not posted, as a closed code and never the ledger's own text. LEDGER_NO_RESPONSE: the ledger gave no outcome in time. HOST_REFUSED_UNPROVEN: no outcome came in time, and the entry carries unprovenRefusalReason: the host's own checks refused one of its presentations before the ledger without making the refusal final, and the presentations after that refusal got no outcome either. Such a refusal does not prove an earlier presentation of the entry did not post, so only a look-up of the entry's key in the ledger settles it. INSUFFICIENT_FUNDS: the balance the entry debits was short of its amount. ACCOUNT_BLOCKED: the account is blocked. ACCOUNT_NOT_ELIGIBLE: the account does not take the entry. COUNTERPARTY_UNAVAILABLE: the counterparty cannot be moved from or to. ROUTE_REFUSED: the entry's transaction route refused it. KEY_CONFLICT: the entry's key was already used with another body. Present while the entry waits for an operator, and kept on an entry abandoned after a refusal. Null otherwise: on a POSTED entry, while the entry waits for its presentation or its answer, and on an entry abandoned without a refusal.

Opciones disponibles:
LEDGER_NO_RESPONSE,
HOST_REFUSED_UNPROVEN,
INSUFFICIENT_FUNDS,
ACCOUNT_BLOCKED,
ACCOUNT_NOT_ELIGIBLE,
COUNTERPARTY_UNAVAILABLE,
ROUTE_REFUSED,
KEY_CONFLICT
ledgerTransactionId
string<uuid> | null

Transaction the ledger posted the entry in; null in every state but POSTED.

Ejemplo:

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

postedAt
string<date-time> | null

When the ledger posted the entry, RFC 3339 in UTC; null in every state but POSTED.

Ejemplo:

"2026-11-12T09:00:02Z"

unprovenRefusalReason
enum<string> | null

Reason of the last refusal the host's own checks gave the entry before the ledger without making it final, as a closed code from the reasons of lastError: a refusal that does not prove an earlier presentation of the entry did not post, so the entry is presented again and, once its time runs out, waits for an operator with lastError HOST_REFUSED_UNPROVEN. A later refusal of that kind replaces it. A later presentation without an outcome keeps it, so the reason may answer an earlier presentation than the last one; it is kept while the entry waits for an operator. Null on an entry that got no such refusal, and once the entry is posted, refused for good, or presented again after the ledger showed no posting under its key.

Opciones disponibles:
INSUFFICIENT_FUNDS,
ACCOUNT_BLOCKED,
ACCOUNT_NOT_ELIGIBLE,
COUNTERPARTY_UNAVAILABLE,
ROUTE_REFUSED,
KEY_CONFLICT