---
schema_version: "1"
id: 7f138b51c400c4a51d7895c5e62c4248b92563bf64ea800786d8c6437de6aa98
title: Get Lists of Values
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-get-lists-of-values.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-get-lists-of-values.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 49a70ae4662a8cbb9aad25b4ba0e82d56b8b60abcce40156023529baf9917e0b
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Get Lists of Values

Retrieve time plans, time policies, and adjustment codes. The **Price Adjustment** dialog box enables a user to pick a time plan and time policy to associate with a recurring adjustment or to pick a code that defines an adjustment for a specific price, such as a recurring charge, one-time charge, one-time total, and so on.

```nolang
GET /v2/listsofvalues?listkeys={type_of_list}&cartId={cart_ID}&id={line_item_ID}&fields={field_name}&PricingVariableCode={price_variable_code}
```

## Remote Method

```nolang
getListsOfValues
```

## Package

Communication (vlocity_cmt)

## API Parameters and Response Format

For API parameter names and descriptions, see [Cart-Based API Swagger Reference](https://developer.salesforce.com/docs/industries/cme/references/cpq?meta=Summary).


## Resource Information

| Response Format | JSON                                              |
| --------------- | ------------------------------------------------- |
| Resource URL    | `/services/apexrest/{namespace}/v2/listsofvalues` |

## Example Request

```nolang
GET
/services/apexrest/vlocity_cmt/v2/listsofvalues?listkeys=AdjustmentCodes&cartId=80146000000goGvAAI&id=80246000000gaR9AAI&fields=vlocity_cmt__OneTimeCharge__c&PricingVariableCode=OT_STD_PRC
```

## Example Response

```nolang
{
   "totalSize": 1,
   "messages": [],
   "records": [
      {
         "messages": [],
         "displaySequence": -1,
         "id": "80246000000gZfOAAU",
         "vlocity_cmt__OneTimeCharge__c": {
            "pricedetail": [
               {
                  "actions": {},
                  "DetailType": "PRICE",
                  "Description": "$50 One Time Standard Price",
                  "StartValue": 50,
                  "EndValue": 50,
                  "AdjustmentType": "None",
                  "AdjustmentMethod": null,
                  "AdjustmentValue": 0
               },
               {
                  "actions": {},
                  "DetailType": "ADJUSTMENT",
                  "Description": "5% Discount on OT Std Price due to Bundle A...",
                  "StartValue": 50,
                  "EndValue": 47.5,
                  "AdjustmentType": "Discount",
                  "AdjustmentMethod": "Percent",
                  "AdjustmentValue": -5
                  },
                  {
                     "actions": {},
                     "DetailType": "ADJUSTMENT",
                     "Description": "10% Discount on OT Std Price due to Promotion 'Add Bundle A'",
                     "StartValue": 47.5,
                     "EndValue": 42.5,
                     "AdjustmentType": "Discount",
                     "AdjustmentMethod": "Percent",
                     "AdjustmentValue": -10
                  },
                  {
                     "actions": {},
                     "DetailType": "ADJUSTMENT",
                     "Description": "Additional 10% - Add Child 2 Promo",
                     "StartValue": 42.5,
                     "EndValue": 37.5,
                     "AdjustmentType": "Discount",
                     "AdjustmentMethod": "Percent",
                     "AdjustmentValue": -10
                  }
               ]
            }
         }
      ]
}
```


## Example Request

```nolang
GET
/services/apexrest/vlocity_cmt/v2/listsofvalues?listkeys=TimePlans,TimePolicies
```

## Example Response

```nolang
{
  "totalSize": 2,
  "messages": [],
  "records": [
    {
      "messages": [],
      "displaySequence": -1,
      "listkey": "TimePlans",
      "listvalues": [
        {
          "uiStates": {},
          "nameResult": {},
          "messages": [],
          "fields": {
            "valuekey": "a2l460000005J5xAAE",
            "label": "One Year"
          },
          "displaySequence": -1,
          "actions": {}
        },
        {
          "uiStates": {},
          "nameResult": {},
          "messages": [],
          "fields": {
            "valuekey": "a2l460000005J1ZAAU",
            "label": "60 Days"
          },
          "displaySequence": -1,
          "actions": {}
        },
        {
          "uiStates": {},
          "nameResult": {},
          "messages": [],
          "fields": {
            "valuekey": "a2l460000005J1UAAU",
            "label": "6 months"
          },
          "displaySequence": -1,
          "actions": {}
        }
      ]
    },
    {
      "messages": [],
      "displaySequence": -1,
      "listkey": "TimePolicies",
      "listvalues": [
        {
          "uiStates": {},
          "nameResult": {},
          "messages": [],
          "fields": {
            "valuekey": "a2m460000004xcvAAA",
            "label": "First Day of the Month"
          },
          "displaySequence": -1,
          "actions": {}
        },
        {
          "uiStates": {},
          "nameResult": {},
          "messages": [],
          "fields": {
            "valuekey": "a2m460000004xbfAAA",
            "label": "Time Policy Purchase Date"
          },
          "displaySequence": -1,
          "actions": {}
        }
      ]
    }
  ]
}
```
