--- title: cartBuyerIdentityUpdate - Storefront API description: > Updates the buyer identity on a [`Cart`](/docs/api/storefront/unstable/objects/Cart), including contact information, location, and checkout preferences. The buyer's country determines [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) and should match their shipping address. Use this mutation to associate a logged-in customer via access token, set a B2B company location, or configure checkout preferences like delivery method. Preferences prefill checkout fields but don't sync back to the cart if overwritten at checkout. api_version: unstable api_name: storefront type: mutation api_type: graphql source_url: html: >- https://shopify.dev/docs/api/storefront/latest/mutations/cartBuyerIdentityUpdate md: >- https://shopify.dev/docs/api/storefront/latest/mutations/cartBuyerIdentityUpdate.md --- # cart​Buyer​Identity​Update mutation Updates the buyer identity on a [`Cart`](https://shopify.dev/docs/api/storefront/unstable/objects/Cart), including contact information, location, and checkout preferences. The buyer's country determines [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) and should match their shipping address. Use this mutation to associate a logged-in customer via access token, set a B2B company location, or configure checkout preferences like delivery method. Preferences prefill checkout fields but don't sync back to the cart if overwritten at checkout. ## Arguments * buyer​Identity [Cart​Buyer​Identity​Input!](https://shopify.dev/docs/api/storefront/unstable/input-objects/CartBuyerIdentityInput) required The customer associated with the cart. Used to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). Buyer identity should match the customer's shipping address. * cart​Id [ID!](https://shopify.dev/docs/api/storefront/unstable/scalars/ID) required The ID of the cart. *** ## Cart​Buyer​Identity​Update​Payload returns * cart [Cart](https://shopify.dev/docs/api/storefront/unstable/objects/Cart) The updated cart. * user​Errors [\[Cart​User​Error!\]!](https://shopify.dev/docs/api/storefront/unstable/objects/CartUserError) non-null The list of errors that occurred from executing the mutation. * warnings [\[Cart​Warning!\]!](https://shopify.dev/docs/api/storefront/unstable/objects/CartWarning) non-null A list of warnings that occurred during the mutation. *** ## Examples * ### cartBuyerIdentityUpdate reference