---
schema_version: "1"
id: 988c2f99f32fb4f1309651c37bff0c0d98bac846d73676e27e627407b0337409
title: ESM_CreateSubOrdersInBatch API
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_t_esm_createsubordersinbatch_api.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_t_esm_createsubordersinbatch_api.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 1989e4b0492e8e99ce327c3c7eb06cb5a0072cafb6e9677f8d3241731d628bff
description: Efficiently create multiple sub-orders in a single call. To prevent hitting governor limits, monitor the number of inputs included in the batch.
products:
  - Communications
release: "264"
---
# ESM\_CreateSubOrdersInBatch API

Efficiently create multiple sub-orders in a single call. To prevent hitting governor limits, monitor the number of inputs included in the batch.

## URI

/services/apexrest/vlocity\_cmt/v1/integrationprocedure/ESM\_CreateSubOrdersInBatch/

## HTTP Method

POST

## Request

```
{
 "inputList": [
 {
 "AccountId": "001Dn00000D9QBLIA3",
 "MasterOrderId": "801Dn0000016GOfIAM",
 "ObjectType": "Quote",
 "QuoteGroupId": null,
 "QuoteId": "0Q0Dn00000111WrKAI",
 "QuoteLineItems": [
 "0QLDn0000012UwJOAU",
 "0QLDn0000012UwKOAU“
 ],
 "QuoteMemberId": "a5eDn0000010wQRIAY",
 "RecordTypeId": "012Dn000000A1rTIAS",
 "ServiceAccountId": "001Dn00000D9QwnIAF“
 },
 {
 "AccountId": "001Dn00000D9QBLIA3",
 "MasterOrderId": "801Dn0000016GOfIAM",
 "ObjectType": "Quote",
 "QuoteGroupId": null,
 "QuoteId": "0Q0Dn00000111WrKAJ",
 "QuoteLineItems": [
 "0QLDn0000012UwQOAU“
 ],
 "QuoteMemberId": "a5eDn0000010wQSIAY",
 "RecordTypeId": "012Dn000000A1rTIAS",
 "ServiceAccountId": "001Dn00000D9QwoIAF“
 }
 ]
}
```

## Response

```
{
 "OrderIdList": [
 "801Dn0000016dMAIAY",
 "801Dn0000016dMAIAZ"
 ]
}
```