com.atiproto.payment.item.create
Create a item on a DID or specific record. Creates or adds to a cart and returns a checkout URL.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | item.payment.atiproto.com |
| Indexed |
Procedure
procedure · POSTInput
application/jsonTip amount in cents
cartUri
string · at-uriAT-URI of an existing cart to add this item to. If omitted, a new cart is created.
ISO 4217 currency code
maxLength: 3
isPrivate
booleanIf true, the recipient (subject) and recordUri are stored only in atiproto's private database and are omitted from the PDS item record.
message
stringOptional message (max 500 chars)
maxLength: 5000maxGraphemes: 500
recordUri
string · at-uriAT-URI of specific record being tipped
redirectUrl
string · uriURL to redirect to after checkout completes
DID of the user being tipped
workflow
refWorkflow callback envelope. Present on agent-driven callbacks; absent on initial calls.
Output
application/jsoncart
refThe cart record (new or updated)
cartUri
string · at-uriURI of the cart record in PDS
checkoutUrl
string · uriCheckout URL hosted by atiproto
item
refThe created item record (status: pending)
itemUri
string · at-uriURI of the item 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.cart.create
procedureCreate a new empty cart
-
com.atiproto.payment.subscription.create
procedureCreate a subscription to a user. Returns a one-off cart with checkout URL.
-
com.atiproto.item
recordA record representing a item given by one user to another
-
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.payment.cart.put
procedureUpdate a cart. Only open carts can be updated.