{"lexicon":1,"id":"money.atmosphere.payment.receipt","defs":{"main":{"type":"record","key":"tid","description":"An immutable, profile-qualified settlement assertion for one payment. Authenticated record provenance identifies its author; a submitting agent does not become that author. The identified commerce profile money-atmosphere-v1 and personal-transfer profile money-atmosphere-p2p-v1 require their own matching-authority proof and lifecycle rules. Commerce refunds/disputes and P2P evidence review/invalidation append profile-specific lifecycle records without modifying the receipt. A signed receiptRetraction at the receipt's rkey withdraws this exact payer assertion without creating a successor receipt; it does not withdraw funds. Settlement evidence is not necessarily a tax invoice, accounting document, delivery proof or current entitlement. A bounded lifecycle read proves only a prefix; current published standing needs qualified complete source evidence and is not real-time ledger authority. Future Space placement is separately qualified and is not enabled by this schema. The schema alone neither selects a profile nor authorizes a writer.","record":{"type":"object","required":["recipients","value","settlement","settledAt","nonce","proofs"],"properties":{"recipients":{"type":"array","minLength":1,"maxLength":32,"items":{"type":"ref","ref":"money.atmosphere.payment.defs#recipientScope"},"description":"Authoritative recipient scopes for this payment, interpreted only after verification of the supported commitment profile. money-atmosphere-v1 admits exactly one scope with optional historical purchase contexts; money-atmosphere-p2p-v1 admits exactly one recipient DID and forbids contexts. The complete array is committed. This field alone neither allocates value, asserts payout nor grants access. Under P2P the verified profile additionally attests actual single-recipient principal credit. Multiple scopes require a separately reviewed profile. The retired purchases field is not an alias."},"value":{"type":"union","refs":["money.atmosphere.payment.defs#fiatMinor","money.atmosphere.payment.defs#assetAtomic"],"description":"The single authoritative, profile-qualified settled payment amount. The admitted meanings are finite: money-atmosphere-v1 retains the final commercial obligation after discounts and including charged tax, not necessarily payer tender or recipient payout; money-atmosphere-p2p-v1 means positive same-asset principal actually debited and credited equally between the qualified payer and recipient wallets, excluding separately accounted network fees. Commerce admits the existing fiatMinor and assetAtomic tags; P2P admits only assetAtomic. A new profile token does not itself admit another value meaning. The wire union remains open for AT Protocol evolution, but each verifier enforces its profile: legacy top-level amount/currency fields and mixed or unknown variants remain record-invalid under money-atmosphere-v1 per COMMITMENT_PROFILE.md; P2P rejects them before interpretation. Historical v1 values and bytes are never reinterpreted. No stablecoin peg is asserted."},"settlement":{"type":"union","refs":["money.atmosphere.payment.defs#attestedSettlement"],"description":"Committed open settlement union. money-atmosphere-v1 and money-atmosphere-p2p-v1 admit only #attestedSettlement with exact authority DID and visible-ASCII transactionId. Both require their profile-qualified matching-authority proof; P2P requires exactly one and an authority distinct from payer and recipient. Under money-atmosphere-v1, flat transactionId/transactionIdAuthority fields, mixed branches and unknown branches remain record-invalid, and the attested branch requires at least one proof including the producer's matching-authority proof. P2P rejects flat legacy fields, mixed branches and unsupported branches before interpretation. Future chain and Zone branches require separate reviewed admission; reserved names grant no verification or execution authority."},"settledAt":{"type":"string","format":"datetime","description":"UTC instant at which the canonical accepted-settlement authority asserts the settlement transition occurred (millisecond precision, Z suffix). Not the checkout-creation time and not the record-publication time. Under money-atmosphere-p2p-v1 it is the authority's qualified rail settlement time (initial Tempo: the authenticated containing block timestamp), never observation, proof-issuance or consent time. This description admits no chain branch."},"nonce":{"type":"string","minLength":32,"maxLength":32,"description":"Exactly 32 lowercase hexadecimal characters (implementations MUST enforce ^[0-9a-f]{32}$) encoding 128 bits that MUST be generated by a cryptographically secure random generator, once per payment, never derived from other fields, never reused. Committed with the record. The hiding property (a public proof reveals nothing about an unpublished record's existence) holds only against parties who do not know the nonce and is conditional on its uniform randomness and SHA-256 preimage resistance."},"proofs":{"type":"array","minLength":0,"maxLength":10,"items":{"type":"ref","ref":"com.atproto.repo.strongRef"},"description":"Immutable references to money.atmosphere.payment.proof records in each attester repository; each cid is the exact outer AT record CID. The array is fixed at creation and is the only field excluded from the author-bound receipt commitment; settlement remains committed. Its schema permits an empty array only to reserve separately admitted future profiles. money-atmosphere-v1 receipts retain their required matching-authority broker proof and existing COMMITMENT_PROFILE.md role rules. Every ATM-written receipt requires the matching-authority broker proof of its selected profile. Under v1, the optional computed recipient acknowledgment may be discovered later and never changes this array; unrelated non-broker refs cannot supply lifecycle authority. Under money-atmosphere-v1 every reference whose URI authority equals committed settlement.authority must have a canonical 13-character TID key or the whole receipt is record-invalid. money-atmosphere-p2p-v1 requires exactly one matching-authority proof at a canonical TID and excludes additional attestations and recipient acknowledgments. Each attested profile writes proof plus settled genesis atomically before its payer receipt. Unknown or mixed profiles never supply a fallback attestation."}}}}}}