{"lexicon":1,"id":"money.atmosphere.payment.getCheckoutStatus","defs":{"main":{"type":"procedure","description":"Poll a checkout started with money.atmosphere.payment.createCheckout. A JSON procedure (the statusToken travels in the body, never in a URL) requiring app inter-service auth (lxm = money.atmosphere.payment.getCheckoutStatus); the checkout is resolved by (authenticated iss, statusToken) and every malformed, unknown, or wrong-originator lookup returns the single uniform CheckoutNotFound. The status capability never expires by time. An authenticated exact-originator status of completed is an authoritative fulfilment trigger for XRPC-only apps: it reflects the same processor-settled ledger fact the signed webhook carries. The receipt and proof refs are independently verifiable evidence, not the trigger. Responses are Cache-Control: private, no-store and bypass any CDN; brokers must not log the statusToken, the response, or the payer/payment graph in access, error, or trace telemetry. Served only where ATM's native checkout is enabled; elsewhere the method is not implemented. Replaces the retired network.attested.payment.status.","input":{"encoding":"application/json","schema":{"type":"object","required":["statusToken"],"properties":{"statusToken":{"type":"string","minLength":1,"maxLength":256,"description":"The statusToken returned by money.atmosphere.payment.createCheckout. Never a browser bearer; never placed in a URL."}}}},"output":{"encoding":"application/json","schema":{"type":"object","required":["status","paymentId","expiresAt","payer","fulfillment"],"properties":{"status":{"type":"string","maxLength":16,"knownValues":["pending","completed","failed","canceled","expired"],"description":"Checkout lifecycle, independent of later payment lifecycle. pending: an admitted checkout has a durable fenced pre-instrument observation or a processor confirmation could still settle it; this may persist beyond expiresAt and advisory finalizesAt, after a cancel gesture, or after a recoverable decline. Every other value is terminal: completed requires authenticated processor settlement; failed, canceled and expired require authenticated irreversible nonsettlement evidence covering every admitted instrument and mint claim, with no in-flight confirmation and observation closed. A timer alone never creates a terminal. Apps stop checkout polling only at a terminal status; refunds, disputes and subscription lifecycle never regress it."},"paymentId":{"type":"string","minLength":1,"maxLength":256},"expiresAt":{"type":"string","format":"datetime","description":"The browser checkout lifetime from createCheckout; informational here, since the status capability itself does not expire."},"completedAt":{"type":"string","format":"datetime","description":"Present exactly when status is completed: the processor settlement time, the timestamp apps rely on."},"amount":{"type":"integer","minimum":0,"description":"Present only when status is completed, always with currency: the amount ATM settled for this checkout, in minor units, after any discount code. For a subscription, the first invoice. Refunds and disputes do not change it."},"currency":{"type":"string","minLength":3,"maxLength":3,"description":"Present exactly when amount is present: lowercase ISO 4217 currency of amount."},"payer":{"type":"ref","ref":"#payer"},"receipt":{"type":"ref","ref":"com.atproto.repo.strongRef","description":"The payer's published money.atmosphere.payment receipt, present only when the payer consented to publication and the receipt is confirmed landed."},"proof":{"type":"ref","ref":"com.atproto.repo.strongRef","description":"ATM's money.atmosphere.payment.proof for this settlement, present only once the v1 writer is active and the proof is confirmed."},"finalizesAt":{"type":"string","format":"datetime","description":"Optional only while pending: an advisory reconciliation target at or after browser expiresAt, never a guaranteed latest settlement instant or permission to stop polling. It may be absent before instrument creation or when no defensible estimate exists. Pending remains pending after this target; the broker reconciles and alerts without inventing failed, canceled, expired or completed. A current authoritative pending observation is distinct from unavailable authority or failed reads."},"fulfillment":{"type":"string","maxLength":32,"knownValues":["not_applicable","fulfil","order_pending","order_conflict"],"description":"Required on every response. not_applicable: status is not completed. fulfil: settled and, for non-routed checkouts, authoritative to fulfil now. order_pending / order_conflict: routed commerce — payment settled but the order projection has not yet re-established or could not re-establish its inventory/order preconditions (for example the reservation lapsed before settlement); fulfil only from money.atmosphere.order.getOrder / the order.updated event, never from this value alone."}}}},"errors":[{"name":"CheckoutNotFound","description":"Uniform result for a malformed, unknown, or not-yours status token. Rate-limited per IP and per authenticated app."},{"name":"AuthenticationRequired","description":"The service-auth JWT is missing or does not name this method and broker."},{"name":"RateLimitExceeded","description":"Too many requests from this network or app. Retry later."},{"name":"CheckoutUnavailable","description":"Status is temporarily unavailable, including while ATM has paused native checkout. Retry later; this is not a checkout outcome."}]},"payer":{"type":"object","description":"The checkout's payer identity as ATM holds it, disclosed to the exact originator under the private originator-disclosure rule: once a checkout is account-bound, did and provenance are both present and every returned DID is authoritative; for a checkout that is not account-bound both are absent. The snapshot freezes at the first terminal status (completed, failed, canceled, or expired) and never changes afterwards; post-terminal guest claims are buyer-side authority only. No hint or unverified app claim ever enters this object. The public-records policy caps publication, not this private disclosure, and the payer is told before any ATM login or account switch that the confirmed account will be shared with the named originating app.","required":["binding","revision"],"properties":{"binding":{"type":"string","maxLength":16,"knownValues":["fixed","switchable","none"]},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Increments on every payer change while status is pending (each account switch on a switchable checkout). At the FIRST terminal status — completed, failed, canceled, or expired — the payer snapshot in this response freezes for good: originator-facing payer revisions are rejected/ignored after any terminal, and a later guest claim links the payment to a DID for the buyer's own dashboard and management authority only and is never surfaced here. An app may therefore stop polling at any terminal status without missing an identity change. 0 means the payer never changed after creation."},"did":{"type":"string","format":"did","description":"The final authoritative buyer DID. Present exactly when the checkout is account-bound, always together with provenance; absent for a guest checkout that is not account-bound."},"provenance":{"type":"string","maxLength":32,"knownValues":["app_asserted","atm_authenticated","guest_claimed"],"description":"Present exactly when did is present. app_asserted: a verified single-use payer service-auth assertion supplied through the app (the assertion, not the app, is the authority). atm_authenticated: the checkout-host OAuth session for that DID. guest_claimed: the verified processor/email-bound guest-claim flow completed BEFORE settlement. All three are canonical payer authority; a bare hint or unverified app claim is never returned."}}}}}