---
schema_version: "1"
id: 65faebb00ab8a8aa9797b12af8d568d7750036e5f1ca30d9faf331eca1deb729
title: Create New Account for Current Site
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-create-new-account-for-current-site.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-create-new-account-for-current-site.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: d5ca5404b56d64e18a52e5145bc59e84daf16319082b52d29f4e6540d646c6f2
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Create New Account for Current Site

Create a new account for the current site.

```nolang
POST /v2/cpq/carts/{cart_ID}/sites
```

## Remote Method

```nolang
newSite
```

## REST Handler

```nolang
APISitesCartsCpqV2
```

## Apex Remote Service

```nolang
CpqAppHandler
```


## Apex Remote Input Map

```nolang
{
  "methodName": "newSite",
  "cartId": "801360000008eNU",
  "objectType":"Account"
  "inputFields":[{"value":"Test1234","fieldName":"name"}],
  "fields":"Name,vlocity_cmt__Active__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).


## Resource Information

| Response Format | JSON                                                        |
| --------------- | ----------------------------------------------------------- |
| Resource URL    | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/sites |

## Example Request

```nolang
POST
{
	"objectType": "Account",
	"inputFields": [{
		"value": "Test1234",
		"fieldName": "name"
	}],
	"fields": "Name,vlocity_cmt__Active__c"
}
```

## Example Response

```nolang
{
   "totalSize" => 1,
   "messages" => [],
   "records" => [{
      "messages" => [],
      "displaySequence" => -1,
      "Name" => "Test1234"
    }]
}
```
