A record representing a shopping cart for items/subscriptions
Record Key
any
Any valid record key
Properties
completedAt
string
datetime
Optional
Completion timestamp
createdAt
string
datetime
Required
Creation timestamp
currency
string
Required
ISO 4217 currency code
maxLength: 3 bytesexpiresAt
string
datetime
Required
Expiration timestamp
items
array
of
ref
#cartItem
Required
No description available.
status
string
Required
Cart status
maxLength: 64 bytesAllowed:
open, completed, expired, abandonedtotal
integer
Required
Total amount in cents
View raw schema
{
"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"
}