Service Catalog API - GET /sn_sc/servicecatalog/wishlist/{cart_item_id}

This method retrieves the details of the specified item stored in the wish list cart.

URL format

Versioned URL: /api/sn_sc/v1/servicecatalog/wishlist/{cart_item_id}

Default URL: /api/sn_sc/servicecatalog/wishlist/{cart_item_id}

Supported request parameters

Table 1. Parameters
Parameter Description


The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.

Table 2. Request headers
Header Description
Table 3. Response headers
Header Description

Status codes

The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, seeREST response codes.

Table 4. Status codes
Status code Description
200 Indicates that the request completed successfully. Returns details of the specific item in the wish list.
400 Indicates a failed request. Incorrect cart item id or the item does not exist in the wish list.

Sample cURL request

curl "http://localhost/api/sn_sc/servicecatalog/wishlist/d31be364c3012200d68d3b0ac3d3aecf" \
        --request GET \
        --header "Accept:application/json" \
        --user 'admin':'admin'
        "result": {
        "catalog_item_id": "04b7e94b4f7b4200086eeed18110c7fd",
        "variables": {
        "Adobe Photoshop": "",
        "Adobe Acrobat": "",
        "Optional Software": "",
        "Additional software requirements": ""
        "quantity": "1",
        "localized_price": "$1,100.00",
        "price": "$1,100.00",
        "recurring_frequency": "Annually",
        "localized_recurring_price": "$100.00",
        "recurring_price": "$100.00",
        "item_name": "Standard Laptop &",
        "cart_item_id": "d31be364c3012200d68d3b0ac3d3aecf",
        "delivery_time": "5 Days"

Sample Python request

#Need to install requests package for python
        #easy_install requests
        import requests
        # Set the request parameters
        url = 'http://localhost/api/sn_sc/servicecatalog/wishlist/d31be364c3012200d68d3b0ac3d3aecf'
        # Eg. User name="admin", Password="admin" for this code sample.
        user = 'admin'
        pwd = 'admin'
        # Set proper headers
        headers = {"Content-Type":"application/json","Accept":"application/json"}
        # Do the HTTP request
        response = requests.get(url, auth=(user, pwd), headers=headers )
        # Check for HTTP codes other than 200
        if response.status_code != 200: 
        print('Status:', response.status_code, 'Headers:', response.headers, 'Error Response:',response.json())
        # Decode the JSON response into a dictionary and use the data
        data = response.json()
<?xml version="1.0" encoding="UTF-8”?>
              <Adobe Photoshop></Adobe Photoshop>
              <Adobe Acrobat></Adobe Acrobat>
              <Optional Software></Optional Software>
              <Additional software requirements></Additional software requirements> 
            <item_name>Standard Laptop &amp;</item_name>
            <delivery_time>5 Days</delivery_time>