com.atiproto.payment.cart.get

atiproto.com

{
  "id": "com.atiproto.payment.cart.get",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "cart",
            "items",
            "subscriptions"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid",
              "description": "Cart record CID"
            },
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "Cart record URI"
            },
            "cart": {
              "ref": "com.atiproto.cart#view",
              "type": "ref",
              "description": "The cart record data"
            },
            "items": {
              "type": "array",
              "items": {
                "ref": "com.atiproto.item#view",
                "type": "ref"
              },
              "description": "Resolved item records referenced by this cart"
            },
            "workflow": {
              "ref": "com.atiproto.actions#outboundWorkflow",
              "type": "ref",
              "description": "Side-effect workflow to sync server status with PDS status."
            },
            "checkoutUrl": {
              "type": "string",
              "format": "uri",
              "description": "Checkout URL, only present when cart status is open"
            },
            "subscriptions": {
              "type": "array",
              "items": {
                "ref": "com.atiproto.subscription#view",
                "type": "ref"
              },
              "description": "Resolved subscription records referenced by this cart"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "uri": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI of the cart record. Takes precedence over itemUri and subscriptionUri."
          },
          "itemUri": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI of an item record. Returns the cart that contains this item. Ignored if uri is provided."
          },
          "subscriptionUri": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI of a subscription record. Returns the cart that contains this subscription. Ignored if uri or itemUri is provided."
          }
        }
      },
      "description": "Get a specific cart sent by the authenticated user, including resolved item and subscription records. One of `uri`, `itemUri`, or `subscriptionUri` is required."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}

Validate Record

Validate a record against com.atiproto.payment.cart.get

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:4x5dcv6u4wlkjcssto7f22nu
CID
bafyreibybadhh3euvzhsn6y5bimmo65ayeb24gfoxc3ktnl5a2asg4wrpi
Indexed At
2026-04-30 18:24 UTC
AT-URI
at://did:plc:4x5dcv6u4wlkjcssto7f22nu/com.atproto.lexicon.schema/com.atiproto.payment.cart.get

Version History (2 versions)

Referenced Schemas (4)

Lexicon Garden

@