Setting the Order's customerId does not recalculate prices or discounts on the Order. If the Customer belongs to a Customer Group, customerGroup on the Order is updated automatically.

Produces the [OrderCustomerSet](ctp:api:type:OrderCustomerSetMessage) Message.
interface OrderSetCustomerIdAction {
    action: "setCustomerId";
    customerId?: string;
}

Properties

Properties

action: "setCustomerId"
customerId?: string

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