{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Integrations","type":"markdown"},"seo":{"title":"Shopify Import Integration","description":"Learn how to import Shopify store data into Treasure AI, including obtaining credentials, configuring store names, and creating a data connection.","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]},"llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"shopify-import-integration","__idx":0},"children":["Shopify Import Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can use the data connector for Shopify and directly import data from your Shopify to Treasure Data."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For sample workflows on how to import data from Shopify, view ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/treasure-data/treasure-boxes/tree/master/td_load/shopify"},"children":["Treasure Boxes"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Basic knowledge of Treasure Data"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Basic knowledge of Shopify"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"obtain-shopify-credentials","__idx":2},"children":["Obtain Shopify Credentials"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To get Shopify Credentials, complete the following steps:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Sign up at ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.shopify.com/"},"children":["https://www.shopify.com/"]}," to create an online store for the user."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enter the details about the user."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enter additional details about business."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Create a custom app."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The user can see and use the API credentials to store and to connect with different external applications."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"store_name-configuration","__idx":3},"children":["store_name Configuration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Shopify translates your free-form Store Name into URL-friendly value. For example, it truncates special characters and replaces spaces with hyphens."," ","For example: Example Shop-123-!#$ becomes example-shop-123:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2020-11-25_15-46-9.d1e34300a2d3e085fefa41de5061a2e81285047e5198c98de794acb5688e8c16.240488a1.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You need to use the translated value (in Admin URL, after signing in):"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2020-11-25_15-46-24.08a7272ce0f78946bc7208605de1c17931086d9605d15bbdb37983c9b7d37583.240488a1.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"use-the-treasure-console-to-create-your-connection","__idx":4},"children":["Use the Treasure Console to Create Your Connection"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"create-a-new-connection","__idx":5},"children":["Create a New Connection"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Go to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Catalog"]}," and search and select Shopify."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create."]}," You are creating an authenticated connection."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2019-11-16-at-12.07.39-pm.7c1a081729fee61cce5cc8cdf5fe521d5c42d1490460835098864cde6d8e687b.240488a1.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following dialog opens. Check ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Admin API access token"]}," in Shopify console for Password value."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2019-11-16-at-12.08.47-pm.877d111a8b97ca07e802e9f170ecebf2d666925250978ae96e584023d794ce72.240488a1.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Complete the required fields and then select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Name your new Shopify connection. Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"."]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"transfer-your-data-to-treasure-data","__idx":6},"children":["Transfer Your Data to Treasure Data"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After creating the authenticated connection, you are automatically taken to the Authentications tab."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200708-201126.0e761577b758dca083f31b4ef278b6ae53e731f6aee6178e63c796e59c5daed2.240488a1.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Look for the connection you created and select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]},". Edit the following fields."]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Source"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The type of object that you want to transfer from Shopify such as products, customers, transactions, orders, inventory, and metafields. The following list identifies supported elements:   - Objects    - inventory level   - inventory_items   - location - Order status    - open   - closed   - canceled   - any - Metafields resource    - product   - customer   - order   - online_store   - shop - Product resource objects    - product   - product_variant   - product_image   - collection - Order resource objects    - order   - draft_order - Online_store resource objects    - blog   - article   - page"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Load data into Treasure Data incrementally. This selection enables the Incremental field**.**"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental field"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The data field used to sort the objects. There are two options: created_at and updated_at."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The data field used to sort the metadata objects. There are two options: created_at and updated_at."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start date"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Defining the 'start_date' allows you to select only objects that have been created or updated since the 'start_date'. This field is dependent on the Incremental field. When incremental is set to false, created_at is considered the Start date target when you import from products, customers, transactions, orders object"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use precise 'End date'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Specify the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End date"]},"or leave blank."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Number of days to fetch"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Specify how many days, starting from the 'start_date,'that you want to fetch data."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End date"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Specify a date by which objects have been updated:   - If ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End date"]}," is not specified, all the objects up to now are retrieved. - ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["If Start time"]}," and ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End time"]}," can be combined to specify a specific period, from'start_date' until 'end_date'."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Inventory Item IDs"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A list of inventory_ids."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Location IDs"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Alist of location_ids."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Updated at"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The time in which ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["inventory_level"]}," objects have been updated_at, from a specified time until present."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Fetch all customer's metafields"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Download all customer's metafields"]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Preview your data. To make changes, select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Advanced Settings,"]}," otherwise select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2019-11-16-at-12.16.12-pm.5709abe26d10772f4a5b5927db3545e6103b799745be13e8ea82bdb5f38fd6e3.240488a1.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select a database and a table where you want to transfer your data."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2019-11-16-at-12.19.27-pm.85d36ab90c39a1e285d5642d19a46653bb157a8f655ac300feb5ee48b31c7f3c.240488a1.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Specify the schedule of the data transfer using the following dialog and select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2019-11-16-at-12.21.49-pm.f8cbc1b5834f02af93857afd3f49fceed03578c63c990da41cf75673b087869b.240488a1.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Name your source and select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2019-11-16-at-12.23.03-pm.4852f8b98949f26e9a59d74e24d1991e9aacb713db39db14e87ac25e14e72018.240488a1.png","alt":""},"children":[]}]}]},"headings":[{"value":"Shopify Import Integration","id":"shopify-import-integration","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":1},{"value":"Obtain Shopify Credentials","id":"obtain-shopify-credentials","depth":2},{"value":"store_name Configuration","id":"store_name-configuration","depth":2},{"value":"Use the Treasure Console to Create Your Connection","id":"use-the-treasure-console-to-create-your-connection","depth":2},{"value":"Create a New Connection","id":"create-a-new-connection","depth":3},{"value":"Transfer Your Data to Treasure Data","id":"transfer-your-data-to-treasure-data","depth":3}],"frontmatter":{"seo":{"title":"Shopify Import Integration","description":"Learn how to import Shopify store data into Treasure AI, including obtaining credentials, configuring store names, and creating a data connection."}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/int/shopify-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}