com.atiproto.cart

atiproto.com

{
  "id": "com.atiproto.cart",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "items",
          "currency",
          "total",
          "status",
          "createdAt",
          "expiresAt"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "ref": "#cartItem",
              "type": "ref"
            }
          },
          "total": {
            "type": "integer",
            "description": "Total amount in cents"
          },
          "status": {
            "enum": [
              "open",
              "completed",
              "expired",
              "abandoned"
            ],
            "type": "string",
            "maxLength": 64,
            "description": "Cart status"
          },
          "currency": {
            "type": "string",
            "maxLength": 3,
            "description": "ISO 4217 currency code"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Creation timestamp"
          },
          "expiresAt": {
            "type": "string",
            "format": "datetime",
            "description": "Expiration timestamp"
          },
          "completedAt": {
            "type": "string",
            "format": "datetime",
            "description": "Completion timestamp"
          }
        }
      },
      "description": "A record representing a shopping cart for items/subscriptions"
    },
    "view": {
      "type": "object",
      "required": [
        "uri",
        "items",
        "currency",
        "total",
        "status",
        "createdAt",
        "expiresAt"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT-URI of the cart record"
        },
        "items": {
          "type": "array",
          "items": {
            "ref": "#cartItem",
            "type": "ref"
          }
        },
        "total": {
          "type": "integer",
          "description": "Total amount in cents"
        },
        "status": {
          "enum": [
            "open",
            "completed",
            "expired",
            "abandoned"
          ],
          "type": "string",
          "maxLength": 64,
          "description": "Cart status"
        },
        "currency": {
          "type": "string",
          "maxLength": 3,
          "description": "ISO 4217 currency code"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime",
          "description": "Creation timestamp"
        },
        "expiresAt": {
          "type": "string",
          "format": "datetime",
          "description": "Expiration timestamp"
        },
        "completedAt": {
          "type": "string",
          "format": "datetime",
          "description": "Completion timestamp"
        }
      },
      "description": "View of a cart record for use in API responses"
    },
    "cartItem": {
      "type": "object",
      "required": [
        "type",
        "recordUri"
      ],
      "properties": {
        "type": {
          "enum": [
            "com.atiproto.item",
            "com.atiproto.subscription"
          ],
          "type": "string",
          "maxLength": 128,
          "description": "Type of cart item: item or subscription"
        },
        "recordUri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT-URI for item on record"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}

Validate Record

Validate a record against com.atiproto.cart

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:4x5dcv6u4wlkjcssto7f22nu
CID
bafyreidl56jzwck7qkdkit5kuqer2emyyedx6sddzcsnjhpa5xkwa7n32u
Indexed At
2026-04-29 14:50 UTC
AT-URI
at://did:plc:4x5dcv6u4wlkjcssto7f22nu/com.atproto.lexicon.schema/com.atiproto.cart

Version History (2 versions)

Lexicon Garden

@