Return a summary of the cart status including pricing, account, multi-site, and additional action information.
Pricing information, such as total one-time charges and total recurring charges
Account information associated with the cart
If the cart includes a multi-site order and available sites
Links to further actions, such as checkout
1GET /v2/cpq/carts/{cart_ID}/items/checkout
This API supports the guest user enhancements that Salesforce introduced with the Winter ‘21 release. To encrypt and decrypt data for guest users, use the UserSecurity class with this API. See Guest User Technical Details.
For additional information, see UserSecurity Class and CPQ and Digital Commerce Changes for Guest Users.
The checkOrderStatus parameter indicates whether a set of status fields should be checked prior to allowing an order to be checked out. If checkOrderStatus is set to true (the default):
If any of the following is true, the order is determined to be active:
Status has a value of Activated
OrderStatus_c has any of the following values:
In Progress
Cancelled
Cancel Requested
Complete
SupersededOrderId_c is not null
If checkOrderStatus is set to false, the order can be processed even if the order is active.
The validateSubmittedXLI parameter controls the pre-submit validation for the checkout API. If true, it will validate whether the user has submitted complete bundles and if all the line items have the field FulfilmentStatus__c value set to Activated. If either or both of those conditions are not met, the transaction will fail.
Example Responses
The following example shows a response to a successful submit.
The following example shows a response to a failed submit if validate is true and some or all the line items are not activated.
1{2 "totalSize": 0,3 "messages": [4 {5 "code": "214",6 "severity": "ERROR",7 "message": "The following line items are not activated: 8021N00000BS6TFQA1,8021N00000BS6VPQA1,8021N00000BS6VQQA1,8021N00000BS6TGQA1,8021N00000BS6THQA1,8021N00000BS6TKQA1,8021N00000BS6TLQA1,8021N00000BS6TMQA1,8021N00000BS6TNQA1"8 }9 ]10}
The following example shows a response to a failed submit if validate is true, some bundles are incomplete, and some or all line items are not activated.
1{2 "totalSize": 0,3 "messages": [4 {5 "code": "214",6 "severity": "ERROR",7 "message": "The following line items are not activated 8021N00000BS6VQQA1 | Please submit the full bundle for the following line item(s) 8021N00000BS6VQQA1"8 }9 ]10}
Message Codes
Code
Description
SUBMIT-1001
Order submission is accepted by OM.
SUBMIT-1002
Order submission is provisionally accepted.
SUBMIT-1003
Order submission was rejected for PONR.
SUBMIT-1004
Order submission was rejected because queue is full.
SUBMIT-1005
Order submission is done without a required parameter. This will be used only during integration.
SUBMIT-1006
Order Management responded with an unknown response code.
SUBMIT-1007
Order Management responded with “rejected” and without a reason code.
SUBMIT-1008
Auto-assetization is successful, which happens if OdinAPIAutoAssetizeHandler is configured for OdinAPIHandler.
SUBMIT-1009
Order submission ran into an exception that may not be reproducible.