Skip to content

MeteredInvoiceError

Sanitized expected failure from metered invoice finalization.

const MeteredInvoiceError: Schema.toTaggedUnion<"code", readonly [Schema.Struct<{
code: Schema.Literal<"invalid_input">;
}>, Schema.Struct<{
code: Schema.Literal<"invoice_conflict">;
}>, Schema.Struct<{
code: Schema.Literal<"invoice_rejected">;
reason: Schema.Literals<readonly ["subscription_not_found", "not_metered_subscription", "period_not_ended", "period_mismatch"]>;
}>, Schema.Struct<{
code: Schema.Literal<"internal_error">;
}>]>;