SAP Commerce Cloud · Schema

SAP Commerce Cloud Cart

A shopping cart in SAP Commerce Cloud containing products selected for purchase, with delivery and payment configuration for checkout.

B2BB2CCommerceCustomer ExperienceE-CommerceOmnichannelRetail

Properties

Name Type Description
code string Unique cart code for authenticated users
guid string Cart GUID used for anonymous or guest carts
totalItems integer Number of distinct line items in the cart
totalUnitCount integer Total quantity of units across all entries
subTotal object
deliveryCost object
totalTax object
totalPrice object
totalPriceWithTax object
totalDiscounts object
entries array Cart line items
deliveryAddress object
deliveryMode object
paymentInfo object
appliedVouchers array Vouchers applied to the cart
appliedOrderPromotions array Order-level promotions applied
appliedProductPromotions array Product-level promotions applied
user object
orderDiscounts object
productDiscounts object
deliveryOrderGroups array Delivery order groups for split shipments
View JSON Schema on GitHub

JSON Schema

sap-commerce-cloud-cart-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api.sap.com/schemas/sap-commerce-cloud/cart.json",
  "title": "SAP Commerce Cloud Cart",
  "description": "A shopping cart in SAP Commerce Cloud containing products selected for purchase, with delivery and payment configuration for checkout.",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "Unique cart code for authenticated users"
    },
    "guid": {
      "type": "string",
      "description": "Cart GUID used for anonymous or guest carts"
    },
    "totalItems": {
      "type": "integer",
      "minimum": 0,
      "description": "Number of distinct line items in the cart"
    },
    "totalUnitCount": {
      "type": "integer",
      "minimum": 0,
      "description": "Total quantity of units across all entries"
    },
    "subTotal": {
      "$ref": "#/$defs/Price"
    },
    "deliveryCost": {
      "$ref": "#/$defs/Price"
    },
    "totalTax": {
      "$ref": "#/$defs/Price"
    },
    "totalPrice": {
      "$ref": "#/$defs/Price"
    },
    "totalPriceWithTax": {
      "$ref": "#/$defs/Price"
    },
    "totalDiscounts": {
      "$ref": "#/$defs/Price"
    },
    "entries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CartEntry"
      },
      "description": "Cart line items"
    },
    "deliveryAddress": {
      "$ref": "#/$defs/Address"
    },
    "deliveryMode": {
      "$ref": "#/$defs/DeliveryMode"
    },
    "paymentInfo": {
      "$ref": "#/$defs/PaymentDetails"
    },
    "appliedVouchers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Voucher"
      },
      "description": "Vouchers applied to the cart"
    },
    "appliedOrderPromotions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PromotionResult"
      },
      "description": "Order-level promotions applied"
    },
    "appliedProductPromotions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PromotionResult"
      },
      "description": "Product-level promotions applied"
    },
    "user": {
      "$ref": "#/$defs/Principal"
    },
    "orderDiscounts": {
      "$ref": "#/$defs/Price"
    },
    "productDiscounts": {
      "$ref": "#/$defs/Price"
    },
    "deliveryOrderGroups": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/CartEntry"
            }
          },
          "totalPriceWithTax": {
            "$ref": "#/$defs/Price"
          }
        }
      },
      "description": "Delivery order groups for split shipments"
    }
  },
  "$defs": {
    "Price": {
      "type": "object",
      "description": "Price or monetary amount",
      "properties": {
        "currencyIso": {
          "type": "string",
          "pattern": "^[A-Z]{3}$",
          "description": "ISO 4217 currency code"
        },
        "value": {
          "type": "number",
          "description": "Numeric value"
        },
        "formattedValue": {
          "type": "string",
          "description": "Locale-formatted value string"
        }
      }
    },
    "CartEntry": {
      "type": "object",
      "description": "Individual item in the shopping cart",
      "properties": {
        "entryNumber": {
          "type": "integer",
          "minimum": 0,
          "description": "Zero-based entry index"
        },
        "product": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string",
              "description": "Product code"
            },
            "name": {
              "type": "string",
              "description": "Product name"
            },
            "url": {
              "type": "string",
              "description": "Product page URL"
            },
            "images": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "format": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "quantity": {
          "type": "integer",
          "minimum": 1,
          "description": "Quantity in cart"
        },
        "basePrice": {
          "$ref": "#/$defs/Price"
        },
        "totalPrice": {
          "$ref": "#/$defs/Price"
        },
        "updateable": {
          "type": "boolean",
          "description": "Whether the quantity can be updated"
        }
      }
    },
    "Address": {
      "type": "object",
      "description": "Delivery address",
      "properties": {
        "id": {
          "type": "string"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "line1": {
          "type": "string"
        },
        "line2": {
          "type": "string"
        },
        "town": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        },
        "country": {
          "type": "object",
          "properties": {
            "isocode": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          }
        },
        "region": {
          "type": "object",
          "properties": {
            "isocode": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          }
        },
        "phone": {
          "type": "string"
        }
      }
    },
    "DeliveryMode": {
      "type": "object",
      "description": "Delivery or shipping method",
      "properties": {
        "code": {
          "type": "string",
          "description": "Delivery mode code"
        },
        "name": {
          "type": "string",
          "description": "Delivery mode display name"
        },
        "description": {
          "type": "string",
          "description": "Delivery mode description"
        },
        "deliveryCost": {
          "$ref": "#/$defs/Price"
        }
      }
    },
    "PaymentDetails": {
      "type": "object",
      "description": "Payment information for the cart",
      "properties": {
        "id": {
          "type": "string"
        },
        "accountHolderName": {
          "type": "string"
        },
        "cardNumber": {
          "type": "string",
          "description": "Masked card number"
        },
        "cardType": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          }
        },
        "expiryMonth": {
          "type": "string"
        },
        "expiryYear": {
          "type": "string"
        },
        "billingAddress": {
          "$ref": "#/$defs/Address"
        }
      }
    },
    "Voucher": {
      "type": "object",
      "description": "Applied voucher or coupon",
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "value": {
          "type": "number"
        },
        "freeShipping": {
          "type": "boolean"
        }
      }
    },
    "PromotionResult": {
      "type": "object",
      "description": "Applied promotion details",
      "properties": {
        "description": {
          "type": "string"
        },
        "promotion": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "title": {
              "type": "string"
            }
          }
        }
      }
    },
    "Principal": {
      "type": "object",
      "description": "Cart owner",
      "properties": {
        "uid": {
          "type": "string",
          "description": "User identifier"
        },
        "name": {
          "type": "string",
          "description": "Display name"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/sap-commerce-cloud-cart"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.