Skip to content

Export Companies from Shopify

This task will export a list of companies from your Shopify store, and save them to an XML file.

Important

This task is only available for Shopify Plus.

Settings

Shopify Connection

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

Export Settings

  • Date Created
    Used when exporting new records. Only records with a created date higher than this value will be exported. The date will update automatically each time the task runs.

  • Date Modified
    Used when exporting modified records. Only records with an updated date higher than this value will be exported. The date will update automatically each time the task runs.

  • Export Modified, New or All Records
    Select whether you would like the task to export new, modified, or all records from Shopify.

Page Size

Required
Used to control the number of records that are requested from Shopify at a time. Defaults to 100.

Record IDs

Optional
To export specific records from Shopify, enter an ID or comma separated list of IDs. The IDs can be either be specified in integer or global ID format. Examples are shown below:

  • Integer Format - 96382004,96382006
  • Global ID Format - gid://shopify/{object_name}/96382004,gid://shopify/{object_name}/96382006 where {object_name} is replaced with the name of the object, e.g. Customer. More information can be found here.

This will override all other export settings.

Selections

Required
The set of fields to select from Shopify. For more details about the syntax, please refer to Selections Syntax.

For more details about the company object and it's fields, please refer to Shopify's documentation.

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.

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:

  • read_companies
  • read_customers

Examples

A sample output file is shown below. The fields returned will vary depending on your selections.

<?xml version="1.0" encoding="utf-8"?>
<Companies xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Company>
    <Id>gid://shopify/Company/4907040857</Id>
    <ZynkExternalId>ACME0001</ZynkExternalId>
    <CreatedAt>2025-02-13T14:41:06Z</CreatedAt>
    <ExternalId>ACME0001</ExternalId>
    <Locations>
      <Record>
        <Id>gid://shopify/CompanyLocation/4870439001</Id>
        <BillingAddress>
          <Address1>Random House</Address1>
          <Address2>Random Lane</Address2>
          <City>Newcastle</City>
          <CompanyName>ACME Ltd</CompanyName>
          <CountryCode>GB</CountryCode>
          <FirstName>John</FirstName>
          <LastName>Smith</LastName>
          <Phone>+441918201484</Phone>
          <Province>England</Province>
          <Zip>NE12JS</Zip>
        </BillingAddress>
        <BuyerExperienceConfiguration>
          <PaymentTermsTemplate>
            <Id>gid://shopify/PaymentTermsTemplate/4</Id>
          </PaymentTermsTemplate>
        </BuyerExperienceConfiguration>
        <Currency>GBP</Currency>
        <ExternalId>ACME0001-1</ExternalId>
        <Name>Random House</Name>
        <ShippingAddress>
          <Address1>Another House</Address1>
          <Address2>Another Lane</Address2>
          <City>Sunderland</City>
          <CompanyName>ACME Ltd</CompanyName>
          <CountryCode>GB</CountryCode>
          <FirstName>Joe</FirstName>
          <LastName>Bloggs</LastName>
          <Phone>+441918201484</Phone>
          <Province>England</Province>
          <Zip>SR12AB</Zip>
        </ShippingAddress>
      </Record>
    </Locations>
    <MainContact>
      <Id>gid://shopify/CompanyContact/2698346585</Id>
      <Customer>
        <Id>gid://shopify/Customer/7987378028633</Id>
        <Email>[email protected]</Email>
        <FirstName>John</FirstName>
        <LastName>Smith</LastName>
        <Tags />
      </Customer>
      <IsMainContact>true</IsMainContact>
    </MainContact>
    <Name>ACME Ltd</Name>
    <UpdatedAt>2025-02-26T11:43:03Z</UpdatedAt>
  </Company>
</Companies>