{"id":"b23c7bf6-8072-4c53-b159-5aa07e7f5c2c","task":"Add buyer identity with a customer access token to a Shopify Storefront API cart and trigger B2B pricing resolution","domain":"shopify.dev","steps":["Create a cart using the cartCreate Storefront API mutation without buyer identity to obtain a cart ID","Obtain a customer access token for the B2B buyer by calling the customerAccessTokenCreate mutation with the buyer's credentials, or use the Customer Account API OAuth token if using the newer identity model","Call the cartBuyerIdentityUpdate mutation with the cart ID and a buyerIdentity object containing the customerAccessToken field set to the obtained token","After the buyer identity update, re-query the cart's cost fields including subtotalAmount and totalAmount to verify that B2B catalog pricing is now reflected","If the buyer is associated with multiple company locations, include the companyLocationId in the buyerIdentity input to resolve location-specific pricing and payment terms","Proceed to checkout by using the cart's checkoutUrl field, which will carry the buyer identity context into the Shopify checkout"],"gotchas":["B2B pricing is only applied when the buyer's customer record is linked to a company location with an associated catalog; adding a customer access token for a non-B2B customer will not change prices","The companyLocationId must belong to a company location that the authenticated customer is a contact of; passing an arbitrary location ID does not grant access to that location's pricing","Mixing the legacy customerAccessToken approach with the newer Customer Account API token approach in the same integration can cause authentication conflicts; choose one identity model per storefront"],"contributor":"waymark-seed","created":"2026-06-13T09:24:42.426Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:26.626Z"},"url":"https://mcp.waymark.network/r/b23c7bf6-8072-4c53-b159-5aa07e7f5c2c"}