Unfreeze Order

Unfreezes a previously frozen order.

1POST /v2/cpq/carts/{order_ID}/unfreeze

For CME Winter ‘20 and later releases, create an unfreeze order request to the order management system.

A Freeze Order API request may have frozen order fulfillment. If the user decides not to submit a supplemental order, you can use the unfreezeOrder API to unfreeze the order’s fulfillment.

If the order management system sends the Accepted response, the OrderStatus__c field is set to In Progress.

Apex Method 

Use this method with the current order’s ID as input (currentOrdId) to unfreeze a frozen order fulfillment.

1public static void unfreezeOrder(Id currentOrdId)
2{
3    final String methodName = 'unfreezeOrder';
4    Map<String, Object> inputMap = new Map<String, Object>
5    {
6        'cartId' => currentOrdId,
7        'methodName' => methodName
8    };
9    Map<String, Object> outputMap = new Map<String, Object>();
10    Map<String, Object> optionsMap = new Map<String, Object>();
11    vlocity_cmt.CpqAppHandler handler = new vlocity_cmt.CpqAppHandler();
12    handler.invokeMethod(methodName, inputMap, outputMap, optionsMap);
13    // traverse the result that was returned, to find the supplemental order id.
14    vlocity_cmt.JSONResult result = (vlocity_cmt.JSONResult) outputMap.get('result');
15}

Package 

Communication (vlocity_cmt)

API Parameters and Response Format 

For API parameter names and descriptions, see Cart-Based API Swagger Reference.

Resource Information 

Response FormatJSON
Resource URL/services/apexrest/{namespace}/v2/cpq/carts/{order_ID}/unfreeze

Example Request 

1POST
2/services/apexrest/v2/cpq/carts/{order_ID}/unfreeze

Example Request Body 

1{
2  "cartId": "order_ID"
3}

See Also