{"lexicon":1,"id":"network.attested.payment.lookup","defs":{"main":{"type":"query","description":"Look up verified payment records between a payer and a recipient.","parameters":{"type":"params","required":["payer","recipient"],"properties":{"payer":{"type":"string","format":"did","description":"DID of the payer."},"recipient":{"type":"string","format":"did","description":"DID of the recipient."},"paymentType":{"type":"string","format":"nsid","knownValues":["network.attested.payment.oneTime","network.attested.payment.recurring","network.attested.payment.scheduled"],"description":"Optional filter by payment collection. Must be a full network.attested.payment record NSID."},"brokers":{"type":"array","items":{"type":"string","format":"did"},"description":"Optional list of broker DIDs. When provided, only returns payments that have at least one validating signature from an identity in this list."},"entitlements":{"type":"array","items":{"type":"string","format":"at-uri"},"description":"Optional list of entitlement AT-URIs. When provided, only returns payments whose entitlements array contains one or more of the given references."}}},"output":{"encoding":"application/json","schema":{"type":"object","required":["payments"],"properties":{"payments":{"type":"array","items":{"type":"union","refs":["network.attested.payment.oneTime","network.attested.payment.recurring","network.attested.payment.scheduled"]},"description":"List of verified payment records."}}}}}}}