{"lexicon":1,"id":"money.atmosphere.payment.registerCreatorProof","defs":{"main":{"type":"procedure","description":"Register a creator proof URI written by the originating app on the creator's PDS via OAuth. Requires a service-auth JWT signed by the originator DID with lxm matching this NSID.","input":{"encoding":"application/json","schema":{"type":"object","required":["paymentId","creatorProofUri","creatorProofCid"],"properties":{"paymentId":{"type":"string","maxLength":128},"creatorProofUri":{"type":"string","format":"at-uri"},"creatorProofCid":{"type":"string","format":"cid"}}}},"output":{"encoding":"application/json","schema":{"type":"object","required":["paymentId","creatorProofUri","creatorProofCid"],"properties":{"paymentId":{"type":"string","maxLength":128},"creatorProofUri":{"type":"string","format":"at-uri"},"creatorProofCid":{"type":"string","format":"cid"},"alreadyRegistered":{"type":"boolean"}}}},"errors":[{"name":"AlreadyRegistered","description":"A different creator proof is already registered for this payment."},{"name":"OriginatorDidMismatch","description":"Caller is not the payment's originating app."},{"name":"CreatorProofUriAuthorityMismatch","description":"Record URI authority does not match the creator DID."},{"name":"PaymentNotFound","description":"Payment not found."},{"name":"RegistrationFailed","description":"The creator proof could not be verified or registered."}]}}}