Map Additional Details to ShipStation

This article explains how to map Additional Details (e.g., note attributes) from Shopify to ShipStation custom fields using Shopify’s custom data and Shopify Flow. This allows you to pass information like delivery dates, gift messages, or any order attributes to ShipStation’s custom fields.

Important Note: ShipStation currently treats all metafields as a single combined value. You cannot map individual metafields directly. All data stored in metafields will be sent to a single custom field, similar to how they currently combine order notes.

Warning: This is an advanced tutorial. We cannot provide support for Shopify Flow or ShipStation, as we have no control over their apps and services.

Shopify Settings

Custom Data Definition

  • Navigate to Settings > Custom data > Orders > Add order metafield definition.

Define Metafield

  • Name: Choose a simple, descriptive name (e.g., “Delivery Date”). The namespace and key will auto-generate (e.g., custom.delivery_date).
  • Type: Select “Multi-line text.” This is generally recommended for flexibility, even if your data is usually a single line.
  • Save the metafield definition.

Shopify Flow

Create Workflow

  • Create a new workflow in Shopify Flow.

Trigger

  • Set the workflow to trigger when an Order is created.

Update Order Metafield Action

  • Add an Update order metafield action.

Configure Action

  • Metafield Namespace: Enter custom.
  • Key: Enter delivery_date (or the key generated for your metafield).
  • Value: Use the following Liquid code to extract the value from the order’s custom attributes (where the customer inputs the data) and assign it to the metafield. This code checks for a matching key and handles blank values:

Datepicker Code snippet:

{% for customAttributes_item in order.customAttributes %}
  {% if customAttributes_item.key == "Delivery Date" and customAttributes_item.value != blank %}
    {{ customAttributes_item.value }}
  {% endif %}
{% endfor %}

Gift Message Code snippet:

{% assign gift_to = "" %}
{% assign gift_from = "" %}
{% assign gift_message = "" %}

{% for customAttributes_item in order.customAttributes %}
  {% assign key_lower = customAttributes_item.key | downcase %}
  
  {% if key_lower == "to" or key_lower == "message to" %}
    {% assign gift_to = customAttributes_item.value %}
  {% elsif key_lower == "from" or key_lower == "message from" %}
    {% assign gift_from = customAttributes_item.value %}
  {% elsif key_lower == "message" or key_lower == "gift-message" %}
    {% assign gift_message = customAttributes_item.value %}
  {% endif %}
{% endfor %}

{% if gift_to != "" or gift_message != "" or gift_from != "" %}
  To: {{ gift_to }}, Message: {{ gift_message }}, From: {{ gift_from }}
{% endif %}

The above snippet supports the gift messages block obtained at the cart level, either through cart options, the drawer cart, or checkout options for Shopify Plus merchants. You can customize the string that controls how the gift message appears.

ShipStation Settings

Access Store Setup

  • Go to Settings > Store Setup.

Edit Store Details

  • Click the ellipsis (…) next to your store name and select Edit store details.

Custom Field Mapping

  • Go to the General tab (or the appropriate tab for Shopify settings within your ShipStation store configuration).
  • Find the Custom Field Mapping section.
  • Map Custom Field 1 (or the desired custom field) to Order Meta Fields.

Important Note:
ShipStation currently treats all metafields as a single combined value. You cannot map individual metafields directly. All data stored in metafields will be sent to this custom field. If you have multiple metafields, they will be concatenated.

  • Save your ShipStation settings.

Conclusion

Now, when an order is created in Shopify and includes the “Delivery Date” or “Gift Message” custom attribute, the Shopify Flow workflow will populate the corresponding metafield. ShipStation will then import all metafield data, into the specified custom field (Custom Field 1 in this example).


