com.atiproto.payment.subscription.create
Create a subscription to a user. Returns a one-off cart with checkout URL.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | subscription.payment.atiproto.com |
| Indexed |
Procedure
procedure · POSTInput
application/jsonamount
integerCustom amount in cents (if pay-as-you-want enabled)
cartUri
string · at-uriAT-URI of an existing cart to add this subscription to. If omitted, a new cart is created.
ISO 4217 currency code
maxLength: 3
Billing interval
maxLength: 64enum: monthly | yearly
isPrivate
booleanIf true, the recipient (subject) is stored only in atiproto's private database and is omitted from the PDS subscription record.
redirectUrl
string · uriURL to redirect to after checkout completes
DID of the user to subscribe to
workflow
refWorkflow callback envelope. Present on agent-driven callbacks; absent on initial calls.
Output
application/jsoncart
refThe created cart record (status: open)
cartUri
string · at-uriURI of the cart record in PDS
checkoutUrl
string · uriCheckout URL hosted by atiproto
subscription
refThe created subscription record (status: pending)
subscriptionUri
string · at-uriURI of the subscription record in PDS
workflow
refWorkflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
com.atiproto.payment.item.create
procedureCreate a item on a DID or specific record. Creates or adds to a cart and returns a checkout URL.
-
com.atiproto.payment.cart.create
procedureCreate a new empty cart
-
com.atiproto.payment.cart.clone
procedureClone an existing cart, creating new item and subscription records. Useful for reopening expired carts or repeating payments.
-
com.atiproto.subscription
recordA record representing a subscription from one user to another
-
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.