Skip to main content
POST
Close Unsettled TED IN Credit

Autorizações

Authorization
string
header
obrigatório

JWT Bearer token authentication. The tenantId is derived from the bearer token or authenticated request context and is not supplied through X-Organization-Id.

Cabeçalhos

X-Idempotency
string
obrigatório

Required idempotency key for safe retries. Use a UUID v4 or unique business identifier. If the same key is sent again and the original request was already processed, the cached response is returned.

See Retries and idempotency for details.

Maximum string length: 255

Parâmetros de caminho

messageId
string<uuid>
obrigatório

The identifier of the inbound JD message.

Corpo

application/json

Where the money went, and why.

outcome
string
obrigatório

RETURNED, CREDITED, or ABSORBED. Accepted case-insensitively.

Exemplo:

"RETURNED"

note
string
obrigatório

The operator justification.

Required string length: 10 - 500
Exemplo:

"funds wired back to the paying bank under control number 20260901000042; treasury ticket 8812"

Resposta

Indicates that the closure was recorded.

messageId
string<uuid>
Exemplo:

"770e8400-e29b-41d4-a716-446655440003"

outcome
string
Exemplo:

"RETURNED"

note
string
Exemplo:

"funds wired back to the paying bank under control number 20260901000042"

amount
string

What this decision was worth, read from the retention when the message carried one, and from the devolution row otherwise. Omitted when no positive amount was parsed.

Exemplo:

"15000.00"

closedAt
string<date-time>
Exemplo:

"2026-02-01T15:30:00Z"

closedBy
string

The stable subject from the bearer token, never a display name.

Exemplo:

"acme/ana.souza"

retentionClosed
boolean
Exemplo:

true

retentionReason
string
Exemplo:

"RECIPIENT_NOT_FOUND_RETURN_UNAUTHORIZED"

retainedAt
string<date-time>
Exemplo:

"2026-02-01T15:29:55Z"

devolutionClosed
boolean
Exemplo:

true

devolutionPreviousStatus
string

RETAINED or FAILED: the devolution status before this call.

Exemplo:

"RETAINED"

devolutionStatus
string
Exemplo:

"RETURNED"