Saltar al contenido principal
GET
Get installment series

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

X-Organization-Id
string

Midaz organization the installments were written with. Required: a request without it, or with a value that is not a canonical UUID, is refused with 400 PBP-0025. A series of another organization is answered 404, as a missing one.

Parámetros de ruta

series_id
string<uuid>
requerido

Installment series identifier (UUID).

Ejemplo:

"123e4567-e89b-12d3-a456-426614174000"

Respuesta

OK. The series and its installments.

boletos
object[] | null
requerido
closed
boolean
requerido

Whether no installment of the series can still be paid: true when every installment is SETTLED, CANCELED, INACTIVATED, REVERSED or FAILED. Always present. It can return to false when the provider reverts the cancellation of an installment.

installmentsCount
integer<int64>
requerido
ledgerId
string
requerido

Midaz ledger the installments were written with. Always present.

organizationId
string
requerido

Midaz organization the installments were written with. Always present, and always the organization of the X-Organization-Id header.

seriesId
string
requerido
status
enum<string>
requerido

Emission outcome of the series, derived from its installments on every read. CREATED: some installment has no emission outcome yet. COMPLETED: every installment has an outcome and none is FAILED. PARTIAL_FAILURE: every installment has an outcome and some, not all, are FAILED; those carry errorMessage. FAILED: every installment is FAILED. It does not depend on payment, cancellation or write-off, and it can move from COMPLETED to PARTIAL_FAILURE or FAILED when the provider later refuses an accepted installment: a client waiting for the final outcome reads closed.

Opciones disponibles:
CREATED,
COMPLETED,
PARTIAL_FAILURE,
FAILED
totalAmount
string
requerido