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:
| Field | Value | Notes |
|---|---|---|
Name | e.g. active-flow-order | Name of the scheduling |
Cron Expression | */5 * * * * | Frequency of execution (e.g. */5 * * * * → every 5 minutes) |
Source Type | http | The type of source to be used |
Url | https://adapt.flowlyze.com/api/adp/shopify/ingress/get-companies-updated-after | URL of the endpoint to be called (see note at the end of the table) |
Method | GET | HTTP method used to call the endpoint |
Headers :: x-api-key | ********** | API key used to validate the interaction with the endpoint |
Headers :: x-shopify-graphql-url | https://SHOPIFYURL.myshopify.com/ | URL of the Shopify store to connect to |
Headers :: x-shopify-access-token | shpat_ALPHANUMERICO | Secret of the custom integration app |
Headers :: x-last-company-updated-processed | e.g. 2024-11-15T12:00:00Z | Date from which to start retrieving companies |
Headers :: x-sync-company-once | true | Boolean to insert the company only once, does not propagate updates (default false) |
Headers :: channel-code | Your Shopify Store | The name or code of your Shopify shop |
Headers :: x-number-of-companies | 10 | Number 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
}
]