cloneMasterCart Method

Clones an existing master quote or order. It copies all groups and their members. It doesn’t copy Sub Quote/Order.

Class 

Input Parameters 

ParameterRequiredDescription
parentIdOpportunity ID.
masterQuoteIdMaster quote or order ID (the ID of the record that need to be cloned).
nameName of the cloned master quote or order. Name shouldn’t be duplicated within the opportunity.

Output Parameters 

ParameterDescription
masterCartIdMaster quote or order ID of cloned record.
messageIn case of any error.

Example Input Data 

1{"parentId":"0064x000002RPeOAAW","masterQuoteId":"0Q04x000000gUjNCAU","name":"Clone - M-2","cartType":"Quote"}

Example Output Data 

1{"masterCartId":"0Q04x000000gZbWCAU","error":"OK"}