Pular para o conteúdo principal
GET
Get a credit entry

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Parâmetros de caminho

credit_entry_id
string<uuid>
obrigatório

Identifier of the credit entry.

Exemplo:

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

Resposta

OK. The credit entry.

amount
string
obrigatório

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})?$
Exemplo:

"1000.00"

counterpartyAlias
string
obrigatório

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
Exemplo:

"@external/BRL"

createdAt
string<date-time>
obrigatório

When the entry was recorded, RFC 3339 in UTC.

Exemplo:

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

id
string<uuid>
obrigatório

Identifier of the credit entry.

Exemplo:

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

ledgerKey
string
obrigatório

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
Exemplo:

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

organizationId
string<uuid>
obrigatório
read-only

Midaz organization of the title's account.

Exemplo:

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

phase
enum<string>
obrigatório

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.

Opções disponíveis:
RELEASE,
CHARGEBACK
Exemplo:

"RELEASE"

state
enum<string>
obrigatório

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.

Opções disponíveis:
PENDING_CALL,
POSTED,
ABANDONED
Exemplo:

"PENDING_CALL"

titleId
string<uuid>
obrigatório

Collections title of the write-off.

Exemplo:

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

writeOffId
string<uuid>
obrigatório

Write-off whose credit the entry moves.

Exemplo:

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

accountId
string<uuid>

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

Exemplo:

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

attempts
integer<int64>

How many times the entry was presented to the ledger.

Intervalo obrigatório: x >= 0
Exemplo:

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.

Opções disponíveis:
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.

Exemplo:

"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.

Exemplo:

"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.

Opções disponíveis:
INSUFFICIENT_FUNDS,
ACCOUNT_BLOCKED,
ACCOUNT_NOT_ELIGIBLE,
COUNTERPARTY_UNAVAILABLE,
ROUTE_REFUSED,
KEY_CONFLICT