Pular para o conteúdo principal
GET
Get installment series

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

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 caminho

series_id
string<uuid>
obrigatório

Installment series identifier (UUID).

Exemplo:

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

Resposta

OK. The series and its installments.

boletos
object[] | null
obrigatório
closed
boolean
obrigatório

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>
obrigatório
ledgerId
string
obrigatório

Midaz ledger the installments were written with. Always present.

organizationId
string
obrigatório

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

seriesId
string
obrigatório
status
enum<string>
obrigatório

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.

Opções disponíveis:
CREATED,
COMPLETED,
PARTIAL_FAILURE,
FAILED
totalAmount
string
obrigatório