com.atiproto.recipient.payment.item.validate

Validate that a sender has completed item payment(s) to the authenticated user (as the recipient/subject). Looks up by itemUri (a specific item record), recordUri (sums all items for that record), or sender (sender DID). These are mutually exclusive and resolved in that order.

Repository @atiproto.com did:plc:4x5dcv6u4wlkjcssto7f22nu namespace authority
Details · query
Kindquery
Authorityitem.payment.recipient.atiproto.com
Indexed
cid bafyreia2o3szspoy5aikhr5rfcadvwdfk2ahdor7djyu4w6z7ofetcodzu

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Validate that a sender has completed item payment(s) to the authenticated user (as the recipient/subject). Looks up by itemUri (a specific item record), recordUri (sums all items for that record), or sender (sender DID). These are mutually exclusive and resolved in that order.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "amount": {
              "description": "Sum of all verified completed item amounts in cents",
              "type": "integer"
            },
            "currency": {
              "description": "Currency of the items",
              "maxLength": 3,
              "type": "string"
            },
            "reason": {
              "description": "If invalid, reason for rejection",
              "maxLength": 1024,
              "type": "string"
            },
            "valid": {
              "description": "Whether a sender has completed and verified item(s) to the authed recipient",
              "type": "boolean"
            }
          },
          "required": [
            "valid"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "amount": {
            "description": "Expected item amount in cents. If omitted, only checks that a item exists.",
            "type": "integer"
          },
          "itemUri": {
            "description": "AT-URI of a specific item record. Takes precedence over recordUri and sender.",
            "format": "at-uri",
            "type": "string"
          },
          "recordUri": {
            "description": "AT-URI of the record being tipped. Takes precedence over sender.",
            "format": "at-uri",
            "type": "string"
          },
          "sender": {
            "description": "DID of the item sender. Ignored if itemUri or recordUri is provided.",
            "format": "did",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.atiproto.recipient.payment.item.validate",
  "lexicon": 1
}