---
schema_version: "1"
id: 4db68e64062387cf90a622a5953e2c1d239e72e1590aecf737563cbe1aff196c
title: createOrderAndSubmit Method
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-createorderandsubmit-method.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-createorderandsubmit-method.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c0910a2264ede9e10d68c9e19225a1dee1c2d109f03ee7fa4abc9873adc49cee
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# createOrderAndSubmit Method

Starts the checkout batch job for a group.

<!-- Section title is the name of the method followed by "Method". If appropriate, precede the method name with the class name and a colon.-->

## Class

<!-- broken link-->

<!-- Link(s) to the class(es) to which this method belongs. If more than one class implements the same interface, use an itemized list. Don't use a link if the class itself isn't documented for users, but do list the class name.-->


## Input Parameters

<!-- If this method has separate input and output parameters, split this section into two sections titled "Input Parameters" and "Output Parameters". Some methods of classes that implement VlocityOpenInterface2 might require an "Options Parameters" section as well.-->

| Parameter      | Required                     | Description        |
| -------------- | ---------------------------- | ------------------ |
| opportunityId  | Required                     | Opportunity ID.    |
| cartType       | Optional: Defaults to Quote. | Quote or Order.    |
| groupId        | Required                     | Group ID.          |
| groupIds       | Optional                     | List of Group Ids. |
| CheckoutIPName | Optional                     | Procedure Name.    |
| batchSize      | Optional: Defaults to 1.     | Batch Size.        |

## Output Parameters

| Parameter    | Description              |
| ------------ | ------------------------ |
| isJobStarted | Returns a boolean value. |
| message      | In case of any error.    |

## Example Input Data

<!-- This is usually JSON, but it could be XML or a single value. For methods of classes implementing VlocityOpenInterface2 that have options parameters, include those here.-->

```
{"opportunityId":'0063t00000tPCmM", "cartType": "Quote", "groupId": "a3O3t000003ADvG"}
```

## Example Output Data

<!-- This is usually JSON, but it could be XML or a single value. Salesforce uses Return Type, but this takes care of that.-->

```
{"isJobStarted":true}
```
