{
  "opencollection": "1.0.0",
  "info": {
    "name": "ServiceNow Cart API",
    "version": "Zurich"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Cart",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Servicenow Add a Catalog Item to the Cart",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.servicenow.com/api/now/servicecatalog/items/:sys_id/add_to_cart",
            "params": [
              {
                "name": "sys_id",
                "value": "",
                "type": "path",
                "description": "The unique system identifier."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds the specified catalog item to the shopping cart with the given quantity and variable values."
        },
        {
          "info": {
            "name": "Servicenow Order a Catalog Item Immediately",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.servicenow.com/api/now/servicecatalog/items/:sys_id/order_now",
            "params": [
              {
                "name": "sys_id",
                "value": "",
                "type": "path",
                "description": "The unique system identifier."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Orders the specified catalog item without going through the cart. Creates a request directly with the given quantity and variable values."
        },
        {
          "info": {
            "name": "Servicenow Retrieve the Current Cart",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.servicenow.com/api/now/servicecatalog/cart"
          },
          "docs": "Retrieves the contents of the current user's shopping cart."
        },
        {
          "info": {
            "name": "Servicenow Empty the Cart",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{instance}.servicenow.com/api/now/servicecatalog/cart"
          },
          "docs": "Removes all items from the current user's shopping cart."
        },
        {
          "info": {
            "name": "Servicenow Submit the Cart as an Order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.servicenow.com/api/now/servicecatalog/cart/submit_order"
          },
          "docs": "Submits all items in the current user's shopping cart as a service catalog request. Returns the request number and details."
        }
      ]
    }
  ],
  "bundled": true
}