Can't find the answer in our documentation?
Contact Support
Add a Custom Logo to Your Multi-Shipping Checkout
Introduction to Delivery Method Display Rules
Introduction Guide to Multishipping
Giftship Billing & Additional Usage Charges
Delivery Method Display Rules
Retrieve B2B Saved Addresses in Multiship
Admin Draft Order Cart Options
Map Additional Details to ShipStation
Drawer Cart: Automatically Clear Datepicker After X Hours
Automatically Add Upsell (e.g. Insurance) in Drawer Cart
Disable Multiship Call to Action in Drawer Cart for Certain Product Types
How to Add Product Bundles Manually to Cart
Google Font Real-Time Personalizer
Remove Blocks Based on Country
Remove British Forces from Multi-Address Modal
How to Add Custom Scripts to Multiship
Product Bundles 2.0: Using Shopify’s Cart Transform API
Troubleshooting Missing Shipping Rates with Multiple Shipping
Product Bundles 1.0: Installing bundle snippets
Conditionally Showing Datepicker Blocks Based on Product Types in Cart Using the Hidden Input Block
Showing Product Option Blocks Based on Customer Tags with the Hidden Input Block
Event API Example: Automatically Add an Ice Pack to Each Shipment in the Multiple shipping Address Process
Drawer Cart CSS Styling Options
Giftship Changelog
Introduction to Drawer Cart
How to Enable the Drawer Cart
Build your Drawer Cart
Dynamic Display Logic in Drawer Cart
Refunded Line Items
Drawer Cart Settings Guide
Drawer Cart Block: Upsells
Drawer Cart Block: Gift Message
Localization and Translation of your Drawer Cart | Multiple Language Management
Add Checkout Options to the Checkout Page
Automatically Tag Orders with Image Swatch File Names in Giftship Product Options
Introduction to Checkout Options
Build a Checkout Options Set
Localization and Translation of your Checkout Options | Multiple Language Management
Dynamic Display Logic in Checkout Options
Checkout Option Block: Upsells
Checkout Option Block: Gift Message
Checkout Option Block : Datepicker
Checkout Option Block: Selections (Checkbox, Radio Button, Dropdown)
Checkout Option Block: Inputs (Text, Number, Email, Phone, Textarea)
Introduction to Cart Options
Cart Option Block: Image Gallery
Build a Cart Options Set
Dynamic Display Logic in Cart Options
Cart Option Block: Upsells
Cart Option Block: Gift Message
Cart Option Block : Datepicker
Cart Option Block: File Upload
Cart Option Block: Color Swatch
Cart Option Block: Inputs (Text, Number, Email, Phone, Textarea)
Cart Option Block: Selections (Checkbox, Radio Button, Dropdown, Color Picker)
Integrate with Pagefly Landing Page Builder
Preventing Checkout Until Giftship Bundles are Loaded
Giftship Installation & Onboarding Guide
Gift Message: Adjusting Font Size Based on Character Length
Box Builder Premium Themes
Custom Order Printer Templates
Adding a Banner to the Box Builder
Javascript Event API
Introduction to Auto Tagging
Auto Tagging Orders with Gift Messages
Auto Tagging Orders with Delivery Dates
Configuring Your Customer Account Page
Troubleshooting Bundle Items Not Being Added to the Cart
Troubleshooting Conditional Logic
Introduction to Box Builder
How to Disable the “gistToken” Attribute in the Additional Details of Your Orders
Creating a Box Builder
Adding an Image to your Box Builder Base Product
Clear the Box Builder Form Once Complete
Adding a Gift Message to Your Box Builder with the Stack Theme
Hide the Stack Theme Box Summary Icon
Displaying Collection Filters in Your Box Builder
Add a Link to Your Box Builder in your Menu
Introduction to Product Options
Customizing Box Builder Product Display Price on Collection Pages 🎁
Build a Product Options Set
Dynamic Display Logic in Product Options
Product Option Block: Upsells
Product Option Block: Gift Message
Product Option Block: Datepicker
Product Option Block: File Upload
Product Option Block: Inputs (Text, Number, Email, Phone, Textarea)
Product Option Block: Selections (Checkbox, Radio Button, Dropdown, Color Picker)
Product Option Block: Color Swatch
Product Option Block: Image Gallery
Showing Product Option Blocks Based on Product Variants with the Hidden Input Block
Edit Gift Messages etc on Multiship and Cart Page in Giftship
Styling you Product Options Image Row Upsell Components
Adding Bundles when a User Navigates to the Cart Page
How to show bundle price on product page as bundle is built
How to Bulk Print Orders with Gift Messages Using the Print with Giftship Tool 📫
Issuing Refunds for Multiple Shipping Address Orders
Fulfilling Multiple Shipping Address Orders
Viewing Reports with Multiple Shipping Address Orders
Discount Codes for Multiple Shipping Address Orders