Skip to main content

Company Import

Shopify companies are actively retrieved by Flowlyze.

The Adapter updates a boolean metafield on companies to indicate that they have been exported (exportedCompany) and to avoid duplicate sends to the destination, but only if the single-sync header is set to true.

Active Company Flow Configuration

After creating the destination, which in the case of an active flow can be a database or an endpoint, you must configure the flow by enabling Scheduling (<code>Schedulation Enabled</code>) and setting it as follows:

FieldValueNotes
Namee.g. active-flow-orderName of the scheduling
Cron Expression*/5 * * * *Frequency of execution (e.g. */5 * * * * → every 5 minutes)
Source TypehttpThe type of source to be used
Urlhttps://adapt.flowlyze.com/api/adp/shopify/ingress/get-companies-updated-afterURL of the endpoint to be called (see note at the end of the table)
MethodGETHTTP method used to call the endpoint
Headers :: x-api-key**********API key used to validate the interaction with the endpoint
Headers :: x-shopify-graphql-urlhttps://SHOPIFYURL.myshopify.com/URL of the Shopify store to connect to
Headers :: x-shopify-access-tokenshpat_ALPHANUMERICOSecret of the custom integration app
Headers :: x-last-company-updated-processede.g. 2024-11-15T12:00:00ZDate from which to start retrieving companies
Headers :: x-sync-company-oncetrueBoolean to insert the company only once, does not propagate updates (default false)
Headers :: channel-codeYour Shopify StoreThe name or code of your Shopify shop
Headers :: x-number-of-companies10Number of companies to fetch per request (default 10)

Payload

[
{
"id": "gid://shopify/Company/744816947",
"channel": "demoipaas",
"createdAt": "2024-05-27T08:45:51+00:00",
"updatedAt": "2025-11-24T14:36:50+00:00",
"name": "Company Name",
"note": "This is a company that was created with all the fields present",
"contacts": [
{
"id": "gid://shopify/CompanyContact/123456789",
"title": null,
"isMainContact": true,
"locale": "en",
"customerReference": "gid://shopify/Customer/123456789",
"roles": [
{
"id": "gid://shopify/CompanyContactRole/1488126259",
"name": "Ordering only"
}
]
}
],
"locations": [
{
"id": "gid://shopify/CompanyLocation/780239155",
"name": "Location Name"
}
],
"totalSpent": 0,
"ordersCount": 0
}
]