Skip to main content
POST
Close Unsettled TED IN Credit

Autorizaciones

Authorization
string
header
requerido

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

Encabezados

X-Idempotency
string
requerido

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 ruta

messageId
string<uuid>
requerido

The identifier of the inbound JD message.

Cuerpo

application/json

Where the money went, and why.

outcome
string
requerido

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

Ejemplo:

"RETURNED"

note
string
requerido

The operator justification.

Required string length: 10 - 500
Ejemplo:

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

Respuesta

Indicates that the closure was recorded.

messageId
string<uuid>
Ejemplo:

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

outcome
string
Ejemplo:

"RETURNED"

note
string
Ejemplo:

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

Ejemplo:

"15000.00"

closedAt
string<date-time>
Ejemplo:

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

closedBy
string

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

Ejemplo:

"acme/ana.souza"

retentionClosed
boolean
Ejemplo:

true

retentionReason
string
Ejemplo:

"RECIPIENT_NOT_FOUND_RETURN_UNAUTHORIZED"

retainedAt
string<date-time>
Ejemplo:

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

devolutionClosed
boolean
Ejemplo:

true

devolutionPreviousStatus
string

RETAINED or FAILED: the devolution status before this call.

Ejemplo:

"RETAINED"

devolutionStatus
string
Ejemplo:

"RETURNED"