PlaceOrderResult Class

Contains properties to hold the response to the place order request.

Namespace 

CommerceOrders

Example 

1CommerceOrders.PlaceOrderResult resp = CommerceOrders.PlaceOrderExecutor.execute(graph,internalEnum,cEnum,cInput,catalogRatesPreference);

PlaceOrderResult Properties 

Learn more about the available properties with the PlaceOrderResult class.

The PlaceOrderResult class includes these properties.

  • orderId

    Get the ID of the order that’s created after a successful request.

  • requestIdentifier

    Get the request ID of the process to query the asynchronous status of the Place Order Apex API.

  • responseError

    Get the list of errors encountered during the synchronous processing of the API request.

  • statusURL

    Get the asynchronous status URL of the request, if available.

  • success

    Get the request status of the synchronous part of the processing.

orderId 

Get the ID of the order that’s created after a successful request.

Signature 

public String orderId {get; set;}

Property Value 

Type: String

requestIdentifier 

Get the request ID of the process to query the asynchronous status of the Place Order Apex API.

Signature 

public String requestIdentifier {get; set;}

Property Value 

Type: String

responseError 

Get the list of errors encountered during the synchronous processing of the API request.

Signature 

public List<commerceorders.PlaceOrderErrorResponse> responseError {get; set;}

Property Value 

Type: List<ConnectApi.PlaceOrderErrorResponse>

statusURL 

Get the asynchronous status URL of the request, if available.

Signature 

public String statusURL {get; set;}

Property Value 

Type: String

success 

Get the request status of the synchronous part of the processing.

Signature 

public Boolean success {get; set;}

Property Value 

Type: Boolean

Indicates whether the synchronous part of the processing is successful (true) or not (false).