Advance Auto Parts · Schema

Cart

A shopping cart.

AutomotiveE-CommerceParts CatalogRetailSupply ChainFortune 500

Properties

Name Type Description
id string Cart identifier.
items array Items in the cart.
subtotal number Cart subtotal before tax.
View JSON Schema on GitHub

JSON Schema

commerce-api-cart-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Cart",
  "description": "A shopping cart.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Cart identifier.",
      "example": "cart-abc123"
    },
    "items": {
      "type": "array",
      "description": "Items in the cart.",
      "items": {
        "$ref": "#/$defs/CartItem"
      }
    },
    "subtotal": {
      "type": "number",
      "description": "Cart subtotal before tax.",
      "example": 109.98
    }
  }
}