This endpoint merges items from one cart (typically a guest cart) into another cart (typically the logged-in customer’s cart). Useful when customers add items before logging in.
Authentication
This endpoint requires a valid API key withcarts:write
permissions.
Path Parameters
The target cart ID (cart to merge INTO)
Request Body
The source cart ID (cart to merge FROM)
How to handle duplicate items: “combine” (add quantities), “keep_source”, “keep_target”
Whether to preserve metadata from source cart items
Whether to delete the source cart after merge