---
schema_version: "1"
id: 8e5fd52025f675fd8451f4866012ab95d021c0a9388f1acfa3733304f476d548
title: Get Price Lists for Cart
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-get-price-lists-for-cart.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-get-price-lists-for-cart.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 89d8d25f20fbe928226bf3b890f3d2195da902dc141a72883ba1374881dc0bf9
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Get Price Lists for Cart

Return the price lists available for a cart.

```nolang
GET /v2/cpq/carts/{cart_ID}/pricelists
```

This API supports the guest user enhancements that Salesforce introduced with the Winter ‘21 release. To encrypt and decrypt data for guest users, use the `UserSecurity` class with this API. See Guest User Technical Details.

For additional information, ​see UserSecurity Class and CPQ and Digital Commerce Changes for Guest Users.


## Remote Method

```nolang
getPriceLists
```

## REST Handler

```nolang
REST Endpoint: APIPriceListsCpqV2.cls
Implementation: CpqGetPriceListsActionV2.cls
```

## Apex Remote Service

```nolang
CpqAppHandler
```


## Apex Remote Input Map

```nolang
{
	methodName: getPriceLists
	cartId: 80146000000 iwCx
	pagesize: 2
}
```

## 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/cpq/carts/{cart_ID}/pricelists |

## Example Request

```nolang
GET
/services/apexrest/vlocity_cmt/v2/cpq/carts/8011I000000TUaK/pricelists?pagesize=10
```

## Example Response

```nolang
{
  "totalSize": 1,
  "messages": [],
  "records": [
    {
      "messages": [],
      "actions": {
        "setpricelist": {
          "rest": {
            "params": {
              "inputFields": [
                {
                  "vlocity_cmt__PriceListId__c": "a2Y1I000000g50kUAA"
                }
              ]
            },
            "method": "POST",
            "link": "/services/apexrest/vlocity_cmt/v2/cpq/carts/8011I000000XegcQAC"
          },
          "remote": {
            "params": {
              "inputFields": [
                {
                  "vlocity_cmt__PriceListId__c": "a2Y1I000000g50kUAA"
                }
              ],
              "cartId": "8011I000000XegcQAC",
              "methodName": "updateCarts"
            }
          },
          "client": {
            "params": {}
          }
        }
      },
      "displaySequence": -1,
      "Id": "a2Y1I000000g50kUAA",
      "Name": "Base PriceList"
    }
  ]
}
```
