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"
 ]
}