Skip to content

Import Files into Shopify

This task will upload new files to your Shopify store using the data provided in an XML file. The files can be viewed within the Shopify admin area under Content > Files.

Settings

Shopify Connection

Required
The Shopify connection to use. See Shopify Connection if you require more information on how to create/manage connections.

Fail File

Required
The XML file to output any failed imports to.

Input File

Required
The XML file containing the records to import into Shopify. See below for a sample of the XML format.

Success File

Required
The XML file to output successful imports to.

Cache Time To Live

Required
Zynk will cache the IDs of certain records that it looks up against Shopify, to prevent the same lookup being performed more than is necessary. This setting controls the length of time (in minutes) that cached IDs are considered valid for. Before this time has elapsed, the cached copy of the ID will be used. Once this time has elapsed, the lookup will be performed again against Shopify.

Prevent Reprocessing

Required
When enabled, this setting will prevent the same records being processed more than once by the task. Records will be identified based on the <ZynkExternalId> values provided in the input file.

Timeout

Optional
The length of time to wait (in seconds) for Shopify to respond to each API request. If left blank, or set to 0 or less, a default value of 100 seconds will be applied.

Zynk Settings

See Common Task Settings

Permissions

This task requires the following permissions in your Shopify app:

  • write_files

Examples

A sample input file is shown below.

<?xml version="1.0" encoding="utf-8"?>
<Files>
  <File>
    <!-- Example showing how to upload a local file to Shopify -->
    <FilePath>invoice_123.pdf</FilePath> <!-- Supports absolute and relative paths --> 
    <MimeType>application/pdf</MimeType> <!-- Will be set automatically based on the file extension if not specified --> 
    <ContentType>FILE</ContentType> <!-- Can be IMAGE, VIDEO or FILE --> 
    <AltText>Invoice 123</AltText>
  </File>
  <File>
    <!-- Example showing how to upload a local file to Shopify -->
    <FileUrl>https://zynk.com/wp-content/uploads/2018/02/sitelogo100.png</FileUrl>
    <ContentType>IMAGE</ContentType> <!-- Can be IMAGE, VIDEO or FILE --> 
    <AltText>Zynk Logo</AltText>
  </File>
</Files>