cartProcess
Process cart and convert it to an order.
Finalizes the cart by validating all items, calculating final totals, applying discounts, and converting it to an order. This is the final step in the checkout process.
Possible errors:
- CART_NOT_FOUND_ERROR: Cart with the specified ID does not exist
- CART_PROCESS_ERROR: Failed to process the cart
- CART_INVALID_STATUS_ERROR: Cart is not in a processable state
- PRODUCT_INVALID_ERROR: One or more products in the cart are no longer valid
cartProcess(
id: String!
input: CartProcessInput!
): CartProcessResponse!
Arguments
cartProcess.id
● String!
non-null scalar
Unique identifier of the cart to process.
Must be a valid UUID format representing an existing cart ready for checkout.
cartProcess.input
● CartProcessInput!
non-null input
Cart processing configuration.
Contains final checkout parameters including payment confirmation, delivery preferences, and processing options.
Type
CartProcessResponse
object
Response from cart processing operation.
Contains the results of converting a shopping cart into a finalized order, including the generated order ID and updated cart information.