VTEX · Schema

Cart1

Cart information.

CommerceE-CommerceRetailMarketplacePayments

Properties

Name Type Description
items array
grandTotal integer Total payment value.
discounts number Discounts value.
shipping number Shipping value.
taxes integer Taxes value.
itemsTotal number Total items value.
View JSON Schema on GitHub

JSON Schema

vtex-cart1-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Cart1",
  "title": "Cart1",
  "type": "object",
  "description": "Cart information.",
  "required": [
    "items",
    "grandTotal",
    "discounts",
    "shipping",
    "taxes",
    "itemsTotal"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Item1"
      }
    },
    "grandTotal": {
      "type": "integer",
      "description": "Total payment value.",
      "example": 0
    },
    "discounts": {
      "type": "number",
      "description": "Discounts value.",
      "example": -7.5
    },
    "shipping": {
      "type": "number",
      "description": "Shipping value.",
      "example": 7.27
    },
    "taxes": {
      "type": "integer",
      "description": "Taxes value.",
      "example": 0
    },
    "itemsTotal": {
      "type": "number",
      "description": "Total items value.",
      "example": 14.99
    }
  }
}