Setting the Cart's customerId can lead to updates on all its LineItem prices.

If the Customer with the specified `id` cannot be found, this update action returns a
[ReferencedResourceNotFound](ctp:api:type:ReferencedResourceNotFoundError) error.
interface CartSetCustomerIdAction {
    action: "setCustomerId";
    customerId?: string;
}

Properties

Properties

action: "setCustomerId"
customerId?: string

id of an existing Customer. If empty, any value is removed.

Generated using TypeDoc