Managing Extended Information with Metafields

How to manage furigana, birthdate, and other information needed for Japanese EC sites using Shopify metafields

metafieldShopifyextended informationfurigana
4 min read

About This Article

Shopify customer data includes standard fields (name, email, address, etc.), but Japanese EC sites often require additional information. This article explains how to manage this using Shopify's metafield functionality.

Additional Information Needed for Japanese EC

Why Standard Fields Are Insufficient

Shopify is a foreign product and doesn't support Japan-specific customer information.

Furigana (last name)
Shopify StandardNone
Need in JapanEssential for shipping labels, phone support
Furigana (first name)
Shopify StandardNone
Need in JapanSame as above
Birth date
Shopify StandardNone
Need in JapanPoints, coupons, age verification
Gender
Shopify StandardNone
Need in JapanMarketing, product recommendations
Member rank
Shopify StandardNone
Need in JapanPOS integration, benefit management
External system ID
Shopify StandardNone
Need in JapanLinking with POS, CRM, etc.

What Are Metafields

Concept Explanation

Metafields allow you to add custom information to Shopify's standard data. You can store custom information for various objects like customers, products, and orders.

Shopify Customer Data Structure
Standard Fields

Name (first_name, last_name), Email (email), Phone (phone), Address (addresses)

Metafields (Addable)

Furigana (custom definition), Birth date (custom definition), Gender (custom definition), Other (freely addable)

Metafield Structure

Metafields are organized by "namespace" and "key".

customer_info
keyfurigana_first_name
PurposeFirst name furigana
customer_info
keyfurigana_last_name
PurposeLast name furigana
customer_info
keybirth_date
PurposeBirth date
customer_info
keygender
PurposeGender
loyalty
keycoupons
PurposeIssued coupon information
loyalty
keypreferences
PurposeCustomer settings
loyalty
keyexternal_id
PurposeExternal system ID

Design Points

Namespace Design

Namespaces are used to group related information.

customer_info
PurposeBasic info extension
Included KeysFurigana, birth date, gender
loyalty
PurposePoint/membership related
Included KeysCoupons, member rank, point history
preferences
PurposeCustomer settings
Included KeysEmail delivery settings, language settings
integration
PurposeExternal integration
Included KeysPOS ID, CRM ID, sync status

Choosing Data Types

Set appropriate data types for metafields.

furigana_first_name
Data Typesingle_line_text_field
ReasonShort text
birth_date
Data Typedate
ReasonWant to handle as date
gender
Data Typesingle_line_text_field
ReasonManaged as choices
coupons
Data Typejson
ReasonStructure multiple coupon info
external_id
Data Typesingle_line_text_field
ReasonPOS member number, etc.

Operational Benefits

Viewing in Shopify Admin

Metafields can be viewed and edited from the Shopify admin panel.

Basic info
ItemEmail
Valueyamada@example.com
Basic info
ItemPhone
Value090-1234-5678
Metafield
ItemFurigana (last name)
ValueYamada
Metafield
ItemFurigana (first name)
ValueTaro
Metafield
ItemBirth date
Value1990-01-15
Metafield
ItemGender
ValueMale

Customer support can view all information from the admin panel.

API Retrieval and Updates

Metafield retrieval and updates are easy with the GraphQL API.

API Operation Image
Customer info request

"Please provide info for customer ID: 12345"

Response

Returns standard fields (first_name, last_name) + metafields (furigana, birth_date, etc.)

Update request

"Update birth date for customer ID: 12345"

Update complete

Saved to Shopify

Implementation Considerations

Validation

Data validation is required before saving to metafields.

Furigana
Validation ContentKatakana only, 50 characters max
Birth date
Validation ContentPast date, 13 years or older
Gender
Validation ContentSpecified choices only (Male/Female/Other)
Email address
Validation ContentFormat check, duplicate check

Data Migration from Existing Customers

When migrating data from an existing system, the following steps are needed.

Extract data

Export customer data from existing system

Convert data

Convert to Shopify metafield format

Validate

Verify converted data

Test migration

Verify operation with small data set

Production migration

Register all data to Shopify

Benefits of This Feature

For Operations

  • No need to build additional database
  • Centralized management in Shopify admin
  • Automatic integration possible via API

Development Benefits

  • Standard feature, no additional cost
  • Easy retrieval and update with GraphQL API
  • Easy future expansion

Related Topics