Skip to main content
POST
Close Unsettled TED IN Credit

Authorizations

Authorization
string
header
required

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

Headers

X-Idempotency
string
required

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

Path Parameters

messageId
string<uuid>
required

The identifier of the inbound JD message.

Body

application/json

Where the money went, and why.

outcome
string
required

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

Example:

"RETURNED"

note
string
required

The operator justification.

Required string length: 10 - 500
Example:

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

Response

Indicates that the closure was recorded.

messageId
string<uuid>
Example:

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

outcome
string
Example:

"RETURNED"

note
string
Example:

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

Example:

"15000.00"

closedAt
string<date-time>
Example:

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

closedBy
string

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

Example:

"acme/ana.souza"

retentionClosed
boolean
Example:

true

retentionReason
string
Example:

"RECIPIENT_NOT_FOUND_RETURN_UNAUTHORIZED"

retainedAt
string<date-time>
Example:

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

devolutionClosed
boolean
Example:

true

devolutionPreviousStatus
string

RETAINED or FAILED: the devolution status before this call.

Example:

"RETAINED"

devolutionStatus
string
Example:

"RETURNED"