---
schema_version: "1"
id: 28770de273f6c8fb78086ad59145bc00db1c083bfb7a979ef57eb1dcc1d93a05
title: Get Available Sites
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-get-available-sites.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-get-available-sites.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 71ad0fac7fae528d5347d4835badc38b663c67ed496abaa72f6a27a5349e957a
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Get Available Sites

Get the available records for the billing account or service account lookup field.

```nolang
GET /v2/cpq/carts/{cart_ID}/sites?id={item_ID},lookupField={field_name},fields={field names to return}
```

## Remote Method

```nolang
getAvailableSites
```

## REST Handler

```nolang
APISitesCartsCpqV2
```

## Apex Remote Service

```nolang
CpqAppHandler
```


## Apex Remote Input Map

```nolang
{
  "methodName": "priceCart",
  "cartId": "801360000008eNU",
  "id":"01t36000000pfcKAAQ"
  "lookupField": "vlocity_cmt__BillingAccountId__c"
}
```

## 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).


## Example Request

```nolang
GET
/services/apexrest/vlocity_cmt/v2/cpq/carts/8014100000009fU/sites
```

## Example Result

```nolang
{
 "totalSize" => 2,
 "messages" => [],
 "actions" => {
  "newsite" => {
   "rest" => {
    "params" => {
     "fields" => "'Id'",
     "inputFields" =>
     "[{\"value\":null,\"previousValue\":null,\"originalValue\":null,\"messages\":[],\"label\":\"Account Name\",\"hidden\":null,\"fieldName\":\"name\",\"editable\":true,\"dataType\":\"STRING\",\"actions\":{}}]",
     "objectType" => "Account"
    },
    "method" => "POST",
    "link" => "/services/apexrest/vlocity_cmt/v2/cpq/carts/8016A000000bwG8QAI/sites"
   },
   "remote" => {
    "params" => {
     "fields" => "'Id'",
     "               inputFields" =>
     "[{\"value\":null,\"previousValue\":null,\"originalValue\":null,\"messages\":[],\"label\":\"Account Name\",\"hidden\":null,\"fieldName\":\"name\",\"editable\":true,\"dataType\":\"STRING\",\"actions\":{}}]",
     "objectType" => "Account",
     "cartId" => "8016A000000bwG8QAI",
     "methodName" => "newSite"
    }
   },
   "client" => {
    "params" => {}
   }
  }
 },
 "records" => [{
   "messages" => [],
   "displaySequence" => -1,
   "Id" => "0016A000006baXeQAI",
   "Name" => "SFA1"
  },
  {
   "messages" => [],
   "displaySequence" => -1,
   "Id" => "0016A000006bNfzQAE",
   "Name" => "SA"
  }
 ]
}
```
