com.atiproto.recipient.payment.cart.get
Get a cart that pays the authenticated user — a cart whose items target this user. Look up by cart URI, by a contained item record URI, or by a contained subscription record URI. One of `uri`, `itemUri`, or `subscriptionUri` is required.
Details · query
| Kind | query |
|---|---|
| Authority | cart.payment.recipient.atiproto.com |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Get a cart that pays the authenticated user — a cart whose items target this user. Look up by cart URI, by a contained item record URI, or by a contained subscription record URI. One of `uri`, `itemUri`, or `subscriptionUri` is required.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"cart": {
"description": "The cart record data",
"ref": "com.atiproto.cart#view",
"type": "ref"
},
"cid": {
"description": "Cart record CID",
"format": "cid",
"type": "string"
},
"items": {
"description": "Resolved item records in this cart that target the authed user",
"items": {
"ref": "com.atiproto.item#view",
"type": "ref"
},
"type": "array"
},
"subscriptions": {
"description": "Resolved subscription records in this cart that target the authed user",
"items": {
"ref": "com.atiproto.subscription#view",
"type": "ref"
},
"type": "array"
},
"uri": {
"description": "Cart record URI",
"format": "at-uri",
"type": "string"
}
},
"required": [
"uri",
"cart",
"items",
"subscriptions"
],
"type": "object"
}
},
"parameters": {
"properties": {
"itemUri": {
"description": "AT-URI of an item record received by the authed user. Returns the cart that contains this item. Ignored if uri is provided.",
"format": "at-uri",
"type": "string"
},
"subscriptionUri": {
"description": "AT-URI of a subscription record received by the authed user. Returns the cart that contains this subscription. Ignored if uri or itemUri is provided.",
"format": "at-uri",
"type": "string"
},
"uri": {
"description": "AT-URI of the cart record. Takes precedence over itemUri and subscriptionUri.",
"format": "at-uri",
"type": "string"
}
},
"type": "params"
},
"type": "query"
}
},
"id": "com.atiproto.recipient.payment.cart.get",
"lexicon": 1
}