{"lexicon":1,"id":"money.atmosphere.payment.cancelSubscription","defs":{"main":{"type":"procedure","description":"Cancel a subscription on behalf of the authenticated payer. Requires a service-auth JWT signed by the payer DID; the JWT iss must match the subscription's payerDid.","input":{"encoding":"application/json","schema":{"type":"object","required":["paymentId"],"properties":{"paymentId":{"type":"string","maxLength":128},"reason":{"type":"string","maxLength":256}}}},"output":{"encoding":"application/json","schema":{"type":"object","required":["paymentId","status","cancelledAt"],"properties":{"paymentId":{"type":"string","maxLength":128},"status":{"type":"string","maxLength":64},"cancelledAt":{"type":"string","format":"datetime"}}}}}}}