Skip to main content

cartBuyerIdentityUpdateDefault

Creates a function that accepts an object of CartBuyerIdentityInput and updates the buyer identity of a cart

Anchor to options
options
required

CartBuyerIdentityUpdateFunction

export type = ( buyerIdentity: , optionalParams?: , ) => Promise<>;
Examples

JavaScript

import {cartBuyerIdentityUpdateDefault} from '@shopify/hydrogen';

const cartBuyerIdentity = cartBuyerIdentityUpdateDefault({
storefront,
getCartId,
});

const result = await cartBuyerIdentity({
customerAccessToken: '123',
});
Was this page helpful?