Checkout Form Not Populating Company Field for Certain Countries, mutation cartBuyerIdentityUpdate

Checkout Form Not Populating Company Field for Certain Countries, mutation cartBuyerIdentityUpdate

khush_jazz
Visitor
1 0 0

While using the cartBuyerIdentityUpdate mutation in Shopify's API (GraphQL version 2024-07) to pass the company name, the company field is correctly updated for countries like BG, HR, CZ, DK, FR, DE, HU, PL, and SE. However, for countries PT, RO, IE, IT, and ES, the company name is not being populated in the checkout form, even though the mutation executes without errors.

Mutation Example:
mutation { cartBuyerIdentityUpdate( cartId: "$cartid", buyerIdentity: { email: "$b2bemail", countryCode: $country, deliveryAddressPreferences: { deliveryAddress: { company: "$company", country: "$country" } } } ) { cart { id buyerIdentity { deliveryAddressPreferences { ... on MailingAddress { id country company } } } } userErrors { field message } } }

Although no errors are returned by the API, the issue persists for the specified countries, affecting not only the company field but also the other delivery fields in the checkout form.

khush_jazz_0-1729662784224.pngkhush_jazz_1-1729662891033.png

 

Replies 0 (0)