Splitting a Smart Cart
This global method splits the line items in the cart into groups in a Smart Cart flow.
API |
Signature |
---|---|
splitCart |
static Id splitCart(Id cartId) |
Request Parameter |
|||
---|---|---|---|
Name |
Type |
Required? |
Description |
cartID | ID |
Yes |
The Id of the cart to be split. |
Response Parameter |
||
---|---|---|
Field |
Type |
Description |
jobId | ID |
The Id of the job executed to split the cart. |
Code Sample
This sample enables you to splits the line items in the cart into groups in a Smart Cart flow. When the method is executed, the task pending flag is set to true on the cart passed as the parameter. After the line items are split into groups, the flag is set to false.