ServiceNow · Schema

Cart

The shopping cart contents.

AutomationCloud ServicesDigital WorkflowsEnterprise PlatformITSMProcessesT1Workflow-AutomationWorkflows

Properties

Name Type Description
items array
subtotal string The cart subtotal.
View JSON Schema on GitHub

JSON Schema

servicenow-service-catalog-cart-schema.json Raw ↑
{
  "type": "object",
  "description": "The shopping cart contents.",
  "properties": {
    "items": {
      "type": "array",
      "example": [],
      "items": {
        "type": "object",
        "description": "An item in the shopping cart.",
        "properties": {
          "cart_item_id": {
            "type": "string",
            "description": "Unique identifier for the cart item.",
            "example": "500123"
          },
          "catalog_item_id": {
            "type": "string",
            "description": "The sys_id of the catalog item.",
            "example": "500123"
          },
          "quantity": {
            "type": "integer",
            "description": "The quantity ordered.",
            "example": 10
          },
          "subtotal": {
            "type": "string",
            "description": "The subtotal for this cart item.",
            "example": 42
          }
        }
      }
    },
    "subtotal": {
      "type": "string",
      "description": "The cart subtotal.",
      "example": 42
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Cart"
}