Skip to main content
GET
Get installment series

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

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.

Path Parameters

series_id
string<uuid>
required

Installment series identifier (UUID).

Example:

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

Response

OK. The series and its installments.

boletos
object[] | null
required
closed
boolean
required

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>
required
ledgerId
string
required

Midaz ledger the installments were written with. Always present.

organizationId
string
required

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

seriesId
string
required
status
enum<string>
required

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.

Available options:
CREATED,
COMPLETED,
PARTIAL_FAILURE,
FAILED
totalAmount
string
required