List lost-checkout entries
Default sort is lost_revenue_minor descending, occurred_at descending as tiebreak (R14) — this is a product invariant, not a convenience default; a client may request sort=occurred_at instead.
/ledger/entriesAuthorizationBearer token (JWT) · headerrequiredJWT issued by the external IdP via the OAuth 2.0 authorization-code flow (Kinde in
production; a simulator in test). The client obtains it and sends it as a Bearer token on
every authenticated call. Sarvex's services verify it — issuer, audience, signature
(IdP JWKS), expiry — and read identity and tenant from its claims. Sarvex does not issue
or revoke these tokens. merchant_id/store_id are read from the verified claims (and the
merchant→store mapping), never from the URL. The operator scope is required for
/operator/*. Operators acting on a specific merchant pass the X-Operate-As header,
which is recorded in the audit log.
cursorstringOpaque pagination cursor from the previous page's page.cursor.
limitintegerMaximum items per page.
causeledger_causepayment_handlerprofile_mismatchsync_freshnessescalation_dropoffplatform_errortimeoutbuyer_abandonedunclassifiedstatusledger_entry_statusopenacknowledgedresolvedstore_idstringsurfacestringfromstring<date-time>Filters by occurred_at >= from.
tostring<date-time>Filters by occurred_at <= to.
sortstringDefault lost_revenue_minor (R14). occurred_at is the one supported alternate.
lost_revenue_minoroccurred_atLost-checkout entries.
dataledger_entry[]requiredShow propertiesHide properties
ledger_entryentry_idstringoccurred_atstring<date-time>checkout_idstringstore_idstringsurfacestring | nullucp_checkoutstagestringfailure_codestringRaw serving-plane signal (e.g. CONNECTOR_CREATE_FAILED), or the literal ABANDONED for an abandonment entry.
causeledger_causeClosed classification — see internal/planes/control/ledger.Cause.
payment_handlerprofile_mismatchsync_freshnessescalation_dropoffplatform_errortimeoutbuyer_abandonedunclassifiedrecommended_actionstringMerchant-readable and imperative — what to do, never protocol jargon.
lost_revenue_minorintegerAmount in minor units (cents). Never an estimate — see revenue_unknown.
currencystring | nullrevenue_unknownbooleanTrue when no cart snapshot was available at the point of failure — lost_revenue_minor is 0 in that case, never imputed.
statusledger_entry_statusopenacknowledgedresolvedstatus_changed_atstring<date-time>created_atstring<date-time>pagepagerequiredShow propertiesHide properties
cursorstring | nullrequiredhas_morebooleanrequiredAuthenticated but not permitted (e.g. non-operator on an operator route).
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequireddetailsobject | nullRequest body failed validation.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequireddetailsobject | null