PlaceOrderResult Class

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

CommerceOrders

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.

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

public String orderId {get; set;}

Type: String

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

public String requestIdentifier {get; set;}

Type: String

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

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

Type: List<ConnectApi.PlaceOrderErrorResponse>

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

public String statusURL {get; set;}

Type: String

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

public Boolean success {get; set;}

Type: Boolean

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