GitHub

ShopifyCartBuyerIdentityInput

Type

import { ShopifyCartBuyerIdentityInput } from '@daffodil/driver/shopify'

The input fields for identifying the buyer associated with a cart. Buyer identity determines international pricing and should match the customer's shipping address.

Used by cartCreate and cartBuyerIdentityUpdate to set contact information, location, and checkout preferences.

Note: Preferences prefill fields at checkout but don't sync back to the cart if overwritten.

interface ShopifyCartBuyerIdentityInput {
  companyLocationId: string
  countryCode: ShopifyCountryCode
  customerAccessToken: string
  email: string
  phone: string
  preferences: ShopifyCartPreferencesInput
}

Properties

companyLocationId
string

The company location of the buyer that is interacting with the cart.

countryCode
ShopifyCountryCode

The country where the buyer is located.

customerAccessToken
string

The access token used to identify the customer associated with the cart.

email
string

The email address of the buyer that is interacting with the cart.

phone
string

The phone number of the buyer that is interacting with the cart.

preferences
ShopifyCartPreferencesInput

A set of preferences tied to the buyer interacting with the cart. Preferences are used to prefill fields in at checkout to streamline information collection. Preferences are not synced back to the cart if they are overwritten.