Skip to main content

mergeDeviceCartIntoCustomerCart

Merge a device cart into a customer cart. This is primarily done when an anonymous user logs in. The device cart will have its items added to the customer cart and then have its cartItems cleared. The new customer cart will be returned.

Requires the publiccart/write scope and a valid customer authentication token.

mergeDeviceCartIntoCustomerCart(
customerToken: String!
deviceId: String!
): Cart!

Arguments

mergeDeviceCartIntoCustomerCart.customerToken ● String! non-null scalar

mergeDeviceCartIntoCustomerCart.deviceId ● String! non-null scalar

Type

Cart object

A cart is a temporary container for products that a customer or anonymous user wants to buy