com.atiproto.recipient.payment.subscription.validate

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.

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

Query

query · GET

Parameters

query string

amount

integer

Expected subscription amount in cents. If omitted, only checks that a subscription exists.

sender

string · did

DID of the subscriber. Ignored if subscriptionUri is provided.

subscriptionUri

string · at-uri

AT-URI of a specific subscription record. Takes precedence over sender.

Output

application/json

amount

integer

Subscription amount in cents

currency

string

Currency of the subscription

  • maxLength: 3

reason

string

If invalid, reason for rejection

  • maxLength: 1024

valid

requiredboolean

Whether a sender has an active, verified subscription to the authed recipient

Similar lexicons

semantic match

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 exclusive; subscriptionUri takes precedence.

  • 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.

  • 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 mutually exclusive and resolved in that order.

  • 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.