com.atiproto.recipient.payment.subscription.validate
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Validate that a sender has an active, Stripe-verified subscription to the authenticated user (as the recipient/subject). Looks up by subscriptionUri (a specific subscription record) or sender (subscriber DID). These are mutually exclusive; subscriptionUri takes precedence.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"amount": {
"description": "Subscription amount in cents",
"type": "integer"
},
"currency": {
"description": "Currency of the subscription",
"maxLength": 3,
"type": "string"
},
"reason": {
"description": "If invalid, reason for rejection",
"maxLength": 1024,
"type": "string"
},
"valid": {
"description": "Whether a sender has an active, verified subscription to the authed recipient",
"type": "boolean"
}
},
"required": [
"valid"
],
"type": "object"
}
},
"parameters": {
"properties": {
"amount": {
"description": "Expected subscription amount in cents. If omitted, only checks that a subscription exists.",
"type": "integer"
},
"sender": {
"description": "DID of the subscriber. Ignored if subscriptionUri is provided.",
"format": "did",
"type": "string"
},
"subscriptionUri": {
"description": "AT-URI of a specific subscription record. Takes precedence over sender.",
"format": "at-uri",
"type": "string"
}
},
"type": "params"
},
"type": "query"
}
},
"id": "com.atiproto.recipient.payment.subscription.validate",
"lexicon": 1
}
Metadata
- DID
-
did:plc:4x5dcv6u4wlkjcssto7f22nu - CID
-
bafyreifq7xelb7ui3emmhpym2tg3nuttldyghwvp3yuhd24l3kl7oiciai - Indexed At
- 2026-04-29 15:05 UTC
- AT-URI
-
at://did:plc:4x5dcv6u4wlkjcssto7f22nu/com.atproto.lexicon.schema/com.atiproto.recipient.payment.subscription.validate
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
Validate that the authenticated user (as the sender/subscriber) has an active, Stripe-verified subscription. Looks up by subscriptionUri (a specific subscription record) or subject (recipient DID). These are mutually ex…
-
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)…
-
Validate that the authenticated user (as the sender) has completed item payment(s). Looks up by itemUri (a specific item record), recordUri (sums all items for that record), or subject (recipient DID). These are mutuall…
-
Get a specific subscription received by the authenticated user (as the recipient/subject). Looks up by subscription record uri or sender DID. These are mutually exclusive; uri takes precedence.
-
Get a specific subscription sent by the authenticated user. Looks up by subscription record uri or subject (recipient) DID. These are mutually exclusive; uri takes precedence